Installation Installation en local d'un forum XF 1.5

Nicolas

Administrateur
Membre du Staff
version XenForo
1.5
Pour ma culture personnelle je vais me lancer dans une migration d'un forum XF 1.5 vers un XF 2.2 via CLI.
La première étape est d'installer, en local, un forum XF 1.5, je rencontre déjà quelques soucis à ce niveau-là et je cherche la réponse sur XF.com mais je vais partager tout ça ici parce que ça pourrait servir à d'autres (même si plus personne ne devrait installer un XF 1.5 !).

Première difficulté rencontrée c'est que mon Laragon tourne sous PHP 8 et bien évidemment 1.5 ne le prend pas en charge.
Code:
Fatal error:
    Array and string offset access syntax with curly braces is no longer supported in C:\laragon\www\old_xenforo\library\Lgpl\utf8.php on line 47

Fatal error:
    Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, XenForo_Application given in C:\laragon\www\old_xenforo\library\Zend\Registry.php:206

Stack trace:
    #0 C:\laragon\www\old_xenforo\library\XenForo\Application.php(1005): Zend_Registry->offsetExists('db')
    #1 C:\laragon\www\old_xenforo\library\XenForo\Application.php(1638): XenForo_Application::get('db')
    #2 C:\laragon\www\old_xenforo\library\XenForo\Error.php(160): XenForo_Application::getDb()
    #3 C:\laragon\www\old_xenforo\library\XenForo\Application.php(403): XenForo_Error::logException(Object(ErrorException))
    #4 [internal function]: XenForo_Application::handleFatalError() #5 {main} thrown in C:\laragon\www\old_xenforo\library\Zend\Registry.php on line 206

Donc j'ai downgradé à PHP 7.4 mais...
Code:
Fatal error:
    Uncaught ErrorException: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in C:\laragon\www\old_xenforo\library\Zend\Registry.php:206
 
Stack trace:
    #0 C:\laragon\www\old_xenforo\library\Zend\Registry.php(206): XenForo_Application::handlePhpError(8192, 'array_key_exist...', 'C:\\laragon\\www\\...', 206, Array)
    #1 C:\laragon\www\old_xenforo\library\Zend\Registry.php(183): Zend_Registry->offsetExists('config')
    #2 C:\laragon\www\old_xenforo\library\XenForo\Helper\File.php(284): Zend_Registry::isRegistered('config')
    #3 C:\laragon\www\old_xenforo\library\XenForo\Error.php(78): XenForo_Helper_File::getInternalDataPath()
    #4 C:\laragon\www\old_xenforo\library\XenForo\Application.php(381): XenForo_Error::unexpectedException(Object(ErrorException))
    #5 [internal function]: XenForo_Application::handleException(Object(ErrorException))
    #6 {main} thrown in C:\laragon\www\old_xenforo\library\Zend\Registry.php on line 206

Je me demande si je ne suis pas encore trop "haut" avec PHP et si je ne devrais pas descendre vers PHP 7.2 :unsure:
Using array_key_exists() on objects is deprecated.
 

Membres en ligne

Aucun membre en ligne actuellement.
Extras
Les tutoriels
en français
Collection de tutoriels exclusifs pour découvrir l'environnement XenForo.
Our translations
exclusives
French translation of official XenForo and XenAddons softwares.
The subscription
19.90 €
A premium account to access all our official resources.
Contribute to the development and sustainability of the forum with a donation to our PayPal account.
Haut