lcollong
FabriKant d'applications web
I use a yes/no element in a list used to store users's data together with the user plugin to have a register form and bypass the joomla's one.
This yes/no elt contains the "blocked" equivalent to the juser field.
It is acl protected to not appear in the form/detail view but only in the list view with icon replacement.
There is a default value ("0" in the default field and button set to "default to no").
I get error 500 "sometime".
I'have been able to reproduce the problem with a 4 columns test (id, date_time, field and yes/no).
If the yes/no element is set to default public on all acl, everything works.
If you set the yes/no element to "special" on all except list view, the element does not show in the form view but still in the list as expected. If you try to add a new row, you'll get :
The default value is wrong. Should be '0' instead of '' (or null).
Is this something already "under investigation" or should I try to find a fix ?
NB : I did the same test on a J3/F3/Php 7 site without any problems.
This yes/no elt contains the "blocked" equivalent to the juser field.
It is acl protected to not appear in the form/detail view but only in the list view with icon replacement.
There is a default value ("0" in the default field and button set to "default to no").
I get error 500 "sometime".
I'have been able to reproduce the problem with a 4 columns test (id, date_time, field and yes/no).
If the yes/no element is set to default public on all acl, everything works.
If you set the yes/no element to "special" on all except list view, the element does not show in the form view but still in the list as expected. If you try to add a new row, you'll get :
Code:
500
Store row failed: INSERT INTO `f_test` ( `date_time`,`nom`,`yesno` ) VALUES ( '2023-05-22 07:07:11','nom3','' ) Incorrect integer value: '' for column 'yesno' at row 1 ; Please inform your web-site owner
Une erreur est survenue pendant l'exécution de la requête.
Il est possible que vous ne puissiez visiter cette page en raison de :
[LIST]
[*]un lien/favori obsolète
[*]une adresse erronée
[*]un moteur de recherche possède un listing périmé pour ce site
[*]vous n'avez pas accès à cette page
[/LIST]
500 Store row failed: INSERT INTO `f_test` ( `date_time`,`nom`,`yesno` ) VALUES ( '2023-05-22 07:07:11','nom3','' ) Incorrect integer value: '' for column 'yesno' at row 1 ; Please inform your web-site owner
/home/bishlws/examulmtest/components/com_fabrik/models/list.php:7928
Aller à la page d'accueil Page d'accueil
Call stack
# Function Location
1 () JROOT/components/com_fabrik/models/list.php:7928
2 FabrikFEModelList->storeRow() JROOT/components/com_fabrik/models/form.php:1992
3 FabrikFEModelForm->submitToDatabase() JROOT/components/com_fabrik/models/form.php:1924
4 FabrikFEModelForm->processToDB() JROOT/components/com_fabrik/models/form.php:1294
5 FabrikFEModelForm->process() JROOT/components/com_fabrik/controllers/form.php:322
6 FabrikControllerForm->process() JROOT/libraries/src/MVC/Controller/BaseController.php:678
7 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/components/com_fabrik/fabrik.php:200
8 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
9 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73
10 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361
11 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:208
12 Joomla\CMS\Application\SiteApplication->dispatch() JROOT/libraries/src/Application/SiteApplication.php:249
13 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:293
14 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:61
15 require_once() JROOT/index.php:32
The default value is wrong. Should be '0' instead of '' (or null).
Is this something already "under investigation" or should I try to find a fix ?
NB : I did the same test on a J3/F3/Php 7 site without any problems.
Last edited: