WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: W3 Total Cache] What would 'PHP Timezone: Not set' affect?

[Resolved] [Plugin: W3 Total Cache] What would 'PHP Timezone: Not set' affect?

  • 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. 🙂 )

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Frederick Townes

    @fredericktownes

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

    Related to S3/Cloudfront.

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

    Plugin Author Frederick Townes

    @fredericktownes

    Ok.

    @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

    Plugin Author Frederick Townes

    @fredericktownes

    Yes.

    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

    Plugin Author Frederick Townes

    @fredericktownes

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

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

    Kent

    @sysadminsproutbuildercom

    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".

    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.

    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

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Resolved] [Plugin: W3 Total Cache] What would 'PHP Timezone: Not set' affect?’ is closed to new replies.