• I am getting this error message:

    Catchable fatal error: Object of class __PHP_Incomplete_Class could not be converted to string in /home/bestofnj/public_html/wp-includes/wp-db.php on line 429

    I have no idea where to begin. I posted on an old forum thread from a few months ago and I did not know if anyone would find it there, so I am posting my problem here.

    The error message is popping up every time I try to change my password. I have been having problems with widgets and plugin also.

    Thanks for the help.
    John

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter John Stringfellow

    (@frenchtowner)

    By the way, I have looked in my Phpmyadmin and I cannot see any errors.

    Thread Starter John Stringfellow

    (@frenchtowner)

    This simple fix worked finally:

    pdreissen
    Member
    Posted 6 months ago #

    Fix this by ommitting the addslashes function:

    Change the
    return addslashes( $string );

    into:

    return $string;

    Thread Starter John Stringfellow

    (@frenchtowner)

    Oh, I just love talking to myself like this. I guess I am really the only one who has run across this issue.

    I have bad news and I want to share it in case anyone else runs across this Catchable fatal error in wp-db.php. The simple fix that I used above fixed my previous problems and made bigger problems.

    I now have bigger problems that I did not have before. I now have a situation where I cannot make posts. It seems that most of the text that I enter into text boxes is simply wiped out when I hit the update or publish button.

    Now I am really confused and I think I have to do the big job of starting over.

    John

    Hi Frenchtowner, I’ll talk to you!

    The solution you recommend is potentially dangerous. The escape function is part of WordPress’s protection against SQL injection, and what you recommend bypasses that protection. Sorry to be the bearer of bad tidings!

    I’ve got the problem as well, but it’s specific to a plugin I’ve written and only seems to occur intermittently. I suspect that the solution will be a code correction in something which is calling that escape function… however I don’t think my solution will fit your version of the problem, however I will try to remember to post here just in case.

    Good luck!

    Thread Starter John Stringfellow

    (@frenchtowner)

    Simon,

    Good Morning, Afternoon or Evening, Whatever it is, Wherever You Are,

    There is a code patch for this problem that did the job for me. Please see my other post: https://www.ads-software.com/support/topic/274521?replies=5

    John

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Catchable fatal error: class __PHP_Incomplete_Class wp-includes/wp-db.php’ is closed to new replies.