XF 2.3 ErrorException: [E_WARNING] Trying to access array offset on false in src/XF/Install/Upgrader.php at line 119

mcatze

Well-known member
I've tried to upgrade my XenForo from 2.3.6 to 2.3.6 and run into this error.

php 8.3.23
mariadb 10.11.23

Code:
ErrorException: [E_WARNING] Trying to access array offset on false in src/XF/Install/Upgrader.php at line 119

XF::handlePhpError() in src/XF/Install/Upgrader.php at line 119
XF\Install\Upgrader->isUpgradeComplete() in src/XF/Install/Controller/Upgrade.php at line 61
XF\Install\Controller\Upgrade->actionIndex() in src/XF/Mvc/Dispatcher.php at line 362
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2824
XF\App->run() in src/XF.php at line 806
XF::runApp() in install/index.php at line 16
 
Solution
This seems to imply your xf_upgrade_log table contains no rows, which I don't believe can happen without manual intervention (or add-on interference).

You might try populating it. As always, you should backup the database before making any manual changes. This query assumes you're currently running 2.3.6 and must be adjusted otherwise:
SQL:
INSERT
INTO xf_upgrade_log
    (version_id, completion_date, log_type)
VALUES
    (2030670, UNIX_TIMESTAMP(), 'install')
This seems to imply your xf_upgrade_log table contains no rows, which I don't believe can happen without manual intervention (or add-on interference).

You might try populating it. As always, you should backup the database before making any manual changes. This query assumes you're currently running 2.3.6 and must be adjusted otherwise:
SQL:
INSERT
INTO xf_upgrade_log
    (version_id, completion_date, log_type)
VALUES
    (2030670, UNIX_TIMESTAMP(), 'install')
 
Solution
Back
Top Bottom