Web Site Crash - Question | JoomShaper

Web Site Crash

M

mediascoms

Template 4 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

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

Your issue is fixed now. Please check your site.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 4 years ago #18251

Hello mediascoms

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

Best regards

0
M
mediascoms
Accepted Answer
4 years ago #18263

here there are :

0
M
mediascoms
Accepted Answer
4 years ago #18304

Thank you so much !

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

Best Regards

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 4 years ago #18308

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 . ' ">';

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 4 years ago #18309

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
0