Object of class stdClass could not be converted to string (Qubic) - Forum | JoomShaper
Solved Templates

Object of class stdClass could not be converted to string (Qubic)

Asked by [email protected] 5 years ago Last activity 5 years ago

Hello.
I need submenu item Home - Text Slider to be deleted or inactive.
Instead i want main menu item Home (Hjem) to be default (to link to top of the page.)
When i make Home - Text slider inactive and set Home/Hjem as default I get the error :
Object of class stdClass could not be converted to string.

Why is this and how do i fix it?
I would like to know how it is solved so I can use this template again another time and fix it myself please.

I am working with SP Pagebuilder
Template name is Qubic

Accepted answer

Marked as the solution
Ofi Khan Staff

I have gone to this location: templates/shaper_qubic/sppagebuilder/addons/slideshow_full and edited site.php file. On line 34 I have changed the code from this:

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

to this:

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

5 more replies

[email protected] Asked this

Thank you for your reply. However I still need an answer on how. My question: "I would like to know how it is solved so I can use this template again another time and fix it myself please."

Placide

Hello Ofi, I am having the same error message but with the template EduCon. It happened after manually downloading and installing an update to the template. Now, the site keeps on displaying that error message. Please can you tell me how to fix it? Thank you!

Ofi Khan Staff

I have shared the solution above. Each issue can be caused for different reasons. You can post a new question and we will try to help.

Log in to reply.