WordPress.org

Ready to get started?Download WordPress

Forums

Catchable fatal error: Object of class stdClass could not be converted to string (5 posts)

  1. JMH Design
    Member
    Posted 8 months ago #

    I have no idea where this error came from. Here is the code from line 1450:

    $qv['cat'] = preg_replace( '|[^0-9,-]|', '', $qv['cat'], true); // comma separated list of positive or negative integers

    Any help would be greatly appreciated. I'm a front-end developer - PHP is not my forté.

    Thanks!

  2. bythegram
    Member
    Posted 8 months ago #

    Where is $qv['cat'] getting defined originally?

  3. JMH Design
    Member
    Posted 8 months ago #

    Unfortunately, I have no idea. I don't do PHP development, so if you can point me in the right direction, I'll find out. If it helps, this error is preventing posts from being displayed as they should be on the homepage.

  4. bythegram
    Member
    Posted 8 months ago #

    Maybe paste the entire file that that above code is from in http://pastebin.com/ and share the link here so that we can have a closer look.

  5. JMH Design
    Member
    Posted 8 months ago #

    Here you go. Thanks.

    http://pastebin.com/2h7jB7LA

Reply

You must log in to post.

About this Topic