[wp-testers] stdClass error & Some strange post parent things going on

Jonathan Gabor jgabor at gmail.com
Mon Nov 17 13:57:24 GMT 2008


I get the same error, but for WP_Error in index.php:
Catchable fatal error: Object of class WP_Error could not be converted to
string in
/local/home/jonathan/hidden.url.sorry/wp/wp-content/themes/dev-theme/index.php
on line 18

It only occurs when I try to fetch the category link with
<?php echo get_category_link($cat);?>

Same issue, or a totally different error? Everything else is working fine,
no error for stdClass.

/Jonathan

On Mon, Nov 17, 2008 at 14:11, mrmist <listswptesters at mist.org.uk> wrote:

> In message <1931c86d0811170415s61ba471bt33a8ae52cc454317 at mail.gmail.com>,
> Paul Robinson <pablorobinson at gmail.com> writes
>
>>
>> I've looked at the line in question & it tries to echo out
>> $post->post_parent but if you print_r the variable you get another
>> class, which I guess is what is causing the error.
>>
>>
> If you can pin down why it's happening then there's an open ticket you can
> add to for it - http://trac.wordpress.org/ticket/8245
> --
> mrmist
>
> _______________________________________________
> wp-testers mailing list
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers
>


More information about the wp-testers mailing list