0 Trim(): Argument #1 ($string) Must Be Of Type String, StdClass Given - Question | JoomShaper
🎃 Halloween Sale is Live! Get 35% OFF on all plans. Sale ends soon! Get Offer

0 Trim(): Argument #1 ($string) Must Be Of Type String, StdClass Given

AC

Alexandre Carol

SP Page Builder 4 months 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

0
10 Answers
Atick Eashrak Shuvo
Atick Eashrak Shuvo
Accepted Answer
Support Agent 4 months ago #196063

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

0
AC
Alexandre Carol
Accepted Answer
4 months ago #196064

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

0
Atick Eashrak Shuvo
Atick Eashrak Shuvo
Accepted Answer
Support Agent 4 months ago #196079

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

0
Atick Eashrak Shuvo
Atick Eashrak Shuvo
Accepted Answer
Support Agent 4 months ago #196044

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

0
AC
Alexandre Carol
Accepted Answer
4 months ago #196056

Ok.

0
Atick Eashrak Shuvo
Atick Eashrak Shuvo
Accepted Answer
Support Agent 4 months ago #196057

Please check now

0
AC
Alexandre Carol
Accepted Answer
4 months ago #196059

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

0
AC
Alexandre Carol
Accepted Answer
4 months ago #196061

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

0
Atick Eashrak Shuvo
Atick Eashrak Shuvo
Accepted Answer
Support Agent 4 months ago #196060

Please share the article name which has the error

0
AC
Alexandre Carol
Accepted Answer
4 months ago #196062

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

All the articles Recent Activities.

0