Title: PHP Warnings
Last modified: August 20, 2016

---

# PHP Warnings

 *  Resolved [vincepettit](https://wordpress.org/support/users/vincepettit/)
 * (@vincepettit)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/php-warnings/)
 * Looking through my PHP Error logs I’ve come across a lot of errors relating to
   WP Table Reloaded. We’re not changing anything in admin so seems to be a user
   triggered issue.
 *     ```
       Dec 12, 14:42:44	 PHP Warning: array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #1 is not an array in /ABSOLUTEPATH/wp-content/plugins/wp-table-reloaded/controllers/controller-frontend.php on line 398
       Dec 12, 14:42:44	 PHP Warning: Invalid argument supplied for foreach() in /ABSOLUTEPATH/wp-content/plugins/wp-table-reloaded/controllers/controller-frontend.php on line 422
       Dec 12, 14:42:44	 PHP Warning: Invalid argument supplied for foreach() in /ABSOLUTEPATH/wp-content/plugins/wp-table-reloaded/controllers/controller-frontend.php on line 422
       Dec 12, 14:42:44	 PHP Warning: Invalid argument supplied for foreach() in /ABSOLUTEPATH/wp-content/plugins/wp-table-reloaded/controllers/controller-frontend.php on line 422
       Dec 12, 14:42:44	 PHP Warning: Invalid argument supplied for foreach() in /ABSOLUTEPATH/wp-content/plugins/wp-table-reloaded/controllers/controller-frontend.php on line 422
       Dec 12, 14:42:44	 PHP Warning: Invalid argument supplied for foreach() in /ABSOLUTEPATH/wp-content/plugins/wp-table-reloaded/controllers/controller-frontend.php on line 422
       Dec 12, 14:42:48	 PHP Warning: array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #1 is not an array in /ABSOLUTEPATH/wp-content/plugins/wp-table-reloaded/controllers/controller-frontend.php on line 398
       Dec 12, 14:42:48	 PHP Warning: Invalid argument supplied for foreach() in /ABSOLUTEPATH/wp-content/plugins/wp-table-reloaded/controllers/controller-frontend.php on line 422
       Dec 12, 14:42:48	 PHP Warning: Invalid argument supplied for foreach() in /ABSOLUTEPATH/wp-content/plugins/wp-table-reloaded/controllers/controller-frontend.php on line 422
       Dec 12, 14:42:48	 PHP Warning: Invalid argument supplied for foreach() in /ABSOLUTEPATH/wp-content/plugins/wp-table-reloaded/controllers/controller-frontend.php on line 422
       Dec 12, 14:42:48	 PHP Warning: Invalid argument supplied for foreach() in /ABSOLUTEPATH/wp-content/plugins/wp-table-reloaded/controllers/controller-frontend.php on line 422
       Dec 12, 14:42:48	 PHP Warning: Invalid argument supplied for foreach() in /ABSOLUTEPATH/wp-content/plugins/wp-table-reloaded/controllers/controller-frontend.php on line 422
       Dec 12, 15:17:18	 PHP Warning: array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #1 is not an array in /ABSOLUTEPATH/wp-content/plugins/wp-table-reloaded/controllers/controller-frontend.php on line 398
       Dec 12, 15:17:18	 PHP Warning: Invalid argument supplied for foreach() in /ABSOLUTEPATH/wp-content/plugins/wp-table-reloaded/controllers/controller-frontend.php on line 422
       Dec 12, 15:17:18	 PHP Warning: Invalid argument supplied for foreach() in /ABSOLUTEPATH/wp-content/plugins/wp-table-reloaded/controllers/controller-frontend.php on line 422
       Dec 12, 15:17:18	 PHP Warning: Invalid argument supplied for foreach() in /ABSOLUTEPATH/wp-content/plugins/wp-table-reloaded/controllers/controller-frontend.php on line 422
       ```
   
 * [http://wordpress.org/extend/plugins/wp-table-reloaded/](http://wordpress.org/extend/plugins/wp-table-reloaded/)

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/php-warnings/#post-3265398)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * This could indicate that you have corrupted tables. These would need to be restored
   from a backup.
 * Can you check if you have tables (in the “List of Tables” in the admin area),
   that have a name of “(no name)” and a description of “(no description)”? Very
   likely, these are broken.
 * Regards,
    Tobias
 *  Thread Starter [vincepettit](https://wordpress.org/support/users/vincepettit/)
 * (@vincepettit)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/php-warnings/#post-3265404)
 * Just checked and there was two tables with no name/description.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/php-warnings/#post-3265406)
 * Hi,
 * yep, that explains the error then. You should restore these two tables from a
   backup, and then migrate from WP-Table Reloaded to its official and designated
   successor TablePress (see [http://wordpress.org/extend/plugins/tablepress/](http://wordpress.org/extend/plugins/tablepress/)
   and [http://tablepress.org/migration-from-wp-table-reloaded/](http://tablepress.org/migration-from-wp-table-reloaded/))
 * Best wishes,
    Tobias
 *  Thread Starter [vincepettit](https://wordpress.org/support/users/vincepettit/)
 * (@vincepettit)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/php-warnings/#post-3265408)
 * Have sorted and migrated now getting the following error:
 * `Dec 12, 16:23:30 PHP Warning: array_fill() [<a href='function.array-fill'>function.
   array-fill</a>]: Number of elements must be positive in /wp-content/plugins/tablepress/
   controllers/controller-admin.php on line 1316`
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/php-warnings/#post-3265415)
 * Hi,
 * the mentioned line 1316 of that message belongs to the code that TablePress uses
   to import from WP-Table Reloaded. Thus, there’s another table that is broken 
   somehow.
 * Have you restored or deleted all of the broken tables in WP-Table Reloaded?
 * Regards,
    Tobias

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

The topic ‘PHP Warnings’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-table-reloaded_f7dcd3.svg)
 * [WP-Table Reloaded](https://wordpress.org/plugins/wp-table-reloaded/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-table-reloaded/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-table-reloaded/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-table-reloaded/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-table-reloaded/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-table-reloaded/reviews/)

## Tags

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

 * 5 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/php-warnings/#post-3265415)
 * Status: resolved