J'ai fait un squelette avec juste ça :
<BOUCLE_principale(ARTICLES){id_article}>
#TEXTE
</BOUCLE_principale>
Je logue le passage dans chacune des fonctions de ecrire/public/jointures.php, et j'obtiens ça :
Apr 08 17:02:58 127.0.0.1 (pid 29246) COMPIL (0.017s) [design/article-test] html_f9659758154fe9ac5de554e6c103d1da.php
Apr 08 17:02:58 127.0.0.1 (pid 29246) ### fabrique_jointures html_cab0590af31b841c1e4beb62bbb371da
Apr 08 17:02:58 127.0.0.1 (pid 29246) ### liste_champs_jointures
Apr 08 17:02:58 127.0.0.1 (pid 29246) COMPIL (0.026s) [dist/modeles/img] html_cab0590af31b841c1e4beb62bbb371da.php
Apr 08 17:02:58 127.0.0.1 (pid 29246) Erreur mysql 1054
Apr 08 17:02:58 127.0.0.1 (pid 29246) Unknown column ‘documents.id_type’ in ‘on clause’ -
SELECT documents.id_document, documents.mode, documents.largeur, documents.hauteur, documents.titre, L1.mime_type, L1.titre AS type_document
FROM `www_gasteroprod_com`.spip_documents AS `documents` INNER JOIN `www_gasteroprod_com`.spip_types_documents AS L1 ON ( L1.id_type = documents.id_type )
WHERE (documents.taille > 0 OR documents.distant=‘oui’)
AND (documents.id_document = 464)
Apr 08 17:02:58 127.0.0.1 (pid 29246) Erreur mysql 1054
Apr 08 17:02:58 127.0.0.1 (pid 29246) Unknown column ‘documents.id_type’ in ‘on clause’ -
SELECT documents.id_document, documents.mode, documents.largeur, documents.hauteur, documents.titre, L1.mime_type, L1.titre AS type_document
FROM spip_documents AS `documents` INNER JOIN spip_types_documents AS L1 ON ( L1.id_type = documents.id_type )
WHERE (documents.taille > 0 OR documents.distant=‘oui’)
AND (documents.id_document = 464)
Apr 08 17:02:58 127.0.0.1 (pid 29246) Erreur requete _document (article-test.html)
Apr 08 17:02:58 127.0.0.1 (pid 29246) Erreur SQL: <tt><blink><BOUCLE_document>()</blink><br />
<b>Erreur SQL</b><br />
documents.id_document, documents.mode, documents.largeur, documents.hauteur, documents.titre, L1.mime_type, L1.titre AS type_document
FROM spip_documents AS `documents` INNER JOIN spip_types_documents AS L1 ON ( L1.id_type = documents.id_type )
WHERE (documents.taille > 0 OR documents.distant=‘oui’)
AND (documents.id_document = 464)
<br /><span style=‘color: red’><b>Unknown column ‘documents.id_type’ in ‘on clause’</b></span><br /><blink></BOUCLE_document></blink>
</tt>
<a class=‘aide’
href=‘http://www.gasteroprod.local/ecrire/?exec=aide_index&aide=erreur_mysql&var_lang=fr’
onclick=“javascript:window.open(this.href,‘spip_aide’, ‘scrollbars=yes, resizable=yes, width=740, height=580’); return false;”><img src=‘dist/images/aide.gif’
alt=“AIDE” title=“De l’aide sur cet élément” class=‘aide’ /></a> | (article-test)
Apr 08 17:02:58 127.0.0.1 (pid 29246) calcul (0.115s) [dist/modeles/img] lang=‘fr’, id_document=‘464’, id=‘464’, args=‘Array’, align=‘center’, date=‘2008-04-08 17:02:58’, date_redac=‘2008-04-08 17:02:58’ (1 octets)
Apr 08 17:02:58 127.0.0.1 (pid 29246) Erreur mysql 1054
Apr 08 17:02:58 127.0.0.1 (pid 29246) Unknown column ‘documents.id_type’ in ‘on clause’ -
SELECT documents.id_document, documents.mode, documents.largeur, documents.hauteur, documents.titre, L1.mime_type, L1.titre AS type_document
FROM `www_gasteroprod_com`.spip_documents AS `documents` INNER JOIN `www_gasteroprod_com`.spip_types_documents AS L1 ON ( L1.id_type = documents.id_type )
WHERE (documents.taille > 0 OR documents.distant=‘oui’)
AND (documents.id_document = 466)
Apr 08 17:02:58 127.0.0.1 (pid 29246) Erreur mysql 1054
Apr 08 17:02:58 127.0.0.1 (pid 29246) Unknown column ‘documents.id_type’ in ‘on clause’ -
SELECT documents.id_document, documents.mode, documents.largeur, documents.hauteur, documents.titre, L1.mime_type, L1.titre AS type_document
FROM spip_documents AS `documents` INNER JOIN spip_types_documents AS L1 ON ( L1.id_type = documents.id_type )
WHERE (documents.taille > 0 OR documents.distant=‘oui’)
AND (documents.id_document = 466)
Apr 08 17:02:58 127.0.0.1 (pid 29246) Erreur requete _document (article-test.html)
Apr 08 17:02:58 127.0.0.1 (pid 29246) Erreur SQL: <tt><blink><BOUCLE_document>()</blink><br />
<b>Erreur SQL</b><br />
documents.id_document, documents.mode, documents.largeur, documents.hauteur, documents.titre, L1.mime_type, L1.titre AS type_document
FROM spip_documents AS `documents` INNER JOIN spip_types_documents AS L1 ON ( L1.id_type = documents.id_type )
WHERE (documents.taille > 0 OR documents.distant=‘oui’)
AND (documents.id_document = 466)
<br /><span style=‘color: red’><b>Unknown column ‘documents.id_type’ in ‘on clause’</b></span><br /><blink></BOUCLE_document></blink>
</tt>
<a class=‘aide’
href=‘http://www.gasteroprod.local/ecrire/?exec=aide_index&aide=erreur_mysql&var_lang=fr’
onclick=“javascript:window.open(this.href,‘spip_aide’, ‘scrollbars=yes, resizable=yes, width=740, height=580’); return false;”><img src=‘dist/images/aide.gif’
alt=“AIDE” title=“De l’aide sur cet élément” class=‘aide’ /></a> | (article-test)
Apr 08 17:02:58 127.0.0.1 (pid 29246) calcul (4.7ms) [dist/modeles/img] lang=‘fr’, id_document=‘466’, id=‘466’, args=‘Array’, align=‘center’, date=‘2008-04-08 17:02:58’, date_redac=‘2008-04-08 17:02:58’ (1 octets)
Apr 08 17:02:58 127.0.0.1 (pid 29246) notes ignorees par html_f9659758154fe9ac5de554e6c103d1da: <p>[<a href="#nh1" name=“nb1” class=“spip_note” title=“Notes 1” rev=“footnote”>1</a>] Leur nom technique, le fichier s’appelant par d?faut <code class=‘spip_code’ dir=‘ltr’>favicon.ico</code></p>
<p>[<a href="#nh2" name=“nb2” class=“spip_note” title=“Notes 2” rev=“footnote”>2</a>] A cr?er s’il n’existe pas d?j?</p>
Apr 08 17:02:58 127.0.0.1 (pid 29246) calcul (0.242s) [design/article-test] page=‘article-test’, id_article=‘635’, date_redac=‘2008-04-08 17:02:58’, date=‘2008-04-08 17:02:58’ (3517 octets)
Apr 08 17:02:58 127.0.0.1 (pid 29246) COMPIL (0.015s) [dist/formulaires/administration] html_a33bcb252cd18b6afdbec1d578e1edb1.php
Apr 08 17:02:58 127.0.0.1 (pid 29246) calcul (3.1ms) [dist/formulaires/administration] id_article=‘635’, voir_article=‘http://www.gasteroprod.local/ecrire/?exec=articles&id_article=635’, visites=‘46’, popularite=‘1’, statistiques=‘http://www.gasteroprod.local/ecrire/?exec=statistiques_visites&id_article=635’, action=‘spip.php?page=article-test&id_article=635’, divclass=‘spip-admin-float’, lang=‘fr’, calcul=‘recalcul’, date=‘2008-04-08 17:02:58’, date_redac=‘2008-04-08 17:02:58’ (558 octets)
-Nicolas