Title: strange php warnings with controller-frontend.php and
Last modified: August 21, 2016

---

# strange php warnings with controller-frontend.php and

 *  Resolved [chuckingit](https://wordpress.org/support/users/chuckingit/)
 * (@chuckingit)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/strange-php-warnings-with-controller-frontendphp-and/)
 * Hi – i keep getting php error messages that for life of me can’t figure out …
   i only have one table on one sub site on a multisite network and that tablepress
   table seems to display fine, works from admin, yet when i look at server file
   level for errors, each day i see tablepress firing off a bunch of php errors 
   per the error log below … any pointers that can be shared are greatly appreciated…
   cordially, chuck scott
 * from recent error log ->
 *     ```
       [03-Dec-2013 00:04:29 UTC] PHP Warning:  array_keys() expects parameter 1 to be array, null given in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 567
       [03-Dec-2013 00:04:29 UTC] PHP Warning:  array_keys() expects parameter 1 to be array, null given in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 568
       [03-Dec-2013 00:04:29 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 570
       [03-Dec-2013 00:04:29 UTC] PHP Warning:  array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #1 is not an array in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 573
       [03-Dec-2013 00:04:29 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 575
       [03-Dec-2013 00:04:29 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 604
       [03-Dec-2013 00:04:29 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 604
       [03-Dec-2013 00:04:29 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 604
       [03-Dec-2013 00:04:29 UTC] PHP Warning:  array_keys() expects parameter 1 to be array, null given in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 567
       [03-Dec-2013 00:04:29 UTC] PHP Warning:  array_keys() expects parameter 1 to be array, null given in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 568
       [03-Dec-2013 00:04:29 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 570
       [03-Dec-2013 00:04:29 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 576
       [03-Dec-2013 00:04:29 UTC] PHP Warning:  array_keys() expects parameter 1 to be array, null given in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 567
       [03-Dec-2013 00:04:29 UTC] PHP Warning:  array_keys() expects parameter 1 to be array, null given in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 568
       [03-Dec-2013 00:04:29 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 570
       [03-Dec-2013 00:04:29 UTC] PHP Warning:  array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #1 is not an array in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 573
       [03-Dec-2013 00:04:29 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 575
       [03-Dec-2013 00:04:29 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 604
       [03-Dec-2013 00:04:29 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 604
       [03-Dec-2013 00:04:29 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 604
       [03-Dec-2013 00:04:29 UTC] PHP Warning:  array_keys() expects parameter 1 to be array, null given in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 567
       [03-Dec-2013 00:04:29 UTC] PHP Warning:  array_keys() expects parameter 1 to be array, null given in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 568
       [03-Dec-2013 00:04:29 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 570
       [03-Dec-2013 00:04:29 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 576
       [03-Dec-2013 01:30:57 UTC] PHP Warning:  array_keys() expects parameter 1 to be array, null given in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 567
       [03-Dec-2013 01:30:57 UTC] PHP Warning:  array_keys() expects parameter 1 to be array, null given in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 568
       [03-Dec-2013 01:30:57 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 570
       [03-Dec-2013 01:30:57 UTC] PHP Warning:  array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #1 is not an array in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 573
       [03-Dec-2013 01:30:57 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 575
       [03-Dec-2013 01:30:57 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 604
       [03-Dec-2013 01:30:57 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 604
       [03-Dec-2013 01:30:57 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 604
       [03-Dec-2013 01:30:57 UTC] PHP Warning:  array_keys() expects parameter 1 to be array, null given in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 567
       [03-Dec-2013 01:30:57 UTC] PHP Warning:  array_keys() expects parameter 1 to be array, null given in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 568
       [03-Dec-2013 01:30:57 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 570
       [03-Dec-2013 01:30:57 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 576
       [03-Dec-2013 01:30:57 UTC] PHP Warning:  array_keys() expects parameter 1 to be array, null given in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 567
       [03-Dec-2013 01:30:57 UTC] PHP Warning:  array_keys() expects parameter 1 to be array, null given in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 568
       [03-Dec-2013 01:30:57 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 570
       [03-Dec-2013 01:30:57 UTC] PHP Warning:  array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #1 is not an array in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 573
       [03-Dec-2013 01:30:57 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 575
       [03-Dec-2013 01:30:57 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 604
       [03-Dec-2013 01:30:57 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 604
       [03-Dec-2013 01:30:57 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 604
       [03-Dec-2013 01:30:57 UTC] PHP Warning:  array_keys() expects parameter 1 to be array, null given in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 567
       [03-Dec-2013 01:30:57 UTC] PHP Warning:  array_keys() expects parameter 1 to be array, null given in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 568
       [03-Dec-2013 01:30:57 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 570
       [03-Dec-2013 01:30:57 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cooltea/public_html/wp-content/plugins/tablepress/controllers/controller-frontend.php on line 576
       ```
   
 * [http://wordpress.org/plugins/tablepress/](http://wordpress.org/plugins/tablepress/)

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/strange-php-warnings-with-controller-frontendphp-and/#post-4375852)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * Those errors seems to be raising during a search request on the site (the line
   numbers point to that part of the code), but I’m not sure why…
 * If possible, I’d like to take a direct look at this on your site. Could you therefore
   please create a temporary admin account for me and send me the details via email(
   the address is in the main plugin file “tablepress.php”)? That way, I can investigate
   this directly. Thanks!
 * Regards,
    Tobias
 *  Thread Starter [chuckingit](https://wordpress.org/support/users/chuckingit/)
 * (@chuckingit)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/strange-php-warnings-with-controller-frontendphp-and/#post-4375871)
 * great – just shot you an email so thanks and to be continued :>) cs
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/strange-php-warnings-with-controller-frontendphp-and/#post-4375873)
 * Hi,
 * thanks! I have received your email and will take a look shortly.
 * Regards,
    Tobias
 *  Thread Starter [chuckingit](https://wordpress.org/support/users/chuckingit/)
 * (@chuckingit)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/strange-php-warnings-with-controller-frontendphp-and/#post-4375927)
 * Awesome Support – Thank YOU!
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/strange-php-warnings-with-controller-frontendphp-and/#post-4375928)
 * Hi,
 * no problem, you are very welcome! 🙂 Good to hear that this helped!
 * For others finding this thread: The problem comes from the search integration
   of TablePress. For some reason that also affects the Recent Posts widget that
   queries posts from other sites of the network. Those however don’t have tables,
   and that then causes the PHP notices.
 * Best wishes,
    Tobias

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

The topic ‘strange php warnings with controller-frontend.php and’ is closed to new
replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/strange-php-warnings-with-controller-frontendphp-and/#post-4375928)
 * Status: resolved