Warning PHP à la création d'un album
Bonjour, Soit un article. Je clique sur Ajouter un album. Je lui mets un titre. Je clique sur enregistrer. Et j'ai : ``` | Warning: foreach() argument must be of type array|object, string given in C:\laragon\_spipmu4_\plugins-dist\medias\action\ajouter_documents.php on line 52 | | | | | |------------------------------------------------------------------------------------------------------------------------------------------------------------|--------|---------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------| | Call Stack | | | | | | # | Time | Memory | Function | Location | | 1 | 0.0001 | 478256 | {main}( ) | ...\index.php:0 | | 2 | 0.0437 | 2139504 | traiter_formulaires_dynamiques( $get = ??? ) | ...\index.php:70 | | 3 | 0.0864 | 2293400 | formulaires_ajouter_album_traiter_dist( $objet = 'article', $id_objet = '405', $redirection = '', $lier_trad = '', $options = ['url_fermer' => './?exec=article&id_article=405#albums', 'ajaxreload' => [0 => 'albums_liste', 1 => 'navigation']] ) | ...\aiguiller.php:288 | | 4 | 0.1994 | 2482864 | formulaires_joindre_document_traiter_dist( $id_document = 'new', $id_objet = 3, $objet = 'album', $mode = 'document', $galerie = ???, $proposer_media = ???, $proposer_ftp = ??? ) | ...\ajouter_album.php:268 | | 5 | 0.2578 | 2488848 | action_ajouter_documents_dist( $id_document = 'new', $files = 'Indiquez un fichier !', $objet = 'album', $id_objet = 3, $mode = 'document' ) | | ``` ![image](/uploads/5dc96fa487bac7b41665fe917fe7ed81/image.png){width=894 height=773} Testé avec SPIP 4.3.2 + Album 4.2.1
issue

Forge communautaire SPIP | Charte d'utilisation | Signaler un problème sur ce site