Warning: Invalid argument supplied for foreach() in………/wp-content/plugins.
-
Clicking on ‘Edit <sites/networks/edit> gives the warning ‘Warning: Invalid argument supplied for foreach() in………/wp-content/plugins’
I am not sure what problem may occur due to this, but I solved it by doing the following:
Go to Line 65 in
networks-for-wordpress/networks-functions.phpas stated below:
// All site info is pre-fetched into the $sites global — just pull out the one we want
foreach($sites as $site) {and change it to –
// All site info is pre-fetched into the $sites global — just pull out the one we want
if (is_array($sites)) foreach($sites as $site) {Warning disappears.
But the Red box warning about upload error (up on ‘verify network’)still remains. I dont know how to get rid of it. Any suggestion?
- The topic ‘Warning: Invalid argument supplied for foreach() in………/wp-content/plugins.’ is closed to new replies.