Catchable fatal error: Object of class WP_Error could not be converted to string
-
Hi there,
I am recently having problems, I cannot access my website at all, I get the following error message on the entire website, plus the backend when I try and log in:Catchable fatal error: Object of class WP_Error could not be converted to string in /home/content/s/c/a/scarlettjames/html/wp-includes/default-constants.php on line 116
I have tried looking around for a fix, but without luck. I have tried deactivating the plugins folder, and the problem is the same, so I don’t think it is an incompatible plugin.
I don’t think the line of code it is pointing to is wrong, because I havent touched that code….I tried reuploading a fresh wordpress installation, from the latest downloads on wordpress, and the issue is the same.Here is the line of code that wordpress is telling me that is wrong:
function wp_plugin_directory_constants() {
if ( !defined(‘WP_CONTENT_URL’) )
define( ‘WP_CONTENT_URL’, get_option(‘siteurl’) . ‘/wp-content’); // full url – WP_CONTENT_DIR is defined further up(its the third of those three lines of code specifically)
Can you offer any help? This error suddenly came up on my site, I havent changed or updated anything recently, and I cant figure out what is suddenly causing it. Thanks in advance for your help.
By the way, my website is:
https://www.scarlettjames.comRunning the latest stable wordpress build (4.3.1) and all plugins were up to date, last I checked, Simplicity is the site theme).
I had contacted my host (Godaddy) about site caching, they told me there isnt a problem, and I have contacted the template theme designers, but no solid answer from them either. I have searched multiple cases of the same error message in wordpress forums and elsewhere, but cannot find a solution so far.
Thanks in advance for any help that can be offered:)
- The topic ‘Catchable fatal error: Object of class WP_Error could not be converted to string’ is closed to new replies.