WordPress has errors only while on inmotion hosting

Avatar
  • Answered
I'm working on behalf of a client, and I keep getting an error message when I load the backend of my WordPress site. I've tried reinstalling WordPress and all the plugins but it keeps coming back. The only thing that helps is moving the site to a different host. Can you offer some suggestions on how to fix this?

The live chat specialist did some basic troubleshooting with me including changing the php version, reinstalling WordPress, and disabling all plugins. He told me I should ask the question here.

The only place I find this error is in the backend of WordPress (usually on the updates or plugins pages). The pages the visitor sees display correctly. This is the error:

Warning: Invalid argument supplied for foreach() in /home/[user_account_directory]/public_html/wp-includes/update.php on line 303

Warning: Invalid argument supplied for foreach() in /home/[user_account_directory]/public_html/wp-includes/update.php on line 307message.
Avatar
Scott
Hello,

Thank you for your WordPress question. The answer does indeed seem to be within your plugins. I was able to disable the plugins and the error went away. This did seem to deactivate some of your your plugins, so you will need to reactivate the ones you had active. If you activate one that seems to trigger the error, disable it again and then it should go away. That will be the problem plugin that you either want to update or avoid altogether.

Kindest Regards,
Scott M