WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
[resolved] What would 'PHP Timezone: Not set' affect? (12 posts)

  1. efikim
    Member
    Posted 3 years ago #

    I've installed the development release (downloaded 10th July)on a blog and run the compatibility checker. It reports the memory and object caches are missing (no surprise there - this is a shared hosting account!) but also that PHP Timezone isn't set.
    I can't find anything about this in the faq, so what would this affect?

    I've got page caching, minification and combining of javascript and CSS set and apparently working correctly, but haven't enabled preloading yet. I also haven't yet tried to set up a CDN (which would initially be just ftp to a subdomain if I can get that to work)
    Do either preloading or CDN require the PHP Timezone to be set. (I can ask the hosting company about it if needed, but prefer not to bother them if its not.

    (aside: I like that the jss/css stuff is tied to the theme, as I'll probably have to change the theme around a bit - the old theme broke when I upgraded to WP3.0 so I've just set the 2010 theme for now - thanks for making things easier. the auto-discovery of the files is helpful too. :) )

  2. Frederick Townes
    Member
    Plugin Author

    Posted 3 years ago #

    I can't find anything about this in the faq, so what would this affect?

    Related to S3/Cloudfront.

  3. efikim
    Member
    Posted 3 years ago #

    Thanks Frederick ... if I get to the point where I need S3/Cloudfront I'll probably have moved the hosting too!

  4. Frederick Townes
    Member
    Plugin Author

    Posted 3 years ago #

    Ok.

  5. madfastride
    Member
    Posted 3 years ago #

    @Frederick,

    1. Thanks for a great plug-in!

    Does this related to Expires headers with S3? I'm trying to figure that out right now and this is one error I figure might be the issue. Thanks

  6. Frederick Townes
    Member
    Plugin Author

    Posted 3 years ago #

    Yes.

  7. ddeconin
    Member
    Posted 3 years ago #

    I get PHP Timezone: Not set in the in the w3tc compatibility check

    I tried adding the following to .htaccess
    SetEnv TZ Europe/Brussels
    but that does not help

  8. Frederick Townes
    Member
    Plugin Author

    Posted 3 years ago #

    @ddeconin, ask your hope for more help on the matter.

  9. ddeconin
    Member
    Posted 3 years ago #

    The question is what the right way is to avoid this?

  10. Kent
    Member
    Posted 3 years ago #

    On PHP 5.3.0 and above the TZ environment variable is not used for the default timezone by the Date Time functions. See date_default_timezone_get(). You can set date.timezone in your php.ini as date.timezone = "US/Pacific" or in .htaccess with (I think) php_value date.timezone "US/Pacific".

  11. ddeconin
    Member
    Posted 3 years ago #

    Im on a shared host , so I cannot access the php.ini and when I put the php_value line in my .htaccess I get error

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

  12. Kelson
    Member
    Posted 3 years ago #

    I just ran into this too. If you can't set it in php.ini or .htaccess, you can add the following line to your wp_config.php file and it seems to work:

    ini_set('date.timezone','America/Los_Angeles');

    Replace "America/Los_Angeles" with the appropriate time zone from http://www.php.net/manual/en/timezones.php

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic