Error On Home Page - Object Of Class StdClass Could Not Be Converted To String - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Error On Home Page - Object Of Class StdClass Could Not Be Converted To String

hillary_h

hillary_h

Template 4 years ago

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

Thank you

0
4 Answers
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 4 years ago #45276

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.'">';
0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 4 years ago #44980

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

0
hillary_h
hillary_h
Accepted Answer
4 years ago #45206

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

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 years ago #46103

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.

0