Bonjour,
sur un nouveau serveur un site sous SPIP 4.2.16 fonctionne très bien, sauf que la création des articles du site public échoue quand je le lance `partir de l’espace privé.
Le code suivant donne une page blanche
/ecrire/?exec=article&action=redirect&type=article&id=74&var_mode=calcul
Dans spip.log je trouve par contre des entrées 'à propos de tables Sqlite manquantes alors que j’utilice MySQL/MariaDB (il y a plein d’entrées pas plausible - pourquoi ces DELETE FROM spip_table ?. ) Toutes les tables SPIP sont bien présentes, alors …
DELETE FROM spip_paquets
2024-09-18 09:55:15 90.187.211.81 (pid 962093) :Pri:ERREUR: Erreur sqlite HY000 / 1
2024-09-18 09:55:15 90.187.211.81 (pid 962093) :Pri:ERREUR: Erreur sqlite HY000 / 1
2024-09-18 09:55:15 90.187.211.81 (pid 962093) :Pri:!INFO: trouver_table: table inconnue 'dump' 'spip_pays'
2024-09-18 09:55:15 90.187.211.81 (pid 962093) :Pri:!INFO: trouver_table: table inconnue 'dump' 'spip_pays_liens'
2024-09-18 09:55:15 90.187.211.81 (pid 962093) :Pri:!INFO: trouver_table: table inconnue 'dump' 'spip_petitions'
2024-09-18 09:55:15 90.187.211.81 (pid 962093) :Pri:ERREUR: SQLSTATE[HY000]: General error: 1 no such table: spip_plugins in/path/ecrire/src/Sql/Sqlite/Requeteur.php line 88 -
DELETE FROM spip_plugins
2024-09-18 09:55:15 90.187.211.81 (pid 962093) :Pri:ERREUR: Erreur sqlite HY000 / 1
2024-09-18 09:55:15 90.187.211.81 (pid 962093) :Pri:ERREUR: Erreur sqlite HY000 / 1
2024-09-18 09:55:15 90.187.211.81 (pid 962093) :Pri:ERREUR: SQLSTATE[HY000]: General error: 1 no such table: spip_referer_spam in/path/ecrire/src/Sql/Sqlite/Requeteur.php line 88 -
DELETE FROM spip_referer_spam
2024-09-18 09:55:15 90.187.211.81 (pid 962093) :Pri:ERREUR: Erreur sqlite HY000 / 1
2024-09-18 09:55:15 90.187.211.81 (pid 962093) :Pri:ERREUR: Erreur sqlite HY000 / 1
2024-09-18 09:55:15 90.187.211.81 (pid 962093) :Pri:ERREUR: SQLSTATE[HY000]: General error: 1 no such table: spip_rubriques in/path/ecrire/src/Sql/Sqlite/Requeteur.php line 88 -
DELETE FROM spip_rubriques
2024-09-18 09:55:15 90.187.211.81 (pid 962093) :Pri:ERREUR: Erreur sqlite HY000 / 1
2024-09-18 09:55:15 90.187.211.81 (pid 962093) :Pri:ERREUR: Erreur sqlite HY000 / 1
2024-09-18 09:55:15 90.187.211.81 (pid 962093) :Pri:!INFO: trouver_table: table inconnue 'dump' 'spip_signatures'
2024-09-18 09:55:15 90.187.211.81 (pid 962093) :Pri:ERREUR: SQLSTATE[HY000]: General error: 1 no such table: spip_syndic in/path/ecrire/src/Sql/Sqlite/Requeteur.php line 88 -
DELETE FROM spip_syndic
2024-09-18 09:55:15 90.187.211.81 (pid 962093) :Pri:ERREUR: Erreur sqlite HY000 / 1
contenu de connect.php
<?php
if (!defined("_ECRIRE_INC_VERSION")) return;
defined('_MYSQL_SET_SQL_MODE') || define('_MYSQL_SET_SQL_MODE',true);
$GLOBALS['spip_connect_version'] = 0.8;
spip_connect_db('localhost','','nomdb','password','nomdb','mysql', 'spip','','');
PHP error.log
/path/ecrire/inc/utils.php on line 1848', referer: https://www.txsl.de/ecrire/?exec=article&id_article=74
[Wed Sep 18 12:39:47.060774 2024] [proxy_fcgi:error] [pid 964973:tid 965019] [client 90.187.211.81:40856] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Exception: Missing a url function for type propres : urls_propres_generer_url_objet() in /path/ecrire/inc/utils.php:1848\nStack trace:\n#0 /path/plugins-dist/urls_etendues/urls/propres2.php(39): charger_fonction_url()\n#1 /path/ecrire/inc/utils.php(1907): urls_propres2_generer_url_objet_dist()\n#2 /path/ecrire/inc/utils.php(2011): generer_objet_url()\n#3 /path/ecrire/action/redirect.php(119): generer_objet_url_absolue()\n#4 /path/ecrire/action/redirect.php(60): calculer_url_redirect_entite()\n#5 /path/ecrire/public/aiguiller.php(80): action_redirect_dist()\n#6 /path/web/ecrire/index.php(66): traiter_appels_actions()\n#7 {main}\n thrown in /path/ecrire/inc/utils.php on line 1848', referer: https://www.website.tld/ecrire/?exec=article&id_article=74
J’avoue que l’installation des versions PHP sur le serveur n’est pas encore achevée, mais phpinfo ne montre pas de problème.
# PHP Version 8.2.23
|System|Linux eisbaer 6.1.0-21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64|
| --- | --- |
|Build Date|Aug 30 2024 11:34:15|
Pour le moment je ne modifie rien et tente l’installation d’un autre site sous SPIP 4.3.2 pour exclure des incompatibilité avec la version PHP.
Est-ce qu’il y des erreurs qui vous sautent aux yeux?
Merci :-)k++