Page gone off - Forum | JoomShaper
Solved SP Page Builder

Page gone off

Asked by Mac Robert 5 years ago Last activity 5 years ago

Please, l added an image to the template's slideshow since then l've been getting this error meassage.

"Recoverable fatal error: Object of class stdClass could not be converted to string in /home3/imacdigi/mabid.org/templates/shaper_hope/sppagebuilder/addons/slideshow_full/site.php on line 31"

Please, could you please elaborate the error and the cause so that l might not keep repeating this kind of error,
Please, l really need your help

Accepted answer

Marked as the solution
Ofi Khan Staff

Hello Mac Robert

I have gone to this location: templates/shaper_hope/sppagebuilder/addons/slideshow_full and in site.php file changed line 31.

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

Now:
$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;

Best regards

7 more replies

Mac Robert Asked this

Thanks very much
it's working now
by the way, Khan, is the fault from me?

Ofi Khan Staff

You are welcome. It occured because of the PHP version. We will add the compatibility in our future updates.

Mac Robert Asked this

great thanks

Abdul Haseeb

Hi Ofi..

I got the same message but I am getting

Error 0
syntax error, unexpected '.'

I have changed the PHP version to PHP 7.3.28

Please advise

thanks

Ofi Khan Staff

Please post a new question about it. Our team will assist you.

Mac Robert Asked this

Hello
please i need your help ... how do i edit the banner so i can add an image to it

Mac Robert Asked this

Hello
please i need your help ... how do i edit the banner so i can add an image to it

Log in to reply.