• Resolved rmagbanua09

    (@rmagbanua09)


    [ Moderator note: title fixed. Do not use URGENT in your titles. ]

    Hi,

    I currently came across an error in our website, mototeks.com
    The following error is

    Catchable fatal error: Object of class WP_Error could not be converted to string in /home/content/33/8927433/html/wp-includes/default-constants.php on line 135

    The website was fine the last time I was on it on friday. I tried every fix i could find but still no luck… Please help

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator t-p

    (@t-p)

    What did you do before this issue happened? For example:
    – Did you update WP? Yes? Was it auto update or manual update? Also, updated from what version?
    – Did you install/update plugins?
    – Did you install/update theme?
    – What theme are you using? Where did you download ir from?
    – Have you moved your site to new server, new domain, or new directory
    – Did your site work without any issue before (No hacking, no error, etc.)?
    http://codex.ww.wp.xz.cn/Forum_Welcome#Include_as_Much_Information_as_Possible

    Thread Starter rmagbanua09

    (@rmagbanua09)

    Hi Tara,

    I updated a few plugins before this issue happened. Although I wasn’t sure which one it was. After this issue came up, I immediately disabled all plugins by moving it to a different folder outside wordpress folders through FTP in Godaddy. My site worked without any issue before. This is the first this issue has happened.

    Now the following error popped up:


    Parse error: syntax error, unexpected ‘)’ in /home/content/33/8927433/html/newwebsite/wp-includes/default-constants.php on line 101

    Moderator t-p

    (@t-p)

    Have you tried:
    – Flushing any caching plugins you might be running, as well as server and/or browser caches. Also, any op cache or content network cache, as well as Cloudflare, clear those caches.
    – deactivating ALL (yes all) plugins temporarily to see if this resolves the problem (plugin functions can interfere). If this works, re-activate them individually (one-by-one) to find the problematic plugin(s).
    – If you can’t get into your admin dashboard, try resetting the plugins folder by FTP. Sometimes, an apparently inactive plugin can still cause problems. Also remember to deactivate any plugins in the mu-plugins folder (if you have created such folder). The easiest way is to rename that folder to mu-plugins-old.
    – switching to the unedited default Theme (Twenty Sixteen, etc.) for a moment using the WP dashboard to rule out any theme-specific issue (theme functions can interfere like plugins). If you don’t have access to your admin area, use FTP , or your web-host’s cPanel or whatever file management application your host provides (no Dashboard access required). Navigate to /wp-content/themes/ and switch to the default theme by renaming your current theme’s folder by adding “-old” to the end of the folder name. Alternately, you can remove other themes except the default theme. That will force your site to use it.
    – If all the above steps do not resolve the issue, then try MANUALLY updating. Download a fresh copy of the WordPress .zip file to your computer, unzip it, and use that to copy up all files and folders EXCEPT the wp-config.php file and the /wp-content/ directory. You may need to delete the old wp-admin and wp-includes folders and files on your server before uploading the new ones. Read the Manual Update directions first.
    Backup: If you haven’t already done, always backup everything (including your database) before doing any actions, just in case something really goes wrong.

    Thread Starter rmagbanua09

    (@rmagbanua09)

    Please disregard the previous error I stated, It is back to being the following:

    Catchable fatal error: Object of class WP_Error could not be converted to string in /home/content/33/8927433/html/newwebsite/wp-includes/default-constants.php on line 101

    After searching for any solutions through forums and other websites, I tried;
    -Renaming my theme folder
    -Replacing the wp-content and wp-includes
    -Disabling plug-ins

    Thread Starter rmagbanua09

    (@rmagbanua09)

    Hi Tara,

    I found the error and it was because my siteurl was changed within my WP_Options. Thank you so much for your time and help!

    Closing this thread

    Moderator t-p

    (@t-p)

    Glad to know it 🙂

    Adding the below to wp-config.php should help regain access to WordPress, but siteurl in the WP_Options table is the proper fix.

    define('WP_HOME','http://example.com');
    define('WP_SITEURL','http://example.com');

    Found this issue impacted mediatemple on the latest WordPress 4.4.1 upgrade.

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

The topic ‘WP_Error on my site’ is closed to new replies.