0 Object Of Class Stdclass Could Not Be Converted To String Template SALON - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

0 Object Of Class Stdclass Could Not Be Converted To String Template SALON

BZ

Bianca Zumtobel

Template 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

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

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

0
BZ
Bianca Zumtobel
Accepted Answer
4 years ago #45459

not work
0 syntax error, unexpected '.'

0
BZ
Bianca Zumtobel
Accepted Answer
4 years ago #45462
$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.

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

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

0