You are not logged in.
Good morning. Please tell me I have Additional fields for Tickets. These are the types:
After entering the data for the first time and clicking the "save" button, I get a redirect to a web page with an error.
error text:
Uncaught Exception TypeError: stripslashes(): Argument #1 ($string) must be of type string, array given in /glpi_data/www/html/glpi/src/Log.php at line 251
All entered data is saved. Please tell me what I can try to do to fix this?
Last edited by sIBajHYG (2024-02-20 18:08:11)
Linux ubuntu-22.04.2-live-server-amd64, PHP 8.1.2, Apache 2.4.52, MariaDB 10.6.12, GLPI 10.0.15.
GLPI Inventory 1.3.5, PHP SAML 1.3.0, Oauth IMAP 1.4.3, Additional Fields, 1.21.8,Ticket Cleaner.
Offline
Please check files/_log/php-errors.log for the full stack trace for the error (shows the the path the code took before it got to the line with the error).
GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.
Offline
This?
[2024-02-19 11:54:56] glpiphplog.CRITICAL: *** Uncaught Exception TypeError: stripslashes(): Argument #1 ($string) must be of type string, array given in /glpi_data/www/html/glpi/src/Log.php at line 251
Backtrace :
src/Log.php:251 stripslashes()
plugins/fields/inc/container.class.php:1318 Log::history()
plugins/fields/inc/container.class.php:1197 PluginFieldsContainer::constructHistory()
plugins/fields/front/container.form.php:58 PluginFieldsContainer->updateFieldsValues()
Linux ubuntu-22.04.2-live-server-amd64, PHP 8.1.2, Apache 2.4.52, MariaDB 10.6.12, GLPI 10.0.15.
GLPI Inventory 1.3.5, PHP SAML 1.3.0, Oauth IMAP 1.4.3, Additional Fields, 1.21.8,Ticket Cleaner.
Offline
Updated the "Additional Fields" plugin from 1.21.6 to 1.21.8, but this did not solve the problem
Linux ubuntu-22.04.2-live-server-amd64, PHP 8.1.2, Apache 2.4.52, MariaDB 10.6.12, GLPI 10.0.15.
GLPI Inventory 1.3.5, PHP SAML 1.3.0, Oauth IMAP 1.4.3, Additional Fields, 1.21.8,Ticket Cleaner.
Offline
Experimentally we managed to find out that this bug occurs due to additional fields like “Rich text”. Filling these with text/code by default has no effect. The bug still appears. Only if you disable these 2 fields, the bug disappears. But I need fields like this...
Please tell me what else I can try to do.
Linux ubuntu-22.04.2-live-server-amd64, PHP 8.1.2, Apache 2.4.52, MariaDB 10.6.12, GLPI 10.0.15.
GLPI Inventory 1.3.5, PHP SAML 1.3.0, Oauth IMAP 1.4.3, Additional Fields, 1.21.8,Ticket Cleaner.
Offline