Title: PHP Fatal error settings.php
Last modified: July 19, 2019

---

# PHP Fatal error settings.php

 *  Resolved [Kim](https://wordpress.org/support/users/graphicfox/)
 * (@graphicfox)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/php-fatal-error-settings-php/)
 * Hello.
 * Out of nowhere I got an PHP error a few hours after i updated to the latest version.
 * PHP Fatal error: Uncaught Error: Cannot use object of type WP_Error as array 
   in /XXXXXX/httpdocs/wp-content/plugins/optimole-wp/inc/settings.php:220
 * I deactivated the plugin for now to solve the get my wordpress running again.
   Any Idea how this happend?

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

 *  Plugin Author [Optimole](https://wordpress.org/support/users/optimole/)
 * (@optimole)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/php-fatal-error-settings-php/#post-11750262)
 * Hello [@graphicfox](https://wordpress.org/support/users/graphicfox/),
 * That’s strange, I will check this out and add a type check in the plugin code
   to avoid this kind of error.
 * Have you changed the hosting recently or added some change to them recently?
 * Thanks !
 *  Thread Starter [Kim](https://wordpress.org/support/users/graphicfox/)
 * (@graphicfox)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/php-fatal-error-settings-php/#post-11750427)
 * Hey thanks for your answer. 🙂
 * Everything was working fine for the last 2 months. I updated a few plugins (ACF,
   Wordfence, Duplicate Post, Yoast and optimole) and cleared the cache afterwards(
   Autoptimize)
 * The website was working for a few hours and then i got Mail from my Uptime Robot
   that the website sends HTTP 500 Error.
 * The last change on the website was some Analytics code and i deleted 2 Users.
   Thats all. 😀
 *  Plugin Author [Optimole](https://wordpress.org/support/users/optimole/)
 * (@optimole)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/php-fatal-error-settings-php/#post-11754058)
 * Hey [@graphicfox](https://wordpress.org/support/users/graphicfox/),
 * I’ve added a fail-safe mechanism to avoid such issues in the latest v2.1.1
 * Please update and let me know if you run in any other issues.
 * Thanks for understanding!

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

The topic ‘PHP Fatal error settings.php’ is closed to new replies.

 * ![](https://ps.w.org/optimole-wp/assets/icon-256x256.gif?rev=3013666)
 * [Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization](https://wordpress.org/plugins/optimole-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/optimole-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/optimole-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/optimole-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/optimole-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/optimole-wp/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Optimole](https://wordpress.org/support/users/optimole/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/php-fatal-error-settings-php/#post-11754058)
 * Status: resolved