You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

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

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by cybersalt on Saturday, 03 February 2024 08:25 GMT

cybersalt
We just saved a user profile in JCE and are now getting this error for it:
htmlspecialchars(): Argument #1 ($string) must be of type string, array given

As a test, we opened another profile (one we don't use), changed nothing and clicked save. We then got the same error

This was first seen on JCE 2.9.56 on a J4.4.1 site running on PHP 8.1.26

I did see JCE 2.9.57 was out today and installed it and the error is still occurring.

Here is the call stack on the error:

Call stack
# Function Location
1 () JROOT/administrator/components/com_jce/models/fields/container.php:165
2 htmlspecialchars() JROOT/administrator/components/com_jce/models/fields/container.php:165
3 JFormFieldContainer->{closure}()
4 array_walk() JROOT/administrator/components/com_jce/models/fields/container.php:166
5 JFormFieldContainer->getInput() JROOT/libraries/src/Form/FormField.php:471
6 Joomla\CMS\Form\FormField->__get() JROOT/administrator/components/com_jce/layouts/joomla/content/options_default.php:38
7 include() JROOT/libraries/src/Layout/FileLayout.php:128
8 Joomla\CMS\Layout\FileLayout->render() JROOT/libraries/src/Layout/LayoutHelper.php:76
9 Joomla\CMS\Layout\LayoutHelper::render() JROOT/administrator/components/com_jce/views/profile/tmpl/edit_plugins.php:85
10 include() JROOT/libraries/src/MVC/View/HtmlView.php:415
11 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/administrator/components/com_jce/views/profile/tmpl/edit.php:50
12 include() JROOT/libraries/src/MVC/View/HtmlView.php:415
13 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:203
14 Joomla\CMS\MVC\View\HtmlView->display() JROOT/administrator/components/com_jce/views/profile/view.html.php:64
15 JceViewProfile->display() JROOT/administrator/components/com_jce/controller.php:135
16 JceController->display() JROOT/libraries/src/MVC/Controller/BaseController.php:693
17 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/administrator/components/com_jce/jce.php:42
18 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
19 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73
20 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361
21 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:143
22 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186
23 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:293
24 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:61
25 require_once() JROOT/administrator/index.php:32

Ryan
Please send me a login - https://www.joomlacontenteditor.net/contact/site-login

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Ryan
Your staging site is not loading any of the JCE Pro Admin assets (css, javascript etc.) giving a 403 error for each with the message:

"This page link is no longer valid. Please use our updated website."

This may be related to the profile errors, so you will need to resolve this before we can figure out the original issue.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Ryan
I have installed JCE Pro 2.9.58 Beta on your site which fixes the error directly, but not the root cause of the issue, which may be related to the missing asset files.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

cybersalt
Sorry for the slow reply. Thanks for the fix and we are looking into why those files are getting 403'd.