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

Spectrum Template Slideshow Error - Object Of Class StdClass Could Not Be Converted To String

A

AverageJoe

Template 3 years ago

Hi,

I am having an issue with front-end editing for the Slideshow (full-width) addon in the Spectrum template. When a slide is replaced using the front-end editor and the page is saved, the result is the error page loads with the message:

Object of class stdClass could not be converted to string

This problem does not appear when using the backend editor.

It appears this same issue came up a few weeks ago with the Opus template: [https://www.joomshaper.com/forum/question/10230]

Any help would be much appreciated. Thanks!

J! 3.10.4 PHP 7.4.27 MySQL 5.7.32-35-log Web server Apache

0
8 Answers
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 years ago #53556

Yes, you are right. I have edited this file: /sppagebuilder/addons/slideshow_full/site.php line 34 from

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

to

$bg_image = ($slide_item->bg) ? 'style="background-image: url('/ . JURI::base() . (is_string($slide_item->bg) ? $slide_item->bg : $slide_item->bg->src) . '); background-repeat: no-repeat;
0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 years ago #53057

Hello AverageJoe

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

Best regards

0
A
AverageJoe
Accepted Answer
3 years ago #53188

Sending credentials now. Thanks!

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 years ago #53352

Your issue is fixed now. Please check your site.

0
A
AverageJoe
Accepted Answer
3 years ago #53379

Hello Ofi,

That seems to have fixed it.

I'm assuming you made adjustments to the slideshow addon's site.php file? Would you be able to post that here for us to use as a patch until the new version of the Spectrum Template is released?

Thanks for your help!

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 years ago #53557

Please accept the answer that helped you. It will be then easier to find the solution for the other users with the same issue. There is a button to accept answer after each comment.

I have a humble request too. It would be very kind of you if you can manage some moment to give us feedback on Joomla Extension Directory. This will inspire us to improve.

0
A
AverageJoe
Accepted Answer
3 years ago #53602

Thanks!

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 years ago #53737

You are welcome

0