• Resolved Kate

    (@kate515)


    I’m getting a lot of errors in our logs related to this plugin – also noticing in the dashboard if I go to Appearance > Widgets the page stops loading and hangs in the middle of the “available widgets” — the right hand column homepage widgets, sidebar widgets, etc. doesn’t appear at all. When I deactivate the plugin the widgets page works again. Here’s a partially redacted snipped from the logs.
    Any ideas? Is it just me?
    Thanks!

    [Thu May 22 15:49:01 2014] [error] [client xxx.xxx.xxx.xxx] PHP Warning:  array_merge(): Argument #2 is not an array in /pluginsfilepath/plugins/game-schedules/mstw-game-schedule.php on line 2014
    [Thu May 22 15:49:01 2014] [error] [client xxx.xxx.xxx.xxx] PHP Warning:  Invalid argument supplied for foreach() in /pluginsfilepath/plugins/game-schedules/mstw-game-schedule.php on line 2018
    [Thu May 22 15:49:01 2014] [error] [client xxx.xxx.xxx.xxx] PHP Warning:  array_merge(): Argument #2 is not an array in /pluginsfilepath/plugins/game-schedules/mstw-game-schedule.php on line 1756
    [Thu May 22 15:49:01 2014] [error] [client xxx.xxx.xxx.xxx] PHP Warning:  Invalid argument supplied for foreach() in /pluginsfilepath/plugins/game-schedules/mstw-game-schedule.php on line 1759
    [Thu May 22 15:52:40 2014] [error] [client xxx.xxx.xxx.xxx] PHP Warning:  array_merge(): Argument #2 is not an array in /pluginsfilepath/plugins/game-schedules/mstw-game-schedule.php on line 2014
    [Thu May 22 15:52:40 2014] [error] [client xxx.xxx.xxx.xxx] PHP Warning:  Invalid argument supplied for foreach() in /pluginsfilepath/plugins/game-schedules/mstw-game-schedule.php on line 2018
    [Thu May 22 15:52:40 2014] [error] [client xxx.xxx.xxx.xxx] PHP Warning:  array_merge(): Argument #2 is not an array in /pluginsfilepath/plugins/game-schedules/mstw-game-schedule.php on line 1756
    [Thu May 22 15:52:40 2014] [error] [client xxx.xxx.xxx.xxx] PHP Warning:  Invalid argument supplied for foreach() in /pluginsfilepath/plugins/game-schedules/mstw-game-schedule.php on line 1759
    [Thu May 22 15:53:48 2014] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /pluginsfilepath/plugins/game-schedules/mstw-game-schedule.php on line 1713, referer: http://site/2012results/
    [Thu May 22 15:54:34 2014] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /pluginsfilepath/plugins/game-schedules/mstw-game-schedule.php on line 1713, referer: http://site/wp-admin/widgets.php
    [Thu May 22 15:55:20 2014] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /pluginsfilepath/plugins/game-schedules/mstw-game-schedule.php on line 1713, referer: http://site/wp-admin/widgets.php

    https://wordpress.org/plugins/game-schedules/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Kate

    (@kate515)

    I since read another thread about the schedule IDs changing – this was a problem for us too. I had to create a team, and new schedules and edit all existing games to the new schedule. The problem still stands with the widget – I wonder if it’s getting hung up on trying to pull the old data that was displayed in our widgets, but I’m unsure what else to do to try to remedy the issue.
    Thanks!

    Plugin Author Mark O’Donnell

    (@markodonnell)

    Hi Kate,
    Thanks for writing. As for the PHP warnings, they are just that, warnings that do not affect execution, just fill up your error logs. I am slowly weeding all such non-fatal notices and warnings out of the plugins as they are updated. (I think Game Locations and Game Schedules are pretty good now.)

    As for the widget problem, I have never seen that behavior during development, nor has it been reported previously. I double-checked on the MSTW Dev site, and did not enounter that problem on the admin side. You can see the widgets running just fine there. (So I must have got them in somehow. Hummm… ? If you’d like further help figuring it out, please post it on the MSTW Gold Support Forums.

    As for ‘the other thread’ issue, please post your question to the other thread so that all users might benefit from my answer. And check out version 4.1.1 released today. More information about it will be on the Shoal Summit Solutions website and be mailed to the mailing list tomorrow morning. Thanks.

    -Mark

    Thread Starter Kate

    (@kate515)

    Thanks! I think the last 3 were fatal errors instead of just warnings. I’ll watch for future updates. Fortunately, we’re “off-season” now.

    [Thu May 22 15:53:48 2014] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /pluginsfilepath/plugins/game-schedules/mstw-game-schedule.php on line 1713, referer: http://site/2012results/
    [Thu May 22 15:54:34 2014] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /pluginsfilepath/plugins/game-schedules/mstw-game-schedule.php on line 1713, referer: http://site/wp-admin/widgets.php
    [Thu May 22 15:55:20 2014] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /pluginsfilepath/plugins/game-schedules/mstw-game-schedule.php on line 1713, referer: http://site/wp-admin/widgets.php

    Thread Starter Kate

    (@kate515)

    FYI – removing that line from the mstw-game-schedule.php fixed my widget page display problem.

    <p>Display End Date: <input class=”widefat” name=”<?php echo $this->get_field_name( ‘sched_end_date’ ); ?>” type=”text” value=”<?php echo date(‘Y-m-d H:i’, (int)esc_attr( $sched_end_date ) ); ?>” />
    </p>

    I’m wondering if perhaps it wasn’t set before an upgrade and caused an issue – we did each year in its own schedule so there’s a chance that wasn’t set/declared in the database? Not sure but that line seemed to be our problem.

    Plugin Author Mark O’Donnell

    (@markodonnell)

    Hi Kate,
    Assuming you are using 4.4.1, I am stumped as to why that line would or how that line could exceed 30 seconds of execution time without some other error. I guess it could be something in the DB, but I’ve tested this pretty extensively with schedules in different years without anything like this. If I can figure out how to repeat it, I can figure out what’s causing it. But I suspect it’s something unique to your environment. If you have more hints, I’m interested.

    Thanks,
    -Mark

    Having the same issue with WordPress 4.2.2 and MSTW Schedules & Scoreboards 1.3. When MSTW plugin is active, the widget screen won’t load properly and I get this error in apache.

    PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/aasa/wp-content/plugins/mstw-schedules-scoreboards/includes/mstw-ss-schedule-widget.php on line 69

    If I remove the line, the widget screen loads but I get tons of other errors in my log and I get no scheduled games found on the widget output.

    Any ideas?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Error & Appearance > Widgets page not loading w/ plugin’ is closed to new replies.