Title: PHP warning invalid argument foreach in wp-edit/main.php
Last modified: August 22, 2016

---

# PHP warning invalid argument foreach in wp-edit/main.php

 *  Resolved [Becki Beckmann](https://wordpress.org/support/users/becki/)
 * (@becki)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/php-warning-invalid-argument-foreach-in-wp-editmainphp/)
 * hello there,
 * since moving to a new server i receive the following warning in the error log:
 * [27-Aug-2014 20:35:53 UTC] PHP Warning: Invalid argument supplied for foreach()
   in /srv/www/domain/httpdocs/wp-content/plugins/wp-edit/main.php on line 2663
 * it’s runnning apache 2.4.6 with php version 5.4.20
 * the wordpress setup is a multisite install.
 * any suggestions how to get rid of the error message?
 * thanks & greetings
    becki
 * [https://wordpress.org/plugins/wp-edit/](https://wordpress.org/plugins/wp-edit/)

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

 *  Plugin Author [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/php-warning-invalid-argument-foreach-in-wp-editmainphp/#post-5236898)
 * Thanks Becki,
 * I’ll have to dig into this a little deeper and do some testing.
    Thanks for the
   extra details.
 * Did you ever save your button arrangement on the new server? Move a button to
   ensure it saves again… and see if the error warning persists.
 *  Thread Starter [Becki Beckmann](https://wordpress.org/support/users/becki/)
 * (@becki)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/php-warning-invalid-argument-foreach-in-wp-editmainphp/#post-5236903)
 * hi josh,
 * thanks a lot for your reply 😉 did re-arrange some buttons and it safed successful
   without any problems.
 * will monitor the error log and report back if another error shows up.
 * thanks & greetings
    becki
 *  Thread Starter [Becki Beckmann](https://wordpress.org/support/users/becki/)
 * (@becki)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/php-warning-invalid-argument-foreach-in-wp-editmainphp/#post-5236909)
 * hi josh,
 * did monitor the error log and the PHP warning still persists:
 * [02-Sep-2014 03:53:05 UTC] PHP Warning: Invalid argument supplied for foreach()
   in /srv/www/domain/httpdocs/wp-content/plugins/wp-edit/main.php on line 2663
 * thanks & greetings
    becki
 *  [jaggerwarellc](https://wordpress.org/support/users/jaggerwarellc/)
 * (@jaggerwarellc)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/php-warning-invalid-argument-foreach-in-wp-editmainphp/#post-5236941)
 * Hi,
 * I am also seeing this exact message (same line number). I’m on the latest WP-
   EDIT plug-in version (2.2), and on the latest WordPress (3.9.2).
 * FYI, I removed the error_log and refreshed my home page and one of these errors
   came out:
 * [03-Sep-2014 22:24:27 UTC] PHP Warning: Invalid argument supplied for foreach()
   in /x/y/public_html/wp-content/plugins/wp-edit/main.php on line 2663
 * Don’t know if it will help. But, here a link to the page that I refreshed to 
   get the error:
 * [http://www.beautyisonlyskindeep.net](http://www.beautyisonlyskindeep.net)
 * Regards,
    Jaggerware LLC
 *  Plugin Author [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/php-warning-invalid-argument-foreach-in-wp-editmainphp/#post-5236943)
 * Thanks guys.
    I’m looking into this now.
 * I’ll release an update later today/tomorrow after WP updates to 4.0.
 *  [tracy@thethingswellmake.com](https://wordpress.org/support/users/tarizagmailcom/)
 * (@tarizagmailcom)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/php-warning-invalid-argument-foreach-in-wp-editmainphp/#post-5236950)
 * Following. I just installed it on a multisite, and got this error, and was completely
   unable to access my WP dashboard until I disactivated the plugin.
    I would love
   to try it out!
 *  Thread Starter [Becki Beckmann](https://wordpress.org/support/users/becki/)
 * (@becki)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/php-warning-invalid-argument-foreach-in-wp-editmainphp/#post-5236961)
 * hello Josh,
 * did iinstall wordpress 4.0 and the update of wp-edit 2 days ago.
 * since then no more php warnings in the error log -> topic closed 😉
 * thanks & all the best
    becki
 *  Plugin Author [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/php-warning-invalid-argument-foreach-in-wp-editmainphp/#post-5236971)
 * Excellent.
    Thank you!

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

The topic ‘PHP warning invalid argument foreach in wp-edit/main.php’ is closed to
new replies.

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

 * 8 replies
 * 4 participants
 * Last reply from: [Josh](https://wordpress.org/support/users/josh401/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/php-warning-invalid-argument-foreach-in-wp-editmainphp/#post-5236971)
 * Status: resolved