Title: [Plugin: Like-Button-Plugin-For-WordPress] conflict with &#039;get_category_parents&#039; function
Last modified: August 20, 2016

---

# [Plugin: Like-Button-Plugin-For-WordPress] conflict with 'get_category_parents' function

 *  [Clifford Paulick](https://wordpress.org/support/users/cliffpaulick/)
 * (@cliffpaulick)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-like-button-plugin-for-wordpress-conflict-with-get_category_parents-function/)
 * With the plugin activated (that’s the ONLY thing I changed), I get this error
   message on a ‘single’ post:
 * > Catchable fatal error: Object of class WP_Error could not be converted to string
   > in …edited…out…/functions/breadcrumbs.php on line 32
 * The conflicting function: [http://codex.wordpress.org/Function_Reference/get_category_parents](http://codex.wordpress.org/Function_Reference/get_category_parents)
 * This is the ‘line 32’:
    `echo '<li> » '. get_category_parents( $category_id, 
   TRUE, " » " );` If I change it to this, with the Plugin activated, it displays‘
   Home > 1’ but at least the ‘single’ post doesn’t break: `echo '<li> » '. 1/* 
   get_category_parents( $category_id, TRUE, " » " ) */;`
 * [http://wordpress.org/extend/plugins/like-button-plugin-for-wordpress/](http://wordpress.org/extend/plugins/like-button-plugin-for-wordpress/)

The topic ‘[Plugin: Like-Button-Plugin-For-WordPress] conflict with 'get_category_parents'
function’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/like-button-plugin-for-wordpress.
   svg)
 * [Like-Button-Plugin-For-Wordpress](https://wordpress.org/plugins/like-button-plugin-for-wordpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/like-button-plugin-for-wordpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/like-button-plugin-for-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/like-button-plugin-for-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/like-button-plugin-for-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/like-button-plugin-for-wordpress/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Clifford Paulick](https://wordpress.org/support/users/cliffpaulick/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-like-button-plugin-for-wordpress-conflict-with-get_category_parents-function/)
 * Status: not resolved