Page Builder - Problem when add new addon Image - Forum | JoomShaper
Awaiting an answer SP Page Builder

Page Builder - Problem when add new addon Image

Asked by dgadvice 2 years ago Last activity 2 years ago

Hi, in my page i have a section with 2 addon Image.
When i enable the addon image, i have an error in the site.

Below is a video that helps you understand the problem
https://dgadvice.com/images/problem-with-images.webm

Enabling Debug System, i see:

Object of class stdClass could not be converted to string
Call stack

Function Location

1 () JROOT/templates/flex/sppagebuilder/addons/image/site.php:87
2 SppagebuilderAddonImage->render() JROOT/components/com_sppagebuilder/parser/addon-parser.php:977
3 AddonParser::getAddonHtmlView() JROOT/components/com_sppagebuilder/parser/addon-parser.php:456
4 AddonParser::viewAddons() JROOT/components/com_sppagebuilder/parser/addon-parser.php:438
5 AddonParser::viewAddons() JROOT/components/com_sppagebuilder/views/page/tmpl/default.php:90
6 include() JROOT/libraries/src/MVC/View/HtmlView.php:415
7 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:203
8 Joomla\CMS\MVC\View\HtmlView->display() JROOT/components/com_sppagebuilder/views/page/view.html.php:74
9 SppagebuilderViewPage->display() JROOT/libraries/src/MVC/Controller/BaseController.php:660
10 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/components/com_sppagebuilder/controller.php:81
11 SppagebuilderController->display() JROOT/libraries/src/MVC/Controller/BaseController.php:693
12 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/components/com_sppagebuilder/sppagebuilder.php:24
13 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
14 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73
15 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361
16 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:208
17 Joomla\CMS\Application\SiteApplication->dispatch() JROOT/libraries/src/Application/SiteApplication.php:249
18 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:293
19 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:61
20 require_once() JROOT/index.php:32

Thanks and regards

4 replies

Paul Frankowski Senior Staff
2 years ago · edited

Ciao,

please contact with Aplikko support, your error is casused by old template code override.

Here is evidence / Ecco una prova:
/templates/flex/sppagebuilder/addons/image/site.php


Update those two / Aggiornare questi due:

  • Flex template to v3.9.9 (Dec 2022) - this may help.
  • SP Page Builder to 5.2.5 (Jan 2024)
dgadvice Asked this

Hi, thank you for reply. Renaming file with other name the problem has been solved.

what happens if I don't use that template file? that I use the version of your component directly and not the override version of the template?

thanks and regards

Paul Frankowski Senior Staff
2 years ago · edited

If you would use template that do not use addons or SPPB Overrides component would use code directy from component folder (the most current one) and no more errors.


It's beyond support, but I can tell you that Flex template in addition to overwriting our addons, it has some of its own, made by them. The safest thing would be to compare ours and theirs to remove ours addon from the folder (templates/flex/sppagebuilder/addons/) and then it should be OK (for now)

That's all I can help 4 free.

dgadvice Asked this
2 years ago · edited

I've updated PageBuilder to last version, 5.2.5

I replaced the site.php and admin.php files taken from "components/com_sppagebuilder/addons/image" to "templates/flex/sppagebuilder/addons/image" and it works fine.
How do I tell SP Page Builder to use its addons without considering template overrides? Is this an option that is enabled in the Jooma administrator panel?

Please help me so I can use your addons and not the Joomla template overrides, without manually replacing the files in the template folder.

thanks and regards

Log in to reply.