• Resolved saphiro

    (@saphiro)


    Hi!

    I have this message in my error log since I installed the plugin. I’m running the latest version of the plugin (6.3.5).

    PHP Fatal error: Uncaught exception ‘Exception’ with message ‘DateTimeZone::__construct() [datetimezone.–construct]: Unknown or bad timezone (Etc/GMT+4.5)’ in /home/user/public_html/wp-content/plugins/wordfence/lib/dashboard/widget_networkattacks.php:78
    Stack trace:
    #0 /home/user/public_html/wp-content/plugins/wordfence/lib/dashboard/widget_networkattacks.php(78): DateTimeZone->__construct(‘Etc/GMT+4.5’)
    #1 /home/user/public_html/wp-content/plugins/wordfence/lib/menu_dashboard.php(96): include(‘/home/user/…’)
    #2 /home/user/public_html/wp-content/plugins/wordfence/lib/wordfenceClass.php(5715): require(‘/home/user/…’)
    #3 [internal function]: wordfence::menu_dashboard(”)
    #4 /home/user/public_html/wp-includes/class-wp-hook.php(298): call_user_func_array(‘wordfence::menu…’, Array)
    #5 /home/user/public_html/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”, Array)
    #6 /home/user/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(A in /home/user/public_html/wp-content/plugins/wordfence/lib/dashboard/widget_networkattacks.php on line 78

    —————————–
    I don’t know how to fix that. Any idea?

    Many thanks in advance.

    S

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @saphiro,

    This could be related to the timezone DB on your system. Could you please open the Wordfence System Info page:

    • Go to the Wordfence Tools page
    • Click the Diagnostics tab
    • In the Other Tests section (near the bottom of the page), click the link that reads “Click to view your system’s configuration in a new window“. This will open the Wordfence System Info page.

    and check the following parameters:

    • Loaded Configuration File
    • PHP Version
    • date/time support
    • “Olson” Timezone Database Version
    Thread Starter saphiro

    (@saphiro)

    Hi

    Here is the information:

    Loaded Configuration File /usr/local/lib/php.ini
    PHP Version 5.3.29
    date/time support enabled
    “Olson” Timezone Database Version 2013.3

    @saphiro,

    Thanks for providing the information.

    Could you try and upgrade PHP on your server as we recommend PHP version 5.6 or newer.

    This should also update your timezone database which I suspect is the culprit here.

    Thread Starter saphiro

    (@saphiro)

    Hi

    Thank you for your help.

    I’m going to upgrade PHP.

    I see there is a new version now. Should I Upgrade the plugin or wait to upgrade PHP?

    Hi @saphiro,

    If you haven’t implemented any specific Wordfence configuration yet and if you don’t have any Wordfence related data that you’d like to keep (Firewall rules, scan results, etc.), the ideal procedure would be the following:

    1. Go to Wordfence –> Options and tick the Delete Wordfence tables and data on deactivation
    2. Deactivate, then Delete Wordfence via the WordPress Plugins page
    3. Upgrade PHP
    4. Install the latest version of Wordfence
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP Fatal error’ is closed to new replies.