SP Page Builder Articles Integration - Forum | JoomShaper
Solved SP Page Builder

SP Page Builder Articles Integration

Asked by Alexandre Carol 11 months ago Last activity 11 months ago

Hello
This error appears after saving (Save) an article through Import (template+media).
New Article: SP Page Builder : Edit with Backend Editor

Request failed with status code 500

It looks like everything works fine if the articles is saved with Save & Close

If I edit the article again, without editing the content, only for change Images and links, Options, ... and I Save it, the following error appears.

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

This is my configuration.
SP Page Builder 6.1.2
Joomla 5.3.4
PHP Version 8.2.26
DB MariaDB 10.11.6

Thank you very much,
Àlex

Accepted answer

Marked as the solution
Rashida Rahman Staff
11 months ago · edited

Hi Àlex,

Thanks for your patience and understanding.

I have just tried to export/import apage from my local and save works fine there. So it seems the issue is within your exported page. Please try to export/import different page and check again.

I have left the changes for you there: https://share.cleanshot.com/kBmDprWL

Here is the related doc: https://www.joomshaper.com/documentation/sp-page-builder/export-import-and-save-for-later-use

You will find the following notice here: "Notice! You can reuse exported pages also on different websites, but you have to be sure that they contain the same list of addons and image structure. If not, part of the content may not work. The exported .json file does not contain any addon code inside, only layout and page settings. Also, you need to have the same images stored in the new destination to get the visuals. "

Best regards,

Alexandre Carol Asked this

Thank you very much!

Rashida Rahman Staff

You are always welcome:)

Have a nice day!

4 more replies

Łukasz

Update Joomla to 5.4.0 and raise PHP to at least 8.3 and preferably to 8.4

Rashida Rahman Staff

Hi Àlex,

Sorry for your experience. Did you mean importing a article only causing these issues? Cause I have just created a test article and save works fine there.

Yes, updating everything will be better.

Best regards,

Alexandre Carol Asked this

Hi Rashida,
Try to Save one of the articles already created.
I have the same error.

Alexandre Carol Asked this

Hi Rashida,
Have you had the opportunity to take a look to the error?
Remember, it's an Exported - Imported page.

Thank you very much,

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:1165
4 AddonParser::getAddonHtmlView() JROOT/components/com_sppagebuilder/parser/addon-parser.php:469
5 AddonParser::viewAddons() JROOT/components/com_sppagebuilder/parser/addon-parser.php:448
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:320
10 Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin{closure}() JROOT/libraries/vendor/joomla/event/src/Dispatcher.php:454
11 Joomla\Event\Dispatcher->dispatch() JROOT/libraries/src/MVC/Model/AdminModel.php:1312
12 Joomla\CMS\MVC\Model\AdminModel->save() JROOT/administrator/components/com_content/src/Model/ArticleModel.php:797
13 Joomla\Component\Content\Administrator\Model\ArticleModel->save() JROOT/libraries/src/MVC/Controller/FormController.php:689
14 Joomla\CMS\MVC\Controller\FormController->save() JROOT/libraries/src/MVC/Controller/BaseController.php:730
15 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:143
16 Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361
17 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:150
18 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:205
19 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:304
20 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:58
21 require_once() JROOT/administrator/index.php:32

Log in to reply.