• Resolved bojwebmaster19

    (@bojwebmaster19)


    The Site Health tool on the WordPress dashboard gave the following notification and classified it as critical:

    “PHP default time zone was changed after WordPress loading by a date_default_timezone_set() function call. This interferes with correct calculations of dates and times.”

    After doing checks I found that the plugin was the cause. Can this be fixed?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support mbrsolution

    (@mbrsolution)

    Hi,

    After doing checks I found that the plugin was the cause. Can this be fixed?

    Can you share more information regarding your checks/testing? This will help us know if it is our plugin or your site or server causing this issue.

    Thank you

    • This reply was modified 4 years, 10 months ago by mbrsolution.
    Thread Starter bojwebmaster19

    (@bojwebmaster19)

    I made sure that the site settings had the correct timezone, as well as the server having the same timezone in the php.ini and htaccess files. The hosting company also confirmed this, which is ‘America/Jamaica’.

    7 installed plugins were identified that had the function ‘ date_default_timezone_set()’ that the error made reference to. I disabled all of them and the error disappeared. I re-enabled one by one and the error re-appeared when simple-membership plugin was re-enabled.

    In other words, whenever Simple Membership plugin is deactivated the error is gone and whenever it is re-activated it comes back.

    Plugin Support mbrsolution

    (@mbrsolution)

    Hi. go to WP Membership -> Settings -> Advanced Settings and check to make sure the following field Use WordPress Timezone is enabled. If it isn’t can you enable, then carry out a test?

    Thank you

    • This reply was modified 4 years, 10 months ago by mbrsolution.
    Thread Starter bojwebmaster19

    (@bojwebmaster19)

    Hi

    The field Use WordPress Timezone was enabled. I disabled it and the error went away. So I guess it should remain disabled.

    Thanks for the assistance.

    Plugin Support mbrsolution

    (@mbrsolution)

    You are most welcome ??

    The following note is added underneath Use WordPress Timezone field.

    Use this option if you want to use the timezone value specified in your WordPress General Settings interface.

    In you case the above did not apply because of your timezone configuration. It is a good idea to keep this in mind for future reference.

    Kind regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Invalid Timezone notification’ is closed to new replies.