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

Spectrum Template Slideshow error - Object of class stdClass could not be converted to string

Asked by AverageJoe 4 years ago Last activity 4 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

Accepted answer

Marked as the solution
Ofi Khan Staff

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;

7 more replies

Ofi Khan Staff

Hello AverageJoe

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

Best regards

AverageJoe Asked this

Sending credentials now. Thanks!

Ofi Khan Staff

Your issue is fixed now. Please check your site.

AverageJoe Asked this

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!

Ofi Khan Staff

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.

AverageJoe Asked this

Thanks!

Ofi Khan Staff

You are welcome

Log in to reply.