WordPress.org

Forums

Responsive
podpress posts do not display anymore. (3 posts)

  1. goosecreature
    Member
    Posted 2 years ago #

    All of sudden I've started getting this error when trying to open a single post that has a podpress element. Seems to have corresponded with the theme update.

    Catchable fatal error: Object of class WP_Error could not be converted to string in /hermes/waloraweb060/b1755/pow.thesheep/htdocs/wp-content/themes/responsive/core/includes/functions.php on line 576

    Here is where 576 is (its the $cats = str_replace('<a', $linkBefore . '<a' . $linkAttr, $cats); line)

    } elseif ( is_attachment() ) {
    			$parent = get_post($post->post_parent);
    			$cat = get_the_category($parent->ID); $cat = $cat[0];
    			$cats = get_category_parents($cat, true, $delimiter);
    			$cats = str_replace('<a', $linkBefore . '<a' . $linkAttr, $cats);
    			$cats = str_replace('</a>', '</a>' . $linkAfter, $cats);
    			echo $cats;
    			printf($link, get_permalink($parent), $parent->post_title);
    			if ($showCurrent == 1) echo $delimiter . $before . get_the_title() . $after;

    Any help would be great. Thanks.

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    As per the theme developer's request, please try posting on the theme's dedicated forum: http://cyberchimps.com/forum/free/responsive/

  3. goosecreature
    Member
    Posted 2 years ago #

    Further to my initial post if I take out the following lines, the posts open just fine.

    $cats = get_category_parents($cat, true, $delimiter);
    $cats = str_replace('<a', $linkBefore . '<a' . $linkAttr, $cats);
    $cats = str_replace('</a>', '</a>' . $linkAfter, $cats);
    echo $cats;

    Also, the site is http://www.thesheep.ca

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.