Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 12d 16h 45m 15s
Claim 50% off
Solved Templates

Error on home page - Object of class stdClass could not be converted to string

Asked by hillary_h 4 years ago Last activity 4 years ago

Hi, I am using the Shopin template and have this error message, please can I be assisted.

Thank you

Accepted answer

Marked as the solution
Ofi Khan Staff

You are welcome. Please accept the answer that helped you. It will be then easier to find the solution for the other users with the same issue. There is a button to accept answer after each comment.

on 68 line I have changed the line from

$media  .= '<img class="sppb-img-responsive" src="' . $feature_image . '" alt="'.$title.'">';

to

$media  .= '<img class="sppb-img-responsive" src="' . (is_string($feature_image) ? $feature_image : $feature_image->src) . '" alt="'.$title.'">';

3 more replies

Ofi Khan Staff

Hello hillary_hedgehog

I have modified templates/shaper_shopin/sppagebuilder/addons/feature/site.php Your issue is fixed now. Please check your site.

Best regards

hillary_h Asked this

Hi Ofi,

Thank you for this.

It would really be useful to know why this happens and how to correct it myself. Can you share what you did?

Thank you

Ofi Khan Staff

Thanks for accepting the answer. I have a humble request. It would be very kind of you if you can manage some moment to give us feedback on Joomla Extension Directory. This will inspire us to improve.

Log in to reply.