Search

WPPlugins AtoZ

Powered by WPPro AtoZ Host

Catchable fatal error: Object of class WP_Error

Catchable fatal error: Object of class WP_Error could not be converted to string in …./wp-content/plugins/wp-e-commerce/wpsc-includes/category.functions.php on line 361

Time there is never enoughHow I solved this error and it might save you some time.

I converted over an OsCommercer store to WP-Ecommerce using cart to cart a great way to bring over that database especially when huge like this one was. It had over 6k items and more. The conversion tests all went well so I went ahead with full conversion.  That’s when the site broke after full conversion; suddenly I was getting the following error

Catchable fatal error: Object of class WP_Error could not be converted to string in …./wp-content/plugins/wp-e-commerce/wpsc-includes/category.functions.php on line 361

And the real fun began after search online in Google etc. found no definitive answer so began the usual process of elimination to find the issue, looking for what was out of place or what I could get to work.

First I did the usual started by turning off all plugins to make sure of no conflicts I had no luck same issue. Then I activated the default theme to rule out any theme issues and yes this was while all plugins off, I still had no luck so issue was not basics

I started looking at individual postings and discovered on some posts I could get a partial list of categories in the widget. I then started experimenting on what I could show in the widget.

What I discovered by limiting which catigories to show was where the issue was that several of the sub cats had no image properly associated not even the no-image  image was there, as strange as this was. How I noticed that is that in place of the image or even the no-image image there was test as the title of the category.  I went through them and deleted the image even though there was none and sure enough by removing the non-existent image I was able to solve the problem.

This error most likely occurred due to mismatch or missing image from old site that where not noticed.

I hope this helps save someone wasted time…

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this. Review Privacy Policy here

Close