Object Of Class StdClass Could Not Be Converted To String - how to resolve this error? - Forum | JoomShaper
Staff replied SP Page Builder

Object Of Class StdClass Could Not Be Converted To String - how to resolve this error?

Asked by TomaszGrzechnik 1 year ago Last activity 1 year ago

Hi,
I had site on J3 - there was a problem:"Object Of Class StdClass Could Not Be Converted To String."
Ok - maybe it's too old version of Joomla, site was updated to 5.2.1 and problem remains.

I can't add image addon or Joomla module to page in SP Page Builder, every time I recive:"Object Of Class StdClass Could Not Be Converted To String."

I try to made new page, and put image and Joomla module, but no success.
SP Page Builder 5.4.2
PHP 8.2
J 5.2.1

In debug mode I have:
JROOT/templates/shaper_kidzy/sppagebuilder/addons/image/site.php:50
JROOT/components/com_sppagebuilder/parser/addon-parser.php:1033

Please help me to resolve this problem

8 replies

Asfakur Rahman Saikat Staff

Hi Tomasz Grzechnik,

Thank you for reaching out, and I am sorry for the inconvenience.

The issue is related to an override of the 'image' addon in the shaper_kidzy template. However, the latest update of the template has resolved this issue.

In the meantime, you can resolve the problem by renaming the file site.php to __site.php in the following directory:
JROOT/templates/shaper_kidzy/sppagebuilder/addons/image/site.php

Alternatively, if you would like us to fix the overridden addon, please provide Joomla admin access to the hidden content section, and we will address the issue for you.

Note: Please keep full site backup before any update.

Best regards

TomaszGrzechnik Asked this

Thanks for reply,
Changing site.php to site.phpx resolving problem, but I prefer to fix it.
Of course can you check the same for Joomla module addon?

Credentials are in hidden section

Asfakur Rahman Saikat Staff

Could you please verify the login URL? It appears to be inaccessible.

Paul Frankowski Senior Staff
1 year ago · edited

Czesc Tomasz,

In general, overwriting the Image addon was a bad idea from our side, I suggest simply deleting the folder.
There is nothing to fix here, as you need to use the latest version from the component to enjoy the full functionality of the addon.


Ogólnie, nadpisanie Image addon to był zły pomysł z naszej strony, sugeruje po prostu usunąć ten folder.
Tu nie ma co naprawiać, bowiem abyś cieszył się pełną funkcjonalnością addonu trzeba używać najnowszej wersji pliku wprost z komponentu. Wrzucenie tam orginalnego pliku nie ma sensu.

Opcja (w razie czego) :

  1. Usuń pliki site.phpand admin.php z folderu templates/shaper_kidzy/sppagebuilder/addons/image/
  2. I zostaw sam folder "image" pusty
  3. Używając FTP zmień uprawnienia do folderu z 755 na 700, wtedy nic ci tam nie wleci podczas nowej aktualizacji. A przynajmniej nie powinno.
  4. I tyle.
TomaszGrzechnik Asked this

please check - it's backend login page

Paul Frankowski Senior Staff
1 year ago · edited

LOOK UP

TomaszGrzechnik Asked this

Thanks Paul :) Your solution works

Next question: What about other addons in this folder?

Paul Frankowski Senior Staff
1 year ago · edited

It depends which one.

In general only class_routines is unqiue made for that template.
call_to_action- is old addon, am not sure if it was used by you even. Its features were replaced by Feature addon a long time ago.


For sure, I would remove google maps (gmap) and testimonialpro override - to have a new code.


With slideshow_full - I would be careful.

TomaszGrzechnik Asked this

Thanks a lot!!! Now I know how to do with old addons :)

Paul Frankowski Senior Staff

You're welcome.

Log in to reply.