htmlspecialchars(): Argument #1 ($string) must be of type string, stdClass given - Forum | JoomShaper
Solved SP Page Builder

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

Asked by regioprint 3 years ago Last activity 3 years ago

Hello Team Joomshaper,
I am using Joomla 4.2.6 - HELIX 3.0.3 - SPPB 3.8.9 - PHP 8.1.14 - MySQL 5.7.41 - JCE 2.9.33
I switched from PHP 7.4 to PHP 8.1 and on some PageBuilder pages I have the following problem:
htmlspecialchars(): Argument #1 ($string) must be of type string, stdClass given
https://prnt.sc/9Yex4gEk2Kmo

the complete report you can see here:

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

Call stack

#   Function    Location
1   ()  JROOT/components/com_sppagebuilder/parser/addon-parser.php:743
2   htmlspecialchars()  JROOT/components/com_sppagebuilder/parser/addon-parser.php:743
3   AddonParser::generateShortcodeOps()     JROOT/components/com_sppagebuilder/parser/addon-parser.php:714
4   AddonParser::generateShortcode()    JROOT/components/com_sppagebuilder/parser/addon-parser.php:616
5   AddonParser::getAddonHtmlView()     JROOT/components/com_sppagebuilder/parser/addon-parser.php:366
6   AddonParser::viewAddons()   JROOT/components/com_sppagebuilder/views/page/tmpl/default.php:95
7   include()   JROOT/libraries/src/MVC/View/HtmlView.php:410
8   Joomla\CMS\MVC\View\HtmlView->loadTemplate()    JROOT/libraries/src/MVC/View/HtmlView.php:203
9   Joomla\CMS\MVC\View\HtmlView->display()     JROOT/components/com_sppagebuilder/views/page/view.html.php:48
10  SppagebuilderViewPage->display()    JROOT/libraries/src/Cache/Controller/ViewController.php:102
11  Joomla\CMS\Cache\Controller\ViewController->get()   JROOT/libraries/src/MVC/Controller/BaseController.php:634
12  Joomla\CMS\MVC\Controller\BaseController->display()     JROOT/components/com_sppagebuilder/controller.php:81
13  SppagebuilderController->display()  JROOT/libraries/src/MVC/Controller/BaseController.php:672
14  Joomla\CMS\MVC\Controller\BaseController->execute()     JROOT/components/com_sppagebuilder/sppagebuilder.php:24
15  require_once()  JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
16  Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}()  JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73
17  Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch()     JROOT/libraries/src/Component/ComponentHelper.php:355
18  Joomla\CMS\Component\ComponentHelper::renderComponent()     JROOT/libraries/src/Application/SiteApplication.php:200
19  Joomla\CMS\Application\SiteApplication->dispatch()  JROOT/libraries/src/Application/SiteApplication.php:241
20  Joomla\CMS\Application\SiteApplication->doExecute()     JROOT/libraries/src/Application/CMSApplication.php:294
21  Joomla\CMS\Application\CMSApplication->execute()    JROOT/includes/app.php:61
22  require_once()  JROOT/index.php:32 

What can I do?
Many greetings
regioprint

Translated with www.DeepL.com/Translator (free version)

Accepted answer

Marked as the solution
regioprint Asked this

Hello Team,

I have found a solution for me. I deleted the addon "call_to_action" from the page content and took the addon "button" for it. This worked. It seems that the addon was outdated.
Many greetings
regioprint

5 more replies

Rashida Rahman Staff
3 years ago · edited

Hi there!

Thanks for your query.

The Helix3 framework is not compatible with PHP 8.1 yet. Kindly, check with lower PHP version. We are working to bring higher PHP version soon, here is our plan:

https://www.joomshaper.com/blog/latest-php-compatibility-for-templates-and-extensions

You may check this too: https://www.joomshaper.com/documentation/sp-page-builder/sp-page-builder-3/faq-problems-solutions#warning-htmlspecialchars-parser-addon-parser-php

Best Regards

kostadin

Hello Team,
I have the same problem - when I switched from PHP 7.4 to PHP 8.0, PHP 8.1 or PHP 8.2 the site breaks. An error 404 is being ordered:
htmlspecialchars(): Argument #1 ($string) must be of type string, stdClass given

I use Kidzy with Helix3 Framewor

Will you help me?

Best Regards

Rashida Rahman Staff

Hi kostadin!

Thanks for contacting us and sorry for the inconvenience.

Have you checked the previously proposed solutions, already?

However, the Kidzy template is not compatible with PHP 8 yet, it will get the compatibility soon. You may try with PHP 7.4 for now. Here is our plan: https://www.joomshaper.com/blog/latest-php-compatibility-for-templates-and-extensions

And we are on the way of bringing the plan live. Here you will see some blogs about it:

https://www.joomshaper.com/blog/releases-updates

Best Regards

Saint Maur International School

I am having the same problem today since switching to PHP 8. I have the latest version of Helix3. Hasn't this issue been fixed yet?

mvm

I have the same problem. My client is getting nervous, because of the warning in red. I told him 'its a matter of time'. Please can this issue be fixed soon.

I don't have a 'call-to-action' on my page. The problem still has to be in PageBuilder. Because on other pages not build with PB, there is no problem with php 8.2

The error refers to:
com_sppagebuilder/parser/addon-parser.php

but you allready knew that :-)

Log in to reply.