Error 0: Object of class stdClass could not be converted to string - Forum | JoomShaper
Solved SP Page Builder

Error 0: Object of class stdClass could not be converted to string

Asked by Andreas 3 years ago Last activity 3 years ago

SPPB v5.06 (updated from 5.0.3)
xampp 8.1
J4.3.3
template BLAK

Hi, after a change of an image on Homepage we get this error message.
Thank you for your assistance.
Kr
Andy

Accepted answer

Marked as the solution
Paul Frankowski Senior Staff
3 years ago · edited

Have you deleted that folder (as I asked 2x) - I doubt seeing that :(

\templates\blak\sppagebuilder\addons\person.org\site.php

DELETE that folder and all files inside.

and yes, SPPB 5.0.6 must be used.

5 more replies

Paul Frankowski Senior Staff

Hi Andreas,

Start with those settings to see more details about source of error
error_reporting_debug.jpg

What is "template BLAK" ??? It doesn't sound of ours.

Andreas Asked this

Template BLAK:
https://themeforest.net/item/blak-responsive-multipurpose-joomla-template-with-page-builder/23787647

Many thanks in advance
Kr
Andreas

Call stack

Function Location

1 () JROOT\templates\blak\sppagebuilder\addons\person\site.php:75
2 SppagebuilderAddonPerson->render() JROOT\components\com_sppagebuilder\parser\addon-parser.php:802
3 AddonParser::getAddonHtmlView() JROOT\components\com_sppagebuilder\parser\addon-parser.php:434
4 AddonParser::viewAddons() JROOT\components\com_sppagebuilder\parser\addon-parser.php:422
5 AddonParser::viewAddons() JROOT\components\com_sppagebuilder\views\page\tmpl\default.php:90
6 include() JROOT\libraries\src\MVC\View\HtmlView.php:410
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:63
9 SppagebuilderViewPage->display() JROOT\libraries\src\MVC\Controller\BaseController.php:645
10 Joomla\CMS\MVC\Controller\BaseController->display() JROOT\components\com_sppagebuilder\controller.php:81
11 SppagebuilderController->display() JROOT\libraries\src\MVC\Controller\BaseController.php:678
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

Paul Frankowski Senior Staff
3 years ago · edited

It looks that your template override addon (at least one) and it cause errors.

To fix it DELETE "person" folder

templates\blak\sppagebuilder\addons\person

(Remove that folder, do not rename it!)


In general you should get support from template developer to fix those overrides.
It's not our bug this time. Easy to confirm & check - just switch template to Cassiopeia.

Andreas Asked this

new result as shown below
by the way. We'd like to use this addon as it was with PB 5.0.3 :-)

Compile Error: Cannot declare class SppagebuilderAddonPerson, because the name is already in use

Symfony\Component\ErrorHandler\Error\ FatalError
in D:\xampp81\htdocs\ix4\templates\blak\sppagebuilder\addons\person.org\site.php (line 11)

 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
*/
//no direct accees
defined ('_JEXEC') or die ('Restricted access');
class SppagebuilderAddonPerson extends SppagebuilderAddons{
    public function render() {
        $settings = $this->addon->settings;
        $class = (isset($settings->class) && $settings->class) ? $settings->class : ''; 
Andreas Asked this

Dear Paul
thank you for your assistance.
Problem solved.

Kr
Andreas

Log in to reply.