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

0 object of class stdclass could not be converted to string Template SALON

Asked by Bianca Zumtobel 4 years ago Last activity 4 years ago

Hello, we have just installed the Quickstart Joomla 3 V.2.0.0 template on a server.
PHP version 7.4.23 it all works until you edit a page in the SP Page Builder e.g. Home -> Frontend Editor -> click Angeled Pixie heading -> Slidshow 8Full width) -> General -> Slide Background Image, the existing demo image is displayed here ( images / 2018/07/19 / slider1.jpg) exchanged for another and saved, the error 0 object of class stdclass could not be converted to string is already present.

Please clean up, this is a PHP programming error.

best regards
Gert

Accepted answer

Marked as the solution
Ofi Khan Staff

Hello Bianca Zumtobel

Please go to this location: templates/shaper_salon/sppagebuilder/addons/slideshow_full/site.php and change on line 36 from this

$bg_image = ($slide_item->bg) ? 'style="background-image: url('/ . Uri::base() . $slide_item->bg . '); background-repeat: no-repeat;

to

$bg_image = ($slide_item->bg) ? 'style="background-image: url('/ . Uri::base() . (is_string($slide_item->bg) ? $slide_item->bg : $slide_item->bg->src) . '); background-repeat: no-repeat;

Best regards

3 more replies

Bianca Zumtobel Asked this

not work
0 syntax error, unexpected '.'

Bianca Zumtobel Asked this
4 years ago · edited
$bg_image = ($slide_item->bg) ? 'style="background-image: url('/ . Uri::base() . (is_string($slide_item->bg) ? $slide_item->bg : $slide_item->bg->src) . '); background-repeat: no-repeat;

this work

No Preview in Pagebuilder Background Image.
in Frontend is Ok.

Ofi Khan Staff

Thanks for fixing the typo. Frontend will be fixed in the next update, hopefully. Please use the backend editor.

Log in to reply.