error Object of class stdClass could not be converted to string - Forum | JoomShaper
Staff replied SP Page Builder

error Object of class stdClass could not be converted to string

Asked by Hugh 5 years ago Last activity 1 year ago

When an administrator is logged into the backend of a site and edits a Pagebuilder module, the error Object of class stdClass could not be converted to string is generated each time the module is saved.

As a SuperAdmin the module can be saved without any error.

The changes made to the module do appear to be saved despite the error.

32 replies

Ofi Khan Staff

Hello Hugh

Please share a screenshot of your issue to understand it better.

Best regards

Hugh Asked this

Thanks, here is the sequence of events and screenshots.
Login as an Administrator to /administrator (this does not happen if you are super user)
Go to Extensions -> Module Manager
Open an SP Page Builder Module
Click Save and Close

Hugh Asked this

Some further information which should help, if I turn debug on, I get the following output on the error page:

Hugh Asked this

Any news?

Ofi Khan Staff

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

Hugh Asked this

Many thanks for your answer, I have attached details of both a SuperUser and an Admin account, you will only get the error if you login with the admin account

Hugh Asked this

Any news on this?
The process to recreate the issue is very simple:

  1. Login to backend as Administrator
  2. Go to Extensions -> Module Manager
  3. Create a module of type SP Page Builder
  4. Give the module at name and save it (to enable page builder)
  5. Add a row
  6. Put an addon in the row (say Heading) add some text to the heading
  7. Click Save

The error is report as:
An error has occurred.

0 Object of class stdClass could not be converted to string 

If debug is turned on the following info may provide some additional insight
(NOTE: If you are a SuperUser, this error does NOT occur, only for Admin users)

An error has occurred.

0 Object of class stdClass could not be converted to string
/home/wadcom/sp.webappzdigital.com/libraries/src/Filter/InputFilter.php:345 

Call stack

Function Location

1 () JROOT/libraries/src/Filter/InputFilter.php:345
2 Joomla\CMS\Filter\InputFilter->clean() JROOT/libraries/src/Component/ComponentHelper.php:279
3 Joomla\CMS\Component\ComponentHelper::filterText()
4 call_user_func() JROOT/libraries/src/Form/Form.php:1552
5 Joomla\CMS\Form\Form->filterField() JROOT/libraries/src/Form/Form.php:230
6 Joomla\CMS\Form\Form->filter() JROOT/libraries/src/MVC/Model/FormModel.php:358
7 Joomla\CMS\MVC\Model\FormModel->validate() JROOT/administrator/components/com_modules/models/module.php:907
8 ModulesModelModule->validate() JROOT/libraries/src/MVC/Controller/FormController.php:714
9 Joomla\CMS\MVC\Controller\FormController->save() JROOT/administrator/components/com_modules/controllers/module.php:228
10 ModulesControllerModule->save() JROOT/libraries/src/MVC/Controller/BaseController.php:710
11 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/administrator/components/com_modules/modules.php:23
12 require_once() JROOT/libraries/src/Component/ComponentHelper.php:402
13 Joomla\CMS\Component\ComponentHelper::executeComponent() JROOT/libraries/src/Component/ComponentHelper.php:377
14 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:101
15 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:159
16 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:196
17 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/index.php:51

Ofi Khan Staff

My sincere apology for the delay. Please revert back to PHP 7.3 or lower. I hope this issue will be solved.

Hugh Asked this

Thanks, I have tried reverting back to php7.3 the problem remains (only this time even with debug on I just get a white screen of death)

Is there anything else I can try?

Hugh Asked this

Have additionally tried php7.2 and the problem remains. I don't think this is a php version issue.

Log in to reply.