Web site Crash - Forum | JoomShaper
Solved Templates

Web site Crash

Asked by mediascoms 5 years ago Last activity 5 years ago

Hello, I have a problem with the template OnePage..
When I change an image in a addon (team or slidesshow_full) the website crash... error : "Recoverable fatal error: Object of class stdClass could not be converted to string in /home/clients/d4aa7307f544b9778c3bde8516345b74/sites/crans.medias-coms-shop.ch/templates/shaper_onepage/sppagebuilder/addons/teams/site.php on line 53" this error is whit the addon "team"

I have the same but on line 34 with the addon Slideshow_full

I can change the image directly in the directory and it's work..

Tanks for help

Best regard

Accepted answer

Marked as the solution
Ofi Khan Staff

Your issue is fixed now. Please check your site.

5 more replies

Ofi Khan Staff

Hello mediascoms

Please share your administrator access here to check the issue. Use the Hidden Content box to share the credentials.

Best regards

mediascoms Asked this

here there are :

mediascoms Asked this

Thank you so much !

If I may, could you tell me what you have to modify to fix the bug?

Best Regards

Ofi Khan Staff

You are welcome. At this location: templates/shaper_onepage/sppagebuilder/addons/teams/site.php on line 53 I have modified the code from this:

$output .= '<img class="img-thumbnail sppb-img-responsive" src="' . $sppbTeam->image . '" alt=" ' . $sppbTeam->title . ' ">';

to this:

$output .= '<img class="img-thumbnail sppb-img-responsive" src="' . (is_string($sppbTeam->image) ? $sppbTeam->image : $sppbTeam->image->src) . '" alt=" ' . $sppbTeam->title . ' ">';

Ofi Khan Staff

I have a humble request. It would be very kind of you if you can manage some moment to give us feedback here:

  1. JED
  2. Trustpilot
Log in to reply.