Support » Plugins and Hacks » [Plugin: New Blog Defaults] Error when setting timezone to UTC Value

  • Resolved fostertime

    (@fostertime)


    I am getting this error after setting all the proper values. Problem is, it does not allow me to change the value of the timezone because of this error:

    ERROR—————————————————
    Fatal error: Uncaught exception ‘Exception’ with message ‘DateTimeZone::__construct() [datetimezone.–construct]: Unknown or bad timezone (UTC-5)’ in /home/wp-content/plugins/wpmu-new-blog-defaults/cets_blog_defaults.php:595 Stack trace: #0 /home/wp-content/plugins/wpmu-new-blog-defaults/cets_blog_defaults.php(595): DateTimeZone->__construct(‘UTC-5’) #1 /home/wp-includes/plugin.php(339): cets_blog_defaults->cets_blog_defaults_management_page(”) #2 /home/wp-admin/admin.php(105): do_action(Array, Array) #3 /home/wp-admin/wpmu-admin.php(2): require_once(‘/home/…’) #4 {main} thrown in /home/wp-content/plugins/wpmu-new-blog-defaults/cets_blog_defaults.php on line 595
    END ERROR——————————————————

    http://wordpress.org/extend/plugins/wpmu-new-blog-defaults/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Fixed:
    Resolved this issue by changing the following in cets_blog_defaults.php:

    Replace Line
    586: <?php if ($tzstring) : ?>

    With
    586: <?php if ($check_zone_info && $tzstring) : ?>

    DeannaS

    (@deannas)

    Thanks for the fix. I’m testing for 2.9.1.1 right now and will include that in the update.

    austin21pollard

    (@austin21pollard)

    also not saving changes.

    austin21pollard

    (@austin21pollard)

    General Settings, Screen Options not saving

    DeannaS

    (@deannas)

    @austin21pollard – there is not “General Settings – Screen Options” section in this plugin. Which part isn’t saving for you?

    austin21pollard

    (@austin21pollard)

    cets_blog_defaults_management_page

    pilotjoe

    (@pilotjoe)

    I’m having the same issue in standard wordpress 2.9.1.

    Fatal error: Uncaught exception ‘Exception’ with message ‘DateTimeZone::__construct() [datetimezone.–construct]: Unknown or bad timezone (Etc/UTC-4)’ in /home/mediajoe/public_html/digitalslimcamera.com/wp-admin/options-general.php:184 Stack trace: #0 /home/mediajoe/public_html/digitalslimcamera.com/wp-admin/options-general.php(184): DateTimeZone->__construct(‘Etc/UTC-4’) #1

    fostertime

    (@fostertime)

    @pilotjoe
    Are you using the latest update from DeannaS?

    I believe that issue was resolved in this new version.

    DeannaS

    (@deannas)

    Yah, I _think_ it’s resolved. If you’re using the latest and it’s not resolved, can you give more more details about your environment? Which version of PHP are you using?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: New Blog Defaults] Error when setting timezone to UTC Value’ is closed to new replies.