I need help. I get the following error

PHP Catchable fatal error: Object of class WP_Error could not be converted to string in /wp-content/themes/continal/framework/template-tags.php on line 239\n', referer: http://site.ru

My code of line 239

 $cats = str_replace('<a', $linkBefore . '<a' . $linkAttr, $cats);

How to fix it? Please advised.

Thank you, Thananit

  • 1
    The error is in your theme. $linkBefore, $linkAttr or $cats is broken. This is something the theme author will need to fix. – Jacob Peattie Jan 13 at 14:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.