Title: plugin.php causing an infinite loop
Last modified: August 21, 2016

---

# plugin.php causing an infinite loop

 *  [pilot911](https://wordpress.org/support/users/pilot911/)
 * (@pilot911)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/pluginphp-causing-an-infinite-loop/)
 * My error log is growing huge with the following:
 *     ```
       [Sat Sep 21 00:42:25 2013] [error] [client 63.7.101.106] PHP Warning:  ksort() expects parameter 1 to be array, integer given in /usr/home/mysite/domains/mysite.com/public_html/wp-includes/plugin.php on line 397
       [Sat Sep 21 00:42:25 2013] [error] [client 63.7.101.106] PHP Warning:  reset() expects parameter 1 to be array, integer given in /usr/home/mysite/domains/mysite.com/public_html/wp-includes/plugin.php on line 401
       [Sat Sep 21 00:42:25 2013] [error] [client 63.7.101.106] PHP Warning:  current() expects parameter 1 to be array, integer given in /usr/home/mysite/domains/mysite.com/public_html/wp-includes/plugin.php on line 404
       [Sat Sep 21 00:42:25 2013] [error] [client 63.7.101.106] PHP Warning:  next() expects parameter 1 to be array, integer given in /usr/home/mysite/domains/mysite.com/public_html/wp-includes/plugin.php on line 408
       [Sat Sep 21 00:42:25 2013] [error] [client 63.7.101.106] PHP Warning:  current() expects parameter 1 to be array, integer given in /usr/home/mysite/domains/mysite.com/public_html/wp-includes/plugin.php on line 404
       [Sat Sep 21 00:42:25 2013] [error] [client 63.7.101.106] PHP Warning:  next() expects parameter 1 to be array, integer given in /usr/home/mysite/domains/mysite.com/public_html/wp-includes/plugin.php on line 408
       [Sat Sep 21 00:42:25 2013] [error] [client 63.7.101.106] PHP Warning:  current() expects parameter 1 to be array, integer given in /usr/home/mysite/domains/mysite.com/public_html/wp-includes/plugin.php on line 404
       [Sat Sep 21 00:42:25 2013] [error] [client 63.7.101.106] PHP Warning:  next() expects parameter 1 to be array, integer given in /usr/home/mysite/domains/mysite.com/public_html/wp-includes/plugin.php on line 408
       [Sat Sep 21 00:42:25 2013] [error] [client 63.7.101.106] PHP Warning:  current() expects parameter 1 to be array, integer given in /usr/home/mysite/domains/mysite.com/public_html/wp-includes/plugin.php on line 404
       [Sat Sep 21 00:42:25 2013] [error] [client 63.7.101.106] PHP Warning:  next() expects parameter 1 to be array, integer given in /usr/home/mysite/domains/mysite.com/public_html/wp-includes/plugin.php on line 408
       [Sat Sep 21 00:42:25 2013] [error] [client 63.7.101.106] PHP Warning:  current() expects parameter 1 to be array, integer given in /usr/home/mysite/domains/mysite.com/public_html/wp-includes/plugin.php on line 404
       [Sat Sep 21 00:42:25 2013] [error] [client 63.7.101.106] PHP Warning:  next() expects parameter 1 to be array, integer given in /usr/home/mysite/domains/mysite.com/public_html/wp-includes/plugin.php on line 408
       [Sat Sep 21 00:42:25 2013] [error] [client 63.7.101.106] PHP Warning:  current() expects parameter 1 to be array, integer given in /usr/home/mysite/domains/mysite.com/public_html/wp-includes/plugin.php on line 404
       [Sat Sep 21 00:42:25 2013] [error] [client 63.7.101.106] PHP Warning:  next() expects parameter 1 to be array, integer given in /usr/home/mysite/domains/mysite.com/public_html/wp-includes/plugin.php on line 408
       [Sat Sep 21 00:42:25 2013] [error] [client 63.7.101.106] PHP Warning:  current() expects parameter 1 to be array, integer given in /usr/home/mysite/domains/mysite.com/public_html/wp-includes/plugin.php on line 404
       [Sat Sep 21 00:42:25 2013] [error] [client 63.7.101.106] PHP Warning:  next() expects parameter 1 to be array, integer given in /usr/home/mysite/domains/mysite.com/public_html/wp-includes/plugin.php on line 408
       [Sat Sep 21 00:42:25 2013] [error] [client 63.7.101.106] PHP Warning:  current() expects parameter 1 to be array, integer given in /usr/home/mysite/domains/mysite.com/public_html/wp-includes/plugin.php on line 404
       [Sat Sep 21 00:42:25 2013] [error] [client 63.7.101.106] PHP Warning:  next() expects parameter 1 to be array, integer given in /usr/home/mysite/domains/mysite.com/public_html/wp-includes/plugin.php on line 408
       [Sat Sep 21 00:42:25 2013] [error] [client 63.7.101.106] PHP Warning:  current() expects parameter 1 to be array, integer given in /usr/home/mysite/domains/mysite.com/public_html/wp-includes/plugin.php on line 404
       [Sat Sep 21 00:42:25 2013] [error] [client 63.7.101.106] PHP Warning:  next() expects parameter 1 to be array, integer given in /usr/home/mysite/domains/mysite.com/public_html/wp-includes/plugin.php on line 408
       [Sat Sep 21 00:42:25 2013] [error] [client 63.7.101.106] PHP Warning:  current() expects parameter 1 to be array, integer given in /usr/home/mysite/domains/mysite.com/public_html/wp-includes/plugin.php on line 404
       ```
   
 * Any idea what is causing this. I saw a previous post from 1 year ago which is
   similiar but not exactly the same:
 * [http://wordpress.org/support/topic/pluginphp-and-wp_filter-causing-an-infinite-loop?replies=2](http://wordpress.org/support/topic/pluginphp-and-wp_filter-causing-an-infinite-loop?replies=2)
 * Any help/advice is greatly appreciated.
 * Thanks

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [pplong](https://wordpress.org/support/users/pplong/)
 * (@pplong)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/pluginphp-causing-an-infinite-loop/#post-4149581)
 * I’m experiencing exactly the same issue – creating huge error logs.
 * Pilot911 – I’ve seen this on a number of sites over the last couple of days –
   one factor that seems to be common to all was NextGen gallery plugin – mind if
   i ask if you’re using it on your site(s)?
 *  Thread Starter [pilot911](https://wordpress.org/support/users/pilot911/)
 * (@pilot911)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/pluginphp-causing-an-infinite-loop/#post-4149582)
 * Yes I am using NextGen Gallery plugin…….planning to downgrade to previous stable
   version.
 *  Thread Starter [pilot911](https://wordpress.org/support/users/pilot911/)
 * (@pilot911)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/pluginphp-causing-an-infinite-loop/#post-4149583)
 * Thanks pplong appreciate the heads up….
 *  [pplong](https://wordpress.org/support/users/pplong/)
 * (@pplong)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/pluginphp-causing-an-infinite-loop/#post-4149584)
 * yes, thinking of doing the same myself. I’d just updated to the latest v.2.0.27
   because the previous version appeared to be created massive numbers of identical`
   ngg_delete_expired_transients` cron jobs.
 * Don’t know if it’s related, but it can’t have helped.
 * Could you post back here if you find that rolling the version back fixes the 
   problem? I’ll do the same if I happen to get there first.
 * thanks
 *  Thread Starter [pilot911](https://wordpress.org/support/users/pilot911/)
 * (@pilot911)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/pluginphp-causing-an-infinite-loop/#post-4149604)
 * Just using this post: [http://www.nextgen-gallery.com/how-to-rollback-a-version/](http://www.nextgen-gallery.com/how-to-rollback-a-version/)
 * To roll back to 1.9.13 as advised in the comments of this post: [http://www.nextgen-gallery.com/nextgen-gallery-2-0/](http://www.nextgen-gallery.com/nextgen-gallery-2-0/)
 * Will let you know how i get on pplong.
 *  Thread Starter [pilot911](https://wordpress.org/support/users/pilot911/)
 * (@pilot911)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/pluginphp-causing-an-infinite-loop/#post-4149606)
 * Successfully downgraded to 1.9.13 will wait a few months before attempting to
   upgrade again.
 *  [pplong](https://wordpress.org/support/users/pplong/)
 * (@pplong)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/pluginphp-causing-an-infinite-loop/#post-4149608)
 * Thanks pilot911 – likewise, rolled back to v1.9.13 and everything has been stable
   since.
 * Appreciate your help
 *  [ELAN42///](https://wordpress.org/support/users/nokao/)
 * (@nokao)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/pluginphp-causing-an-infinite-loop/#post-4149636)
 * Same for me from today, and I also updated Nextgen Gallery 2 today.
 * this is the cause: [http://wordpress.org/support/topic/new-bug-filling-up-log-files-taking-down-site-20gig-and-counting/page/2?replies=31](http://wordpress.org/support/topic/new-bug-filling-up-log-files-taking-down-site-20gig-and-counting/page/2?replies=31)
 *  [Curtis](https://wordpress.org/support/users/salsafire/)
 * (@salsafire)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/pluginphp-causing-an-infinite-loop/#post-4149651)
 * Same issue, NextGen here as well. (((ugh)))
 * It’s is downgrading again or moving on for me.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘plugin.php causing an infinite loop’ is closed to new replies.

## Tags

 * [infinite loop](https://wordpress.org/support/topic-tag/infinite-loop/)
 * [plugin.php](https://wordpress.org/support/topic-tag/plugin-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 4 participants
 * Last reply from: [Curtis](https://wordpress.org/support/users/salsafire/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/pluginphp-causing-an-infinite-loop/#post-4149651)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
