Title: Web server returning an unknown error
Last modified: December 8, 2019

---

# Web server returning an unknown error

 *  Resolved [username201701](https://wordpress.org/support/users/username201701/)
 * (@username201701)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/web-server-returning-an-unknown-error/)
 * Hello I’m unable to access my website after using your plugin. In my server error
   log I’m seeing the following message
 * PHP Warning: Invalid argument supplied for foreach() in …wp-includes/rest-api/
   endpoints/class-wp-rest-controller.php on line 295
 * I’ve deleted your plugin manually by deleting its folder but I’m still unable
   to access the site. Could you please explain what may have caused this error?
 * Thank you.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fweb-server-returning-an-unknown-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [cageehv](https://wordpress.org/support/users/cageehv/)
 * (@cageehv)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/web-server-returning-an-unknown-error/#post-12216518)
 * Hey username201701,
 * Did you try to deactivate all plugins?
 * (The warning is probable caused by the new WP Gutenberg page editor)
 * Let me know.
 * peace,
    Rolf
 *  Thread Starter [username201701](https://wordpress.org/support/users/username201701/)
 * (@username201701)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/web-server-returning-an-unknown-error/#post-12217123)
 * Hi Rolf – I can now only intermittently access it my site after changing the 
   cache settings in Cloudflare. Yes I deactivated all plugins and it didn’t make
   any difference.
 * I assume that when I ran your plugin, it altered something in the database and
   that is causing the problem?
 * If I were to contact my hosting company to get a backup of my site (I didn’t,
   but should have, made my own backup before running your plugin), would this fix
   the issue? I don’t know a lot about database errors, but I assume a backup will
   only reinstate the previous files and folders, not make alterations to the db.
   Is this correct?
 * Thanks for your help. I’ve also reached out to Cloudflare support to see if they
   can diagnose and hopefully fix the problem on their end.
 *  Plugin Contributor [cageehv](https://wordpress.org/support/users/cageehv/)
 * (@cageehv)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/web-server-returning-an-unknown-error/#post-12219121)
 * Hey username201701,
 * To be honest: I doubt if my plugin has anything to do with the issue. Probably
   not.
 * It’s hard to say what caused it.
 * You could ask Cloudflare to restore the latest database backup from just before
   the crash. I don’t know if that will fix the problem or not.
    Tip: make a backup
   of the current database before asking Cloudflare for the database restore (just
   in case…)
 * Good luck!
 * Rolf

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

The topic ‘Web server returning an unknown error’ is closed to new replies.

 * ![](https://ps.w.org/rvg-optimize-database/assets/icon-256x256.png?rev=3350597)
 * [Optimize Database after Deleting Revisions](https://wordpress.org/plugins/rvg-optimize-database/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/rvg-optimize-database/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/rvg-optimize-database/)
 * [Active Topics](https://wordpress.org/support/plugin/rvg-optimize-database/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rvg-optimize-database/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rvg-optimize-database/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [cageehv](https://wordpress.org/support/users/cageehv/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/web-server-returning-an-unknown-error/#post-12219121)
 * Status: resolved