Recoverable fatal error: Object of class stdClass could not be converted to string in /home/customer/www/MYSITE/public_html/templates/shaper_knight/sppagebuilder/addons/person/site.php on line 62 - Forum | JoomShaper
Staff replied Templates

Recoverable fatal error: Object of class stdClass could not be converted to string in /home/customer/www/MYSITE/public_html/templates/shaper_knight/sppagebuilder/addons/person/site.php on line 62

Asked by Rory 5 years ago Last activity 5 years ago

Recoverable fatal error: Object of class stdClass could not be converted to string in /home/customer/www/MYSITE/public_html/templates/shaper_knight/sppagebuilder/addons/person/site.php on line 62

This is line 62

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

Help.....

14 replies

Ofi Khan Staff

Hello Rory

Please change . $image . to this . (is_string($image) ? $image : $image->src) . in the file. Hopefully, your issue will be solved.

Best regards

Rory Asked this

Do you mean at line 18 where it says :

    $image              = (isset($this->addon->settings->image) && $this->addon->settings->image) ? $this->addon->settings->image : '';
Ofi Khan Staff

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

Rory Asked this

Hi Ofi
I have entered in the hidden content box
I haev created a temporary password for use when yiou are accessing and will reset it when you are finished
Thanks
Rory

Ofi Khan Staff

Please share your site URL here.

Rory Asked this

see hidden content

Ofi Khan Staff

I have changed the code in the file. Hopefully, it is fixed now.

Markus Freiinger
5 years ago · edited

i have the same problem with another template Recoverable fatal error: Object of class stdClass could not be converted to string in /www/himschw01/www/himmelreichschweine.at/templates/shaper_onepage/sppagebuilder/addons/teams/site.php on line 53

I do net get the solution above... can anyone please help?

Ofi Khan Staff

Hello Markus Freiinger

Please share the site.php file here. I will fix and share with you.

Best regards

Rory Asked this

Hi Ofi

It has happened again when i went to add a picture on the news tab.

Recoverable fatal error: Object of class stdClass could not be converted to string in /home/customer/www/MYSITE/public_html/templates/shaper_knight/sppagebuilder/addons/knight_categories/site.php on line 25

I tried to fix as per above but it failed. Can you fix ?

Can you elaborate what is the issue that keeps causing this so I dont repeat it

Website and password set as for before to allow you access - see hidden content

Thanks

Rory

Log in to reply.