• Resolved tusharattar

    (@tusharattar)


    Hi,

    I am getting PHP fatal error. This is due to some timezone error. I am posting the error log below:

    PHP Fatal error:  Uncaught Exception: DateTimeZone::__construct(): Unknown or bad timezone (Etc/GMT-5.5) in /var/www/html/wp-content/plugins/wordfence/lib/dashboard/widget_networkattacks.php:78
    Stack trace:
    #0 /var/www/html/wp-content/plugins/wordfence/lib/dashboard/widget_networkattacks.php(78): DateTimeZone->__construct('Etc/GMT-5.5')
    #1 /var/www/html/wp-content/plugins/wordfence/lib/menu_dashboard.php(96): include('/var/www/html/w...')
    #2 /var/www/html/wp-content/plugins/wordfence/lib/wordfenceClass.php(5782): require('/var/www/html/w...')
    #3 /var/www/html/wp-includes/class-wp-hook.php(298): wordfence::menu_dashboard('')
    #4 /var/www/html/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters('', Array)
    #5 /var/www/html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #6 /var/www/html/wp-admin/admin.php(222): do_action('toplevel_page_W...')
    #7 {main}
      thrown in /var/www/html/wp-content/plugins/wordfence/lib/dashboard/widget_networkattacks.php on line 78
Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @tusharattar,

    This could be related to the timezone DB on your system. Could you please:

    • 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 tusharattar

    (@tusharattar)

    Loaded Configuration File /etc/php/7.0/apache2/php.ini
    PHP Version 7.0.15-0ubuntu0.16.04.4
    date/time support enabled
    “Olson” Timezone Database Version 0.system

    Hi @tusharattar,

    Could you try ( or ask your hosting provider) to upgrade the time zone database (tzdata) on the server:

    sudo apt-get update && sudo apt-get upgrade tzdata

    Thread Starter tusharattar

    (@tusharattar)

    Still getting the same error? Any thoughts?

    Thread Starter tusharattar

    (@tusharattar)

    can this issue related with this other issue?

    https://www.ads-software.com/support/topic/timezone-error-4/

    Hi @tusharattar,

    Sorry about the delayed response.

    After discussing this topic with my colleagues it appears that the issue is caused by the fact the timezone “Etc/GMT-5.5” is technically non-standard in PHP, but WordPress includes it in the list of timezones you can choose.

    A temporary solution would be setting a city-based timezone in WordPress’s “Settings –> General” page.

    Our developers are aware of this behavior and we’re planning to implement a fix in a future version as mentioned in my colleague’s post.

    Hello!

    I hope we were successful in helping you resolve your issue with Wordfence! Since we have not heard back from you in the past 2 weeks I will now be marking this support thread as resolved. However, if we still haven’t resolved your issue please reach out to us as we would be more than happy to further assist you!

    Thanks and have a great day!
    Chloe

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘PHP FATAL Error’ is closed to new replies.