Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 13d 01h 21m 08s
Claim 50% off
Solved SP Page Builder

0 trim(): Argument #1 ($string) must be of type string, stdClass given

Asked by Alexandre Carol 1 year ago Last activity 1 year ago

Hello,
I have this error "0 trim(): Argument #1 ($string) must be of type string, stdClass given" when I “Save As Copy” an article.
Joomla 4.4.13
SP Page Builder 5.5.7
PHP 8.2.18

I saw another question with the same error, if you tell me what I should change, I can try it.

Thank you very much
Àlex


An error has occurred.
0 trim(): Argument #1 ($string) must be of type string, stdClass given
Call stack

Function Location

1 () JROOT/templates/shaper_floox/sppagebuilder/addons/carousel/site.php:144
2 trim() JROOT/templates/shaper_floox/sppagebuilder/addons/carousel/site.php:144
3 SppagebuilderAddonCarousel->css() JROOT/components/com_sppagebuilder/parser/addon-parser.php:1161
4 AddonParser::getAddonHtmlView() JROOT/components/com_sppagebuilder/parser/addon-parser.php:470
5 AddonParser::viewAddons() JROOT/components/com_sppagebuilder/parser/addon-parser.php:449
6 AddonParser::viewAddons() JROOT/components/com_sppagebuilder/helpers/helper.php:1730
7 SppagebuilderHelperSite::getPrettyText() JROOT/plugins/content/sppagebuilder/sppagebuilder.php:196
8 PlgContentSppagebuilder::addFullText() JROOT/plugins/content/sppagebuilder/sppagebuilder.php:185
9 PlgContentSppagebuilder->onContentAfterSave() JROOT/libraries/src/Plugin/CMSPlugin.php:289
10 Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin{closure}() JROOT/libraries/vendor/joomla/event/src/Dispatcher.php:486
11 Joomla\Event\Dispatcher->dispatch() JROOT/libraries/src/Application/EventAware.php:111
12 Joomla\CMS\Application\WebApplication->triggerEvent() JROOT/libraries/src/MVC/Model/AdminModel.php:1277
13 Joomla\CMS\MVC\Model\AdminModel->save() JROOT/administrator/components/com_content/src/Model/ArticleModel.php:779
14 Joomla\Component\Content\Administrator\Model\ArticleModel->save() JROOT/libraries/src/MVC/Controller/FormController.php:676
15 Joomla\CMS\MVC\Controller\FormController->save() JROOT/libraries/src/MVC/Controller/BaseController.php:693
16 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:143
17 Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361
18 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:143
19 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186
20 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:293
21 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:61
22 require_once() JROOT/administrator/index.php:32

Accepted answer

Marked as the solution
Atick Eashrak Shuvo Staff

I apologize for the inconvenience caused. Could you please check now and let me know if the issue is resolved on your end?

Looking forward to your response.

Best regards

Alexandre Carol Asked this

It's working.
Should we do something in futures updates?

Atick Eashrak Shuvo Staff

Glad to hear the issue is resolved. The fix will be included in a future update, so no action is required on your part.

3 more replies

Atick Eashrak Shuvo Staff

Hi there!

Thank you for bringing this to our attention, and I sincerely apologize for the inconvenience caused.

To assist you more effectively, may I kindly request temporary administrative access to your site? This will allow me to thoroughly investigate and resolve the issue for you.

Before sharing the credentials, I strongly recommend taking a complete backup of your site to ensure all data remains secure.

Looking forward to your response.

Best regards

Alexandre Carol Asked this

Ok.

Atick Eashrak Shuvo Staff

Please check now

Alexandre Carol Asked this

The same Error:

An error has occurred.
0 trim(): Argument #1 ($string) must be of type string, stdClass given
Call stack

Function Location

1 () JROOT/templates/shaper_floox/sppagebuilder/addons/carousel/site.php:144
2 trim() JROOT/templates/shaper_floox/sppagebuilder/addons/carousel/site.php:144
3 SppagebuilderAddonCarousel->css() JROOT/components/com_sppagebuilder/parser/addon-parser.php:1161
4 AddonParser::getAddonHtmlView() JROOT/components/com_sppagebuilder/parser/addon-parser.php:470
5 AddonParser::viewAddons() JROOT/components/com_sppagebuilder/parser/addon-parser.php:449
6 AddonParser::viewAddons() JROOT/components/com_sppagebuilder/helpers/helper.php:1730
7 SppagebuilderHelperSite::getPrettyText() JROOT/plugins/content/sppagebuilder/sppagebuilder.php:196
8 PlgContentSppagebuilder::addFullText() JROOT/plugins/content/sppagebuilder/sppagebuilder.php:185
9 PlgContentSppagebuilder->onContentAfterSave() JROOT/libraries/src/Plugin/CMSPlugin.php:289
10 Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin{closure}() JROOT/libraries/vendor/joomla/event/src/Dispatcher.php:486
11 Joomla\Event\Dispatcher->dispatch() JROOT/libraries/src/Application/EventAware.php:111
12 Joomla\CMS\Application\WebApplication->triggerEvent() JROOT/libraries/src/MVC/Model/AdminModel.php:1277
13 Joomla\CMS\MVC\Model\AdminModel->save() JROOT/administrator/components/com_content/src/Model/ArticleModel.php:779
14 Joomla\Component\Content\Administrator\Model\ArticleModel->save() JROOT/libraries/src/MVC/Controller/FormController.php:676
15 Joomla\CMS\MVC\Controller\FormController->save() JROOT/libraries/src/MVC/Controller/BaseController.php:693
16 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:143
17 Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361
18 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:143
19 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186
20 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:293
21 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:61
22 require_once() JROOT/administrator/index.php:32

Alexandre Carol Asked this

You can try it with this article
PGITI Social April 2025
Alias: pgiti-social-april-2025
Category: » Recent Activities » PGITI

Atick Eashrak Shuvo Staff

Please share the article name which has the error

Alexandre Carol Asked this

PGITI Social April 2025
Alias: pgiti-social-april-2025
Category: » Recent Activities » PGITI

All the articles Recent Activities.

Log in to reply.