MODX Migration Upgrade failes

Summary

After migrating the database and files to the new web server, the upgrade setup fails at “Advanced Upgrade Install”.

However, a fresh modx can be installed and operated on this server. However, the migrated MODX cannot be set up and throws a 500 error.

I have already migrated many pages, but I have never had this error. I have always followed the instructions (Moving Your Site - Maintenance | MODX Documentation) and have not had any problems. I also tried using different versions of the installing archive.

Also making all changes (in the modx config files) manually does not work.

Unfortunately, I can’t interpret the error message from xpdo with my level of knowledge, so I have now created a ticket. Thank you in advance for your help!

Observed behavior

After migrating file and database backup to the new server, setting the filepermissions etc., copying a fresh modx over the old files and starting the setup in advanced mode to edit the database connection the setup does not respond after clicking on “Test”.

In the Apache logs there’s the follwing error:

[Tue Jul 08 16:28:55.863820 2025] [php:warn] [pid 2566902:tid 2566902] [client 129.27.108.55:49623] PHP Warning:  Trying to access array offset on false in /var/www/techsupport/httpdocs/core/vendor/xpdo/xpdo/src/xPDO/Om/xPDOObject.php on line 251

Expected behavior

The advanced setup should proceed after testing the databse connection and upgrade modx.

Environment of the new server

Debian 12
Apache/2.4.62 on Debian 12
MariaDB Server 10.11.11 (10.11.11-MariaDB-0+deb12u1 Debian 12)
Database engine: InnoDB
Database collation: utf8mb4_general_ci
PHP 8.4.7

Are there any other error messages in the log? This error message is just a warning and shouldn’t throw a 500 error.


What exact version of MODX are you trying to setup?

I’m sure you did this, but just in case… did you create the database user from the config files on the new server?

Sorry for the delayed replay; the newest, so Modx Revo 3.1.2 - on the old server I also had upgraded to the newest version before the upgrade.

After clicking on “Test” in the advanced setup this error shows up:

Kind regards

Sorry for the delayed reply; yes, I created a new user (also with the same credentials) on the new server and can perform a logon on the database server with it.

Kind regrads