Erreur Smarty
dragontribal
dragontribal

Erreur Smarty

dragontribal 4
Aujourd'hui 16:29
#1
dragontribal 4
Aujourd'hui 16:29
Bonjour,

Après un moment d'absence sur xoops, j'ai voulu me relancer pour rester dans le temps.
j'ai pris un serveur sous ubuntu serveur 24.04 avec PHP Version 8.3.6, Apache/2.4.58 (Ubuntu) , mysql 8.3.6 .

mais je rencontre des problèmes avec smarty, après l'installation.
faut-il que je modifie des choses ?

voici les erreurs :

Citation :
Inconnu: Creation of dynamic property Smarty_Internal_Extension_Handler::$assignByRef is deprecated dans le fichier /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php ligne 182 Inconnu: Creation of dynamic property Smarty_Internal_Extension_Handler::$loadPlugin is deprecated dans le fichier /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php ligne 182 Inconnu: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated dans le fichier /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php ligne 719 Inconnu: Creation of dynamic property Smarty_Internal_Template::$compiler is deprecated dans le fichier /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php ligne 719 Inconnu: Creation of dynamic property Smarty_Internal_Extension_Handler::$_codeFrame is deprecated dans le fichier /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php ligne 182 Inconnu: Creation of dynamic property Smarty_Internal_Extension_Handler::$getLiterals is deprecated dans le fichier /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php ligne 182 Inconnu: Creation of dynamic property Smarty_Internal_Extension_Handler::$addLiterals is deprecated dans le fichier /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php ligne 182 Inconnu: Creation of dynamic property Smarty_Internal_Extension_Handler::$setLiterals is deprecated dans le fichier /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php ligne 182 Inconnu: Creation of dynamic property Smarty_Internal_Extension_Handler::$getTemplateVars is deprecated dans le fichier /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php ligne 182 Inconnu: Creation of dynamic property Smarty_Internal_Extension_Handler::$_writeFile is deprecated dans le fichier /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php ligne 182 Inconnu: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated dans le fichier /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php ligne 719 Inconnu: Creation of dynamic property Smarty_Internal_Template::$compiler is deprecated dans le fichier /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php ligne 719 Inconnu: Creation of dynamic property Smarty_Internal_Extension_Handler::$getTemplateVars is deprecated dans le fichier /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php ligne 182 Inconnu: Creation of dynamic property Smarty_Internal_Extension_Handler::$_foreach is deprecated dans le fichier /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php ligne 182 Inconnu: Creation of dynamic property Smarty_Variable::$do_else is deprecated dans le fichier /var/www/xoops_data/caches/smarty_compile/86a9106a_system_default_default^96f1527842ae5f809c14b866dd9011d5515646b4_0.db.systemblockmainmenu.tpl.php ligne 31 Inconnu: Creation of dynamic property Smarty_Variable::$do_else is deprecated dans le fichier /var/www/xoops_data/caches/smarty_compile/86a9106a_system_default_default^96f1527842ae5f809c14b866dd9011d5515646b4_0.db.systemblockmainmenu.tpl.php ligne 42 Inconnu: Creation of dynamic property Smarty_Variable::$do_else is deprecated dans le fichier /var/www/xoops_data/caches/smarty_compile/86a9106a_system_default_default^96f1527842ae5f809c14b866dd9011d5515646b4_0.db.systemblockmainmenu.tpl.php ligne 42 Inconnu: Creation of dynamic property Smarty_Internal_Extension_Handler::$getTemplateVars is deprecated dans le fichier /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php ligne 182 Inconnu: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated dans le fichier /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php ligne 719 Inconnu: Creation of dynamic property Smarty_Internal_Template::$compiler is deprecated dans le fichier /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php ligne 719 Inconnu: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated dans le fichier /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php ligne 719 Inconnu: Creation of dynamic property Smarty_Internal_Template::$compiler is deprecated dans le fichier /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php ligne 719 Inconnu: Creation of dynamic property Smarty_Internal_Extension_Handler::$getTemplateVars is deprecated dans le fichier /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php ligne 182 Inconnu: Creation of dynamic property Smarty_Variable::$do_else is deprecated dans le fichier /var/www/xoops_data/caches/smarty_compile/86a9106a_system_default_default^a54483ee86df42b68c31492f41f4d6e3b683fad8_0.file.theme.tpl.php ligne 101 Inconnu: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated dans le fichier /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php ligne 719 Inconnu: Creation of dynamic property Smarty_Internal_Template::$compiler is deprecated dans le fichier /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php ligne 719 Inconnu: Creation of dynamic property Smarty_Variable::$do_else is deprecated dans le fichier /var/www/xoops_data/caches/smarty_compile/86a9106a_system_default_default^a54483ee86df42b68c31492f41f4d6e3b683fad8_0.file.theme.tpl.php ligne 240


Merci d'avance ;)
Re : Erreur Smarty
Alain T
Alain T

Re : Erreur Smarty

Alain T 654
Aujourd'hui 16:32
#2
Alain T 654
Aujourd'hui 16:32
Salut et bon retour !
Bonne initiative que de mettre à jour ton système, ton XOOPS, tes modules et ton thème.

As-tu bien lu l'article : Anciens thèmes avec XOOPS 2.5.11 ?
Hummm
on peut lire :
Citation :
Pour simplifier le débogage, il faut activer une version 7.4.X ou 8.0.X de PHP.
Ce point est très important sinon vous n'arriverez pas à interpréter les messages d'erreurs et cela compliquera énormément la correction.
Re : Erreur Smarty
Alain T
Alain T

Re : Erreur Smarty

Alain T 654
Aujourd'hui 16:36
#3
Alain T 654
Aujourd'hui 16:36
oooups !
Si c'est une nouvelle installation avec XOOPS 2.5.11, quel thème as-tu utilisé ?
Re : Erreur Smarty
dragontribal
dragontribal

Re : Erreur Smarty

dragontribal 4
Aujourd'hui 16:39
#4
dragontribal 4
Aujourd'hui 16:39
Salut,
et merci pour la réponse rapide.
c'est une nouvelle installation avec xoops :
Version de XOOPS XOOPS 2.5.11-Stable
Version de PHP 8.3.6
Version de mySQL 8.0.39-0ubuntu0.24.04.2
API du Serveur apache2handler
Système d'exploitation Linux

Tout est propre.
Aucun nouveau module ni thème.
Thème actuel : xswatch4 et j'ai aussi essayé avec le thème default
Tout est d'origine comme ma toute première 103 S.P
Re : Erreur Smarty
Alain T
Alain T

Re : Erreur Smarty

Alain T 654
Aujourd'hui 16:50
#5
Alain T 654
Aujourd'hui 16:50
Ok, reste en xswatch4.

Je ne trouve pas l'info d'un PHP 8.x max...
Essaye avec un php 7.4 par exemple ou 8.0.x histoire de voir si tu as les même symptômes.
Re : Erreur Smarty
dragontribal
dragontribal

Re : Erreur Smarty

dragontribal 4
Aujourd'hui 17:08
#6
dragontribal 4
Aujourd'hui 17:08
je vais faire un test ce soir ou demain.
Re : Erreur Smarty
dragontribal
dragontribal

Re : Erreur Smarty

dragontribal 4
Aujourd'hui 18:30
#7
dragontribal 4
Aujourd'hui 18:30
bon ça commence bien

quand je fais : sudo apt install php7.4
il me dit :
Aucune version du paquet php7.4 n'est disponible, mais il existe dans la base
de données. Cela signifie en général que le paquet est manquant, qu'il est devenu obsolète
Re : Erreur Smarty
Alain T
Alain T

Re : Erreur Smarty

Alain T 654
Aujourd'hui 18:35
#8
Alain T 654
Aujourd'hui 18:35
Essaye :
apt search php7

Sinon, regarde ceci : https://tecadmin.net/how-to-install-php-on-ubuntu-24-04/
Re : Erreur Smarty
Alain T
Alain T

Re : Erreur Smarty

Alain T 654
Aujourd'hui 18:39
#9
Alain T 654
Aujourd'hui 18:39
Ok, si j'ai le temps je m'installe une VM Ubuntu 22.04 et je teste...