Bonjour,
J'ai la boucle suivante :
<BOUCLE_articles_recentsAlaUne(ARTICLES) {!par date_modif}{0,(#CONFIG{soyezcreateurs/nombres_alanune,3})}{titre_mot=AlaUne}{doublons}>
Qui compile en :
SELECT articles.date_modif, articles.id_article, articles.lang, articles.descriptif, articles.date, articles.titre, articles.chapo, articles.texte, articles.id_rubrique
FROM spip_articles AS `articles` INNER JOIN spip_evenements AS L1 ON ( L1.id_article = articles.id_article ) INNER JOIN spip_mots AS L2 ON ( L2.maj = L1.maj ) INNER JOIN spip_mots AS L3 ON ( L3.id_mot = L2.id_mot )
WHERE (articles.statut = 'publie')
AND (articles.date <= NOW())
AND (L3.titre = 'AlaUne')
GROUP BY articles.id_article
ORDER BY articles.date_modif DESC
Le join sur spip_evenements (du plugin agenda) est anormal...
Et du coup, la boucle ne renvois rien 
* RealET tapuscrivait, le 17/06/2008 16:10:
Bonjour,
J'ai la boucle suivante :
<BOUCLE_articles_recentsAlaUne(ARTICLES) {!par date_modif}{0,(#CONFIG{soyezcreateurs/nombres_alanune,3})}{titre_mot=AlaUne}{doublons}>
Qui compile en :
SELECT articles.date_modif, articles.id_article, articles.lang, articles.descriptif, articles.date, articles.titre, articles.chapo, articles.texte, articles.id_rubrique
FROM spip_articles AS `articles` INNER JOIN spip_evenements AS L1 ON ( L1.id_article = articles.id_article ) INNER JOIN spip_mots AS L2 ON ( L2.maj = L1.maj ) INNER JOIN spip_mots AS L3 ON ( L3.id_mot = L2.id_mot )
WHERE (articles.statut = 'publie')
AND (articles.date <= NOW())
AND (L3.titre = 'AlaUne')
GROUP BY articles.id_article
ORDER BY articles.date_modif DESC
Le join sur spip_evenements (du plugin agenda) est anormal...
Et du coup, la boucle ne renvois rien 
Le pire, c'est qu'en local, c'est bon
Local :
- php 5.2.5
- mysql 5.0.51a
Distant :
- php 4.4.8 ou php 5.2.6
- mysql 5.0.44