Forums

Cannot Unset String Offsets in Widgets.php (8 posts)

  1. GoldenChaos
    Member
    Posted 2 years ago #

    Hey there - I run Zelda Universe, a high-traffic fansite that runs WordPress as its CMS. I've been running WordPress sites for years, but only recently has Zelda Universe been showing some issues that my other WordPress-powered sites do not.

    Seemingly randomly, the following error appears and brings the entire site down, even the admin panel:

    Warning: timezone_open() [function.timezone-open]: Unknown or bad timezone (a) in /home/zelda/public_html/wp-includes/functions.php on line 3160

    Fatal error: Cannot unset string offsets in /home/zelda/public_html/wp-includes/widgets.php on line 1046

    I have no idea what's causing it. It's been going on for a few months, and I thought it would be a plugin of some sort, but it's not. In addition, I heard that turning off Magic Quotes in php.ini would fix this, but I never had Magic Quotes on in the first place. A server restart is the only thing that gets rid of this - and only temporarily does it do so.

    Please help! I greatly appreciate everything.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Have you tried:

    - deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the default theme to rule out any theme-related problems.

    - renaming the plugins folder via FTP

    - reading http://wordpress.org/support/topic/279132

  3. GoldenChaos
    Member
    Posted 2 years ago #

    Yes, I've done all of those except switching themes. As the site is live I can't simply switch themes and wait for the error to happen or not happen - if it is theme-specific, there must be a way to determine this without switching themes.

    The problem has actually happened even if we're not running any third-party widgets at all. I disabled all of the plugins for a few days and determined a plugin wasn't causing it at all - we still got the error. Although, when I re-enabled the plugins the rate at which the error occurred increased. However, it could still be one of the default widgets... but all we use are Links widgets.

    This problem has actually been going on since October, or since WordPress 2.6 about. More recently the "random" attacks seem to be happening more often. It used to happen once a month, now it happens every day or so.

    In addition, this fatal error leaves nothing in any error logs, so the folks who run my server can't pinpoint any possible errors - so I'm really stumped.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Sounds like it may be your theme that has the problem.

  5. GoldenChaos
    Member
    Posted 2 years ago #

    Anything in the theme that might cause it?

  6. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    No idea. Try switching to the default theme and see if the error disappears. If it does, then it confirms that the theme is at fault.

  7. GoldenChaos
    Member
    Posted 2 years ago #

    I suppose I'll have to set up a test site and see what happens. I'll report back when I've done so. While I do that, could you think of anything else that might be causing it? If I load up the theme on a new install and nothing happens... well, it can't be the theme!

  8. GoldenChaos
    Member
    Posted 2 years ago #

    It does not appear to be the theme. I have been running the theme on a test site for two days now and it has not gotten hit by the fatal error.

    However, Zelda Universe has in this time been hit again. As I type, the error displays.

    If anybody has any idea what else could cause this, please post!

Topic Closed

This topic has been closed to new replies.

About this Topic