erreur à l'enregistrement

erreur à l'enregistrement was created by worcq

Posted 1 year 1 month ago #67834
j'ai créé un type flexicontent appelé chronique-item. Quand j'enregistre un item je stylise les champs avec pagebuilderck.
Cela a fonctionné normalement et puis pour je ne sais pas suite à quelle manipulation, je n'ai plus réussi à enregistré ni modification d'items existants ou de nouveaux articles, via flexicontent ou via pagebuilderck.
Après recherche sur internet, j'ai modifié le PHP (revenu à une version 7.) et tout refonctionne. 
Je passe à nouveau en version 8.4 et le problème revient.
L'erreur affichée.
[color=var(--template-bg-dark)]Une erreur est survenue [/color]

0  preg_match_all(): Argument #2 ($subject) must be of type string, array given

 Tableau de bord

Est-ce une erreur connue? Que dois-je faire. Si je reviens à une version PHP 7.   j'ai une mise en garde sur la nécessité d'adapter la version dans les mois qui viennent.
Merci pour votre aide.
Worcq
by worcq

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic erreur à l'enregistrement

Posted 1 year 1 month ago #67864
Salut
je ne crois pas que PHP 8.4 soit déjà sorti ;)
Je te conseille de rester en PHP 8.0 ou 8.1, il faut laisser le temps aux développeurs de se mettre à jour
Va dans la config de ton site et active le débogage, dis moi si tu as un message plus complet
CEd

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by worcq on topic erreur à l'enregistrement

Posted 1 year 1 month ago #67888
php 8.1
merci pour ta réponse
message erreur
0 preg_match_all(): Argument #2 ($subject) must be of type string, array given
Call stack
# Function Location
1 () JROOT/libraries/src/Filter/InputFilter.php:152
2 preg_match_all() JROOT/libraries/src/Filter/InputFilter.php:152
3 Joomla\CMS\Filter\InputFilter->emailToPunycode() JROOT/libraries/src/Component/ComponentHelper.php:129
4 Joomla\CMS\Component\ComponentHelper::filterText() JROOT/libraries/src/Form/FormField.php:1071
5 Joomla\CMS\Form\FormField->filter() JROOT/libraries/src/Form/Form.php:1047
6 Joomla\CMS\Form\Form->filter() JROOT/libraries/src/Form/Form.php:991
7 Joomla\CMS\Form\Form->process() JROOT/libraries/src/MVC/Model/FormModel.php:213
8 Joomla\CMS\MVC\Model\FormModel->validate() JROOT/administrator/components/com_flexicontent/models/base/base.php:815
9 FCModelAdmin->validate() JROOT/administrator/components/com_flexicontent/controllers/items.php:563
10 FlexicontentControllerItems->save() JROOT/libraries/src/MVC/Controller/BaseController.php:672
11 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/administrator/components/com_flexicontent/admin.flexicontent.php:264
12 require_once() JROOT/administrator/components/com_flexicontent/flexicontent.php:22
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:355
16 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:143
17 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186
18 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:294
19 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:61
20 require_once() JROOT/administrator/index.php:32

Dis-moi ce que je dois faire.
Willy
by worcq

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic erreur à l'enregistrement

Posted 1 year 1 month ago #67889

Joomla\CMS\MVC\Model\FormModel->validate() JROOT/administrator/components/com_flexicontent/models/base/base.php:815

le souci vient apparemment de la routine dans Flexicontent, il faut contacter le développeur pour qu'il jette un oeil à cela
il ne semble pas que Page Builder CK soit en cause ici ...

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Time to create page: 0.832 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 989 guests and 2 members online