[wp-trac] [WordPress Trac] #25648: plugin.php causes infinite loop and gigabytes of warning messages in error logs

WordPress Trac noreply at wordpress.org
Tue Dec 22 23:20:41 UTC 2015


#25648: plugin.php causes infinite loop and gigabytes of warning messages in error
logs
--------------------------+----------------------
 Reporter:  ticktoo       |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Plugins       |     Version:  3.6.1
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+----------------------

Comment (by steevithak):

 I've picked up maintenance of a wordpress site that is experiencing this
 problem. The log fills with of these two errors

 PHP Warning:  next() expects parameter 1 to be array, boolean given in wp-
 includes/plugin.php on line 527, referer: wp-admin/admin.php?page
 =vimeography-edit-galleries

 PHP Warning:  current() expects parameter 1 to be array, boolean given in
 wp-includes/plugin.php on line 523, referer: wp-admin/admin.php?page
 =vimeography-edit-galleries

 Until this error message is triggered:

 PHP Fatal error:  Maximum execution time of 30 seconds exceeded in wp-
 includes/functions.php on line 0


 Adding "is_array()" in plugin.php seems to fix the immediate problem
 (wordpress dragging our server to halt and filling the error logs) but I
 could use some help tracking down the indirect problem of what code in the
 plugin is causing the problem, so I can file a bug report with the plugin
 author. Am I correct that what I should be looking for is plugin code
 referencing the $wp_filter variable? If so, any pointers to docs on what
 the plugin *should* be doing with that variable to avoid causing wordpress
 to enter an infinite loop?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/25648#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list