WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: New Blog Defaults] Error when setting timezone to UTC Value (10 posts)

  1. fostertime
    Member
    Posted 4 years ago #

    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/

  2. fostertime
    Member
    Posted 4 years ago #

    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) : ?>

  3. DeannaS
    Member
    Posted 4 years ago #

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

  4. austin21pollard
    Member
    Posted 4 years ago #

    also not saving changes.

  5. austin21pollard
    Member
    Posted 4 years ago #

    General Settings, Screen Options not saving

  6. DeannaS
    Member
    Posted 4 years ago #

    @austin21pollard - there is not "General Settings - Screen Options" section in this plugin. Which part isn't saving for you?

  7. austin21pollard
    Member
    Posted 4 years ago #

    cets_blog_defaults_management_page

  8. pilotjoe
    Member
    Posted 4 years ago #

    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

  9. fostertime
    Member
    Posted 4 years ago #

    @pilotjoe
    Are you using the latest update from DeannaS?

    I believe that issue was resolved in this new version.

  10. DeannaS
    Member
    Posted 4 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic