Twenty Ten: Fatal error in loop.php
|Reported by:||keoshi||Owned by:||lancewillett|
A fatal error is being fired on twentyten's loop.php file, gallery portion:
wp-content/themes/pub/twentyten/loop.php:96 - Object of class WP_Error could not be converted to string
On line 96 of loop.php we should be able to output the category link. But if the term we're looking up doesn't exist, get_term_link returns a WP_Error, and echo'ing that get_term_link throws the fatal error quoted above.
I've attached a patch that checks if it's "get_term_link" is returning a WP_Error.
This has been reported previously: http://wordpress.org/support/topic/get_term_link-throwing-error
Change History (15)
comment:2 @SergeyBiryukov — 2 years ago
- Summary changed from Fatal error on TwentyTen's loop.php to Twenty Ten: Fatal error in loop.php