Title: Plugin Won&#8217;t work: Catchable fatal error
Last modified: January 31, 2018

---

# Plugin Won’t work: Catchable fatal error

 *  Resolved [opie2k1](https://wordpress.org/support/users/opie2k1/)
 * (@opie2k1)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/plugin-wont-work-catchable-fatal-error/)
 * I installed the plugin and when I tried to import sample data, I got the error:
 * Catchable fatal error: Object of class WP_Error could not be converted to string
   in /home/dh_ebc578/thisismytestsite.xyz/wp-content/plugins/buddypress/bp-xprofile/
   classes/class-bp-xprofile-profiledata.php on line 127
 * As this was a similar error as someone else reported, I reached out to Buddypress
   support and got this response:
 * I’m guessing that the $this->user_id parameter is the WP_Error object [https://buddypress.trac.wordpress.org/browser/tags/2.9.2/src/bp-xprofile/classes/class-bp-xprofile-profiledata.php#L127](https://buddypress.trac.wordpress.org/browser/tags/2.9.2/src/bp-xprofile/classes/class-bp-xprofile-profiledata.php#L127);
   this might result in the Default Data plugin because it attempted to generate
   a user, but failed, and didn’t catch its failure before attempting to add profile
   data for the new user.
    We could build some sort of failsafe to prevent this 
   sort of fatal from happening, but I don’t know if we’d want to. In this case,
   it’s likely that the problem is a result of some incorrect logic or incomplete
   error checking in BP Default Data, and if we were to silently “fix” the error(
   by returning false or something) it would hide what could be a more serious bug
   for the plugin.
 * Is there anyway you might be able to fix this error?
 * Thanks!
    Shawn

The topic ‘Plugin Won’t work: Catchable fatal error’ is closed to new replies.

 * ![](https://ps.w.org/bp-default-data/assets/icon-256x256.png?rev=1643365)
 * [BuddyPress Default Data](https://wordpress.org/plugins/bp-default-data/)
 * [Support Threads](https://wordpress.org/support/plugin/bp-default-data/)
 * [Active Topics](https://wordpress.org/support/plugin/bp-default-data/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bp-default-data/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bp-default-data/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [opie2k1](https://wordpress.org/support/users/opie2k1/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/plugin-wont-work-catchable-fatal-error/)
 * Status: resolved