[SPIP 4.0 Git] Erreur dans base/connect_sql.php

Bonjour,

Avec SPIP 4.0 Git à jour, j’ai des erreurs PHP affichées :
Warning : sprintf(): Too few arguments in ecrire/base/connect_sql.php** on line 479

La ligne contient :
$query = sprintf($query, ...$textes);

Quand l’erreur se produit, $textes n’est pas un array (et est vide).

Et j’ai eu beau chercher, je n’ai pas réussi à trouver dans le site de php.net la documentation explicant ce que signifie « … » devant $textes

c’est le spread operator :
https://wiki.php.net/rfc/spread_operator_for_array

1 J'aime

En effet, cela est lié au refactoring sur la fonction. Toutefois, un $textes null ou vide qui n’est pas un tableau ne devrait jamais arriver car la variable contient normalement le résultat de query_echappe_textes()

Tu peux donner la trace d’appel, savoir d’où on vient (qui a appelé la fonction ?).
j’ai l’impression que ça vient de sqlite qui utilise la fonction, mais je ne vois pas de cas où ça pourrait se produire…

Voici une trace d’appel :
#0 query_reinjecte_textes(
WHERE articlesin.id_article = articles.id_article
AND mots_articles.titre=%6$s)) OR (articles.id_article IN (
SELECT articles.id_article
FROM spip33.spip_articles AS articlesin
INNER JOIN spip33.spip_rubriques AS rubriques
ON (articlesin.id_rubrique = rubriques.id_rubrique)
INNER JOIN spip33.spip_mots_liens AS mots_liens_rubriques
ON (rubriques.id_rubrique = mots_liens_rubriques.id_objet AND mots_liens_rubriques.objet=%7$s)
INNER JOIN spip33.spip_mots AS mots_articles ON
(mots_liens_rubriques.id_mot=mots_articles.id_mot)
WHERE articlesin.id_article = articles.id_article
AND mots_articles.titre=%6$s)))
GROUP BY articles.id_article
ORDER BY articles.date DESC
LIMIT 0,1, Array ()) called at [C:\laragon\www\spip33\ecrire\req\mysql.php:546]
#1 _mysql_traite_query((
SELECT articles.id_article
FROM spip_articles AS articlesin
INNER JOIN spip_mots_liens AS mots_liens_articles
ON (articlesin.id_article = mots_liens_articles.id_objet AND mots_liens_articles.objet=%5$s)
INNER JOIN spip_mots AS mots_articles
ON (mots_liens_articles.id_mot=mots_articles.id_mot), spip33, spip) called at [C:\laragon\www\spip33\ecrire\req\mysql.php:545]
#2 _mysql_traite_query(
SELECT articles.id_article, articles.descriptif, articles.date, articles.titre, articles.lang
FROM spip_articles AS articles
INNER JOIN spip_mots_liens AS L1 ON ( L1.id_objet = articles.id_article AND L1.objet=‹ article ›)
INNER JOIN spip_mots AS L2 ON ( L2.id_mot = L1.id_mot ), spip33, spip) called at [C:\laragon\www\spip33\ecrire\req\mysql.php:212]
#3 spip_mysql_query(
SELECT articles.id_article, articles.descriptif, articles.date, articles.titre, articles.lang
FROM spip_articles AS articles
INNER JOIN spip_mots_liens AS L1 ON ( L1.id_objet = articles.id_article AND L1.objet=‹ article ›)
INNER JOIN spip_mots AS L2 ON ( L2.id_mot = L1.id_mot )
WHERE (articles.statut = ‹ publie ›)
AND (L1.objet = ‹ article ›)
AND (L2.titre = ‹ ZoomSur ›)
AND (articles.lang = ‹ fr ›)
AND NOT ((articles.id_article IN (
SELECT articles.id_article
FROM spip_articles AS articlesin
INNER JOIN spip_mots_liens AS mots_liens_articles
ON (articlesin.id_article = mots_liens_articles.id_objet AND mots_liens_articles.objet=« article »)
INNER JOIN spip_mots AS mots_articles
ON (mots_liens_articles.id_mot=mots_articles.id_mot)
WHERE articlesin.id_article = articles.id_article
AND mots_articles.titre=« Archives »)) OR (articles.id_article IN (
SELECT articles.id_article
FROM spip_articles AS articlesin
INNER JOIN spip_rubriques AS rubriques
ON (articlesin.id_rubrique = rubriques.id_rubrique)
INNER JOIN spip_mots_liens AS mots_liens_rubriques
ON (rubriques.id_rubrique = mots_liens_rubriques.id_objet AND mots_liens_rubriques.objet=« rubrique »)
INNER JOIN spip_mots AS mots_articles ON
(mots_liens_rubriques.id_mot=mots_articles.id_mot)
WHERE articlesin.id_article = articles.id_article
AND mots_articles.titre=« Archives »)))
GROUP BY articles.id_article
ORDER BY articles.date DESC
LIMIT 0,1, , 1) called at [C:\laragon\www\spip33\ecrire\req\mysql.php:380]
#4 spip_mysql_select(Array ([0] => articles.id_article,[1] => articles.descriptif,[2] => articles.date,[3] => articles.titre,[4] => articles.lang), spip_articles AS articles
INNER JOIN spip_mots_liens AS L1 ON ( L1.id_objet = articles.id_article AND L1.objet=‹ article ›)
INNER JOIN spip_mots AS L2 ON ( L2.id_mot = L1.id_mot ), Array ([0] => Array ([0] => =,[1] => articles.statut,[2] => ‹ publie ›),[JOIN-L1] => Array ([0] => =,[1] => L1.objet,[2] => ‹ article ›),[2] => Array ([0] => =,[1] => L2.titre,[2] => ‹ ZoomSur ›),[3] => Array ([0] => =,[1] => articles.lang,[2] => ‹ fr ›),[4] => NOT ((articles.id_article IN (
SELECT articles.id_article
FROM spip_articles AS articlesin
INNER JOIN spip_mots_liens AS mots_liens_articles
ON (articlesin.id_article = mots_liens_articles.id_objet AND mots_liens_articles.objet=« article »)
INNER JOIN spip_mots AS mots_articles
ON (mots_liens_articles.id_mot=mots_articles.id_mot)
WHERE articlesin.id_article = articles.id_article
AND mots_articles.titre=« Archives »)) OR (articles.id_article IN (
SELECT articles.id_article
FROM spip_articles AS articlesin
INNER JOIN spip_rubriques AS rubriques
ON (articlesin.id_rubrique = rubriques.id_rubrique)
INNER JOIN spip_mots_liens AS mots_liens_rubriques
ON (rubriques.id_rubrique = mots_liens_rubriques.id_objet AND mots_liens_rubriques.objet=« rubrique »)
INNER JOIN spip_mots AS mots_articles ON
(mots_liens_rubriques.id_mot=mots_articles.id_mot)
WHERE articlesin.id_article = articles.id_article
AND mots_articles.titre=« Archives »)))), Array ([0] => articles.id_article), Array ([0] => articles.date DESC), 0,1, Array (), , 1) called at [C:\laragon\www\spip33\ecrire\base\abstract_sql.php:260]
#5 sql_select(Array ([0] => articles.id_article,[1] => articles.descriptif,[2] => articles.date,[3] => articles.titre,[4] => articles.lang), Array ([articles] => spip_articles,[articles@] =>
INNER JOIN spip_mots_liens AS L1 ON ( L1.id_objet = articles.id_article AND L1.objet=‹ article ›)
INNER JOIN spip_mots AS L2 ON ( L2.id_mot = L1.id_mot )), Array ([0] => Array ([0] => =,[1] => articles.statut,[2] => ‹ publie ›),[JOIN-L1] => Array ([0] => =,[1] => L1.objet,[2] => ‹ article ›),[2] => Array ([0] => =,[1] => L2.titre,[2] => ‹ ZoomSur ›),[3] => Array ([0] => =,[1] => articles.lang,[2] => ‹ fr ›),[4] => NOT ((articles.id_article IN (
SELECT articles.id_article
FROM spip_articles AS articlesin
INNER JOIN spip_mots_liens AS mots_liens_articles
ON (articlesin.id_article = mots_liens_articles.id_objet AND mots_liens_articles.objet=« article »)
INNER JOIN spip_mots AS mots_articles
ON (mots_liens_articles.id_mot=mots_articles.id_mot)
WHERE articlesin.id_article = articles.id_article
AND mots_articles.titre=« Archives »)) OR (articles.id_article IN (
SELECT articles.id_article
FROM spip_articles AS articlesin
INNER JOIN spip_rubriques AS rubriques
ON (articlesin.id_rubrique = rubriques.id_rubrique)
INNER JOIN spip_mots_liens AS mots_liens_rubriques
ON (rubriques.id_rubrique = mots_liens_rubriques.id_objet AND mots_liens_rubriques.objet=« rubrique »)
INNER JOIN spip_mots AS mots_articles ON
(mots_liens_rubriques.id_mot=mots_articles.id_mot)
WHERE articlesin.id_article = articles.id_article
AND mots_articles.titre=« Archives »)))), Array ([0] => articles.id_article), Array ([0] => articles.date DESC), 0,1, Array (), , Array ([0] => plugins/soyezcreateurs/noisettes/sommaire_modeportailcognac_zoomsur.html,[1] => html_7b91588f8b83063773617e1431985ae2,[2] => _ZoomSur,[3] => 1,[4] => fr)) called at [C:\laragon\www\spip33\ecrire\public\composer.php:962]
#6 calculer_select(Array ([0] => articles.id_article,[1] => articles.descriptif,[2] => articles.date,[3] => articles.titre,[4] => articles.lang), Array ([articles] => spip_articles,[articles@] =>
INNER JOIN spip_mots_liens AS L1 ON ( L1.id_objet = articles.id_article AND L1.objet=‹ article ›)
INNER JOIN spip_mots AS L2 ON ( L2.id_mot = L1.id_mot )), Array (), Array ([0] => Array ([0] => =,[1] => articles.statut,[2] => ‹ publie ›),[JOIN-L1] => Array ([0] => =,[1] => L1.objet,[2] => ‹ article ›),[2] => Array ([0] => =,[1] => L2.titre,[2] => ‹ ZoomSur ›),[3] => Array ([0] => =,[1] => articles.lang,[2] => ‹ fr ›),[4] => NOT ((articles.id_article IN (
SELECT articles.id_article
FROM spip_articles AS articlesin
INNER JOIN spip_mots_liens AS mots_liens_articles
ON (articlesin.id_article = mots_liens_articles.id_objet AND mots_liens_articles.objet=« article »)
INNER JOIN spip_mots AS mots_articles
ON (mots_liens_articles.id_mot=mots_articles.id_mot)
WHERE articlesin.id_article = articles.id_article
AND mots_articles.titre=« Archives »)) OR (articles.id_article IN (
SELECT articles.id_article
FROM spip_articles AS articlesin
INNER JOIN spip_rubriques AS rubriques
ON (articlesin.id_rubrique = rubriques.id_rubrique)
INNER JOIN spip_mots_liens AS mots_liens_rubriques
ON (rubriques.id_rubrique = mots_liens_rubriques.id_objet AND mots_liens_rubriques.objet=« rubrique »)
INNER JOIN spip_mots AS mots_articles ON
(mots_liens_rubriques.id_mot=mots_articles.id_mot)
WHERE articlesin.id_article = articles.id_article
AND mots_articles.titre=« Archives »)))), Array ([L1] => Array ([0] => articles,[1] => id_objet,[2] => id_article,[3] => L1.objet=‹ article ›),[L2] => Array ([0] => L1,[1] => id_mot,[2] => id_mot,[3] => )), Array ([0] => articles.id_article), Array ([0] => articles.date DESC), 0,1, Array (), articles, _ZoomSur, , Array ([0] => plugins/soyezcreateurs/noisettes/sommaire_modeportailcognac_zoomsur.html,[1] => html_7b91588f8b83063773617e1431985ae2,[2] => _ZoomSur,[3] => 1,[4] => fr)) called at [C:\laragon\www\spip33\ecrire\iterateur\sql.php:82]
#7 IterateurSQL->select() called at [C:\laragon\www\spip33\ecrire\iterateur\sql.php:100]
#8 IterateurSQL->__construct(Array ([connect] => ,[table] => articles,[id] => _ZoomSur,[from] => Array ([articles] => spip_articles,[L1] => spip_mots_liens,[L2] => spip_mots),[type] => Array (),[groupby] => Array ([0] => articles.id_article),[select] => Array ([0] => articles.id_article,[1] => articles.descriptif,[2] => articles.date,[3] => articles.titre,[4] => articles.lang),[orderby] => Array ([0] => articles.date DESC),[join] => Array ([L1] => Array ([0] => articles,[1] => id_objet,[2] => id_article,[3] => L1.objet=‹ article ›),[L2] => Array ([0] => L1,[1] => id_mot)),[limit] => 0,1,[having] => Array (),[where] => Array ([0] => Array ([0] => =,[1] => articles.statut,[2] => ‹ publie ›),[1] => 1=1,[JOIN-L1] => Array ([0] => =,[1] => L1.objet,[2] => ‹ article ›),[2] => Array ([0] => =,[1] => L2.titre,[2] => ‹ ZoomSur ›),[3] => Array ([0] => =,[1] => articles.lang,[2] => ‹ fr ›),[4] => NOT ((articles.id_article IN (
SELECT articles.id_article
FROM spip_articles AS articlesin
INNER JOIN spip_mots_liens AS mots_liens_articles
ON (articlesin.id_article = mots_liens_articles.id_objet AND mots_liens_articles.objet=« article »)
INNER JOIN spip_mots AS mots_articles
ON (mots_liens_articles.id_mot=mots_articles.id_mot)
WHERE articlesin.id_article = articles.id_article
AND mots_articles.titre=« Archives »)) OR (articles.id_article IN (
SELECT articles.id_article
FROM spip_articles AS articlesin
INNER JOIN spip_rubriques AS rubriques
ON (articlesin.id_rubrique = rubriques.id_rubrique)
INNER JOIN spip_mots_liens AS mots_liens_rubriques
ON (rubriques.id_rubrique = mots_liens_rubriques.id_objet AND mots_liens_rubriques.objet=« rubrique »)
INNER JOIN spip_mots AS mots_articles ON
(mots_liens_rubriques.id_mot=mots_articles.id_mot)
WHERE articlesin.id_article = articles.id_article
AND mots_articles.titre=« Archives »))))), Array ([0] => plugins/soyezcreateurs/noisettes/sommaire_modeportailcognac_zoomsur.html,[1] => html_7b91588f8b83063773617e1431985ae2,[2] => _ZoomSur,[3] => 1,[4] => fr)) called at [C:\laragon\www\spip33\ecrire\public\iterateur.php:92]
#9 IterFactory::create(SQL, Array ([connect] => ,[table] => articles,[id] => _ZoomSur,[from] => Array ([articles] => spip_articles,[L1] => spip_mots_liens,[L2] => spip_mots),[type] => Array (),[groupby] => Array ([0] => articles.id_article),[select] => Array ([0] => articles.id_article,[1] => articles.descriptif,[2] => articles.date,[3] => articles.titre,[4] => articles.lang),[orderby] => Array ([0] => articles.date DESC),[join] => Array ([L1] => Array ([0] => articles,[1] => id_objet,[2] => id_article,[3] => L1.objet=‹ article ›),[L2] => Array ([0] => L1,[1] => id_mot)),[limit] => 0,1,[having] => Array (),[where] => Array ([0] => Array ([0] => =,[1] => articles.statut,[2] => ‹ publie ›),[1] => 1=1,[JOIN-L1] => Array ([0] => =,[1] => L1.objet,[2] => ‹ article ›),[2] => Array ([0] => =,[1] => L2.titre,[2] => ‹ ZoomSur ›),[3] => Array ([0] => =,[1] => articles.lang,[2] => ‹ fr ›),[4] => NOT ((articles.id_article IN (
SELECT articles.id_article
FROM spip_articles AS articlesin
INNER JOIN spip_mots_liens AS mots_liens_articles
ON (articlesin.id_article = mots_liens_articles.id_objet AND mots_liens_articles.objet=« article »)
INNER JOIN spip_mots AS mots_articles
ON (mots_liens_articles.id_mot=mots_articles.id_mot)
WHERE articlesin.id_article = articles.id_article
AND mots_articles.titre=« Archives »)) OR (articles.id_article IN (
SELECT articles.id_article
FROM spip_articles AS articlesin
INNER JOIN spip_rubriques AS rubriques
ON (articlesin.id_rubrique = rubriques.id_rubrique)
INNER JOIN spip_mots_liens AS mots_liens_rubriques
ON (rubriques.id_rubrique = mots_liens_rubriques.id_objet AND mots_liens_rubriques.objet=« rubrique »)
INNER JOIN spip_mots AS mots_articles ON
(mots_liens_rubriques.id_mot=mots_articles.id_mot)
WHERE articlesin.id_article = articles.id_article
AND mots_articles.titre=« Archives »))))), Array ([0] => plugins/soyezcreateurs/noisettes/sommaire_modeportailcognac_zoomsur.html,[1] => html_7b91588f8b83063773617e1431985ae2,[2] => _ZoomSur,[3] => 1,[4] => fr)) called at [C:\laragon\www\spip33\tmp\cache\skel\html_7b91588f8b83063773617e1431985ae2.php:227]
#10 BOUCLE_ZoomSurhtml_7b91588f8b83063773617e1431985ae2(Array ([cache] => 8c1690cab4d31f109b5726c77b496475.cache), Array ([0] => Array ([date] => 2021-09-27 15:03:43,[date_default] => 1,[date_redac] => 2021-09-27 15:03:43,[date_redac_default] => 1,[lang] => fr,[id_conteneur] => contenu/corps_sommaire_modecognac,[id_noisette] => 1,[rang_noisette] => 1,[profondeur_noisette] => 0)), Array (), Array (), 0) called at [C:\laragon\www\spip33\tmp\cache\skel\html_7b91588f8b83063773617e1431985ae2.php:339]
#11 html_7b91588f8b83063773617e1431985ae2(Array ([cache] => 8c1690cab4d31f109b5726c77b496475.cache), Array ([0] => Array ([date] => 2021-09-27 15:03:43,[date_default] => 1,[date_redac] => 2021-09-27 15:03:43,[date_redac_default] => 1,[lang] => fr,[id_conteneur] => contenu/corps_sommaire_modecognac,[id_noisette] => 1,[rang_noisette] => 1,[profondeur_noisette] => 0))) called at [C:\laragon\www\spip33\ecrire\public\parametrer.php:113]
#12 public_parametrer_dist(noisettes/sommaire_modeportailcognac_zoomsur, Array ([date] => 2021-09-27 15:03:43,[date_default] => 1,[date_redac] => 2021-09-27 15:03:43,[date_redac_default] => 1,[lang] => fr,[id_conteneur] => contenu/corps_sommaire_modecognac,[id_noisette] => 1,[rang_noisette] => 1,[profondeur_noisette] => 0), 8c1690cab4d31f109b5726c77b496475.cache, ) called at [C:\laragon\www\spip33\ecrire\public\assembler.php:340]
#13 public_produire_page_dist(noisettes/sommaire_modeportailcognac_zoomsur, Array ([date] => 2021-09-27 15:03:43,[date_default] => 1,[date_redac] => 2021-09-27 15:03:43,[date_redac_default] => 1,[lang] => fr,[id_conteneur] => contenu/corps_sommaire_modecognac,[id_noisette] => 1,[rang_noisette] => 1,[profondeur_noisette] => 0), 1, 8c1690cab4d31f109b5726c77b496475.cache, Array ([date] => 2021-09-27 15:03:43,[date_default] => 1,[date_redac] => 2021-09-27 15:03:43,[date_redac_default] => 1,[lang] => fr,[id_conteneur] => contenu/corps_sommaire_modecognac,[id_noisette] => 1,[rang_noisette] => 1,[profondeur_noisette] => 0), Array ([contexte_implicite] => Array ([squelettes] => ,[host] => spip33.localhost,[https] => ,[espace] => ,[marqueur] => :sc0c018264bc25a3d615b2863d4760d555,[marqueur_skel] => :crayons,[notes] => ,[spip_version_code] => 20210708,[cache] => noisettes/sommaire_modeportailcognac_zoomsur)), 0, ) called at [C:\laragon\www\spip33\ecrire\public\assembler.php:304]
#14 inclure_page(noisettes/sommaire_modeportailcognac_zoomsur, Array ([date] => 2021-09-27 15:03:43,[date_default] => 1,[date_redac] => 2021-09-27 15:03:43,[date_redac_default] => 1,[lang] => fr,[id_conteneur] => contenu/corps_sommaire_modecognac,[id_noisette] => 1,[rang_noisette] => 1,[profondeur_noisette] => 0), ) called at [C:\laragon\www\spip33\ecrire\public\assembler.php:715]
#15 evaluer_fond(noisettes/sommaire_modeportailcognac_zoomsur, Array ([date] => 2021-09-27 15:03:43,[date_default] => 1,[date_redac] => 2021-09-27 15:03:43,[date_redac_default] => 1,[lang] => fr,[id_conteneur] => contenu/corps_sommaire_modecognac,[id_noisette] => 1,[rang_noisette] => 1,[profondeur_noisette] => 0), ) called at [C:\laragon\www\spip33\ecrire\inc\utils.php:3328]
#16 recuperer_fond(noisettes/sommaire_modeportailcognac_zoomsur, Array ([date] => 2021-09-27 15:03:43,[date_default] => 1,[date_redac] => 2021-09-27 15:03:43,[date_redac_default] => 1,[lang] => fr,[id_conteneur] => contenu/corps_sommaire_modecognac,[id_noisette] => 1,[rang_noisette] => 1,[profondeur_noisette] => 0), Array ([ajax] => ,[trim] => 1)) called at [C:\laragon\www\spip33\ecrire\public\evaluer_page.php(51) : eval()'d code:20]
#17 eval() called at [C:\laragon\www\spip33\ecrire\public\evaluer_page.php:51]
#18 include(C:\laragon\www\spip33\ecrire\public\evaluer_page.php) called at [C:\laragon\www\spip33\ecrire\public\assembler.php:721]
#19 evaluer_fond(bloc_compiler, Array ([date] => 2021-09-27 15:03:43,[date_default] => 1,[date_redac] => 2021-09-27 15:03:43,[date_redac_default] => 1,[lang] => fr,[id_conteneur] => contenu/corps_sommaire_modecognac), ) called at [C:\laragon\www\spip33\ecrire\inc\utils.php:3328]
#20 recuperer_fond(bloc_compiler, Array ([date] => 2021-09-27 15:03:43,[date_default] => 1,[date_redac] => 2021-09-27 15:03:43,[date_redac_default] => 1,[lang] => fr,[id_conteneur] => contenu/corps_sommaire_modecognac), Array ([compil] => Array ([0] => plugins/soyezcreateurs/noisettes/sommaire/sommaire_modeportailcognac.html,[1] => html_28b0199fb774ef2c49995b1459ecff6f,[2] => ,[3] => 9,[4] => fr),[trim] => 1), ) called at [C:\laragon\www\spip33\tmp\cache\skel\html_28b0199fb774ef2c49995b1459ecff6f.php:32]
#21 html_28b0199fb774ef2c49995b1459ecff6f(Array ([cache] => f3030f602f324cb8c6e86bd90233b1c2.cache), Array ([0] => Array ([date] => 2021-09-27 15:03:43,[date_default] => 1,[date_redac] => 2021-09-27 15:03:43,[date_redac_default] => 1,[lang] => fr),[vars] => Array ([LargeurContaineur] => 1160))) called at [C:\laragon\www\spip33\ecrire\public\parametrer.php:113]
#22 public_parametrer_dist(noisettes/sommaire/sommaire_modeportailcognac, Array ([date] => 2021-09-27 15:03:43,[date_default] => 1,[date_redac] => 2021-09-27 15:03:43,[date_redac_default] => 1,[lang] => fr), f3030f602f324cb8c6e86bd90233b1c2.cache, ) called at [C:\laragon\www\spip33\ecrire\public\assembler.php:340]
#23 public_produire_page_dist(noisettes/sommaire/sommaire_modeportailcognac, Array ([date] => 2021-09-27 15:03:43,[date_default] => 1,[date_redac] => 2021-09-27 15:03:43,[date_redac_default] => 1,[lang] => fr), 1, f3030f602f324cb8c6e86bd90233b1c2.cache, Array ([date] => 2021-09-27 15:03:43,[date_default] => 1,[date_redac] => 2021-09-27 15:03:43,[date_redac_default] => 1,[lang] => fr), Array ([contexte_implicite] => Array ([squelettes] => ,[host] => spip33.localhost,[https] => ,[espace] => ,[marqueur] => :sc0c018264bc25a3d615b2863d4760d555,[marqueur_skel] => :crayons,[notes] => ,[spip_version_code] => 20210708,[cache] => noisettes/sommaire/sommaire_modeportailcognac)), 0, ) called at [C:\laragon\www\spip33\ecrire\public\assembler.php:304]
#24 inclure_page(noisettes/sommaire/sommaire_modeportailcognac, Array ([date] => 2021-09-27 15:03:43,[date_default] => 1,[date_redac] => 2021-09-27 15:03:43,[date_redac_default] => 1,[lang] => fr), ) called at [C:\laragon\www\spip33\ecrire\public\assembler.php:715]
#25 evaluer_fond(noisettes/sommaire/sommaire_modeportailcognac, Array ([date] => 2021-09-27 15:03:43,[date_default] => 1,[date_redac] => 2021-09-27 15:03:43,[date_redac_default] => 1,[lang] => fr), ) called at [C:\laragon\www\spip33\ecrire\inc\utils.php:3328]
#26 recuperer_fond(noisettes/sommaire/sommaire_modeportailcognac, Array ([date] => 2021-09-27 15:03:43,[date_default] => 1,[date_redac] => 2021-09-27 15:03:43,[date_redac_default] => 1,[lang] => fr), Array ([compil] => Array ([0] => plugins/soyezcreateurs/sommaire.html,[1] => html_4660b2e70eee390d5893ad6a1a3ac4f4,[2] => ,[3] => 3,[4] => fr),[trim] => 1), ) called at [C:\laragon\www\spip33\ecrire\public\evaluer_page.php(51) : eval()'d code:13]
#27 eval() called at [C:\laragon\www\spip33\ecrire\public\evaluer_page.php:51]
#28 include(C:\laragon\www\spip33\ecrire\public\evaluer_page.php) called at [C:\laragon\www\spip33\ecrire\public.php:157]
#29 include(C:\laragon\www\spip33\ecrire\public.php) called at [C:\laragon\www\spip33\spip.php:20]
#30 include(C:\laragon\www\spip33\spip.php) called at [C:\laragon\www\spip33\index.php:3]


Warning: sprintf(): Too few arguments in C:\laragon\www\spip33\ecrire\base\connect_sql.php on line 479

Et c’est avec MySQL (MariaDB)

Bon, c’est le critère {!archive} dans ma boucle :
<BOUCLE_ZoomSur(ARTICLES) {titre_mot=ZoomSur}{!par date}{0,1}{lang}{!archive}>

Le critère est défini ici : https://git.spip.net/spip-contrib-squelettes/soyezcreateurs/src/branch/master/soyezcreateurs_fonctions.php#L770

ok j’ai compris le bug, je vais voir comment fixer proprement

1 J'aime

C’est corrigé par https://git.spip.net/spip/spip/commit/2b81486f84d0814c93e4feed6e8afecf411dfffd en principe

1 J'aime

Je confirme que ça résout le bug que j’avais tout à l’heure.

Merci cerdic