Skip to content

Crayonnage de fichiers joints ?

Bonjour,

Lorsqu'on crayonne des fichiers joints dans le tableau, en essayant d'en ajouter, erreur fatale :

Fatal error: Uncaught TypeError: addslashes(): Argument #1 ($string) must be of type string, array given in  /XXX/ecrire/req/mysql.php:1661 Stack trace: 
#0  /XXX/ecrire/req/mysql.php(1661): addslashes(Array) 
#1  /XXX/ecrire/req/mysql.php(1381): spip_mysql_cite(Array, 'text NOT NULL') 
#2  /XXX/ecrire/base/abstract_sql.php(908): spip_mysql_updateq('spip_formulaire...', Array, 'id_formulaires_...', Array, '', true) 
#3  /XXX/ecrire/inc/modifier.php(227): sql_updateq('spip_formulaire...', Array, 'id_formulaires_...', '') 
#4  /XXX/plugins/auto/formidable/v5.6.0/formidable_pipelines.php(402): objet_modifier_champs('formulaires_rep...', 8214, Array, Array) 
#5  /XXX/plugins/auto/crayons/v2.3.3/action/crayons_store.php(328): formulaires_reponses_champ_revision(8214, Array, 'formulaires_rep...', Array) 
#6  /XXX/plugins/auto/crayons/v2.3.3/action/crayons_store.php(211): crayons_store_set_modifs(Array, Array) 
#7  /XXX/plugins/auto/crayons/v2.3.3/action/crayons_store.php(608): crayons_store() 
#8  /XXX/plugins/auto/crayons/v2.3.3/action/crayons_store.php(595): action_crayons_store_args() 
#9  /XXX/ecrire/public/aiguiller.php(77): action_crayons_store_dist() 
#10 /XXX/ecrire/index.php(72): traiter_appels_actions() 
#11 {main} thrown in  /XXX/ecrire/req/mysql.php on line 1661

(SPIP 4.0.11 PHP 8.0.30)

Merci !