Migrating v2.6.4, Website doesn't load, in Manager only the Landingpage shows

I tried to migrate a website, the file structure on the old server was changed, I just took assets and core/packages and /components, put it in after a fresh install on the new server and imported the database without modx_users and modx_user_attributes.
In the manager I can see all the filenames but if I open anything under the resource tab but the homepage, I get an instant error 500. The homepage html shows fine. The templates, chunks, etc. are all there as well. If I try to open the website, it loads for about a minute before it shows the error 500 screen.
Do you have any idea what I might have done wrong?

Deactivate all plugins. That should help in most cases. And empty the extension_packages system setting.

Afterwards, you can reactivate them step by step.

Thanks, unfortunately deactivating the plugins didn’t change anything. Also there is no extension_packages system setting anymore (I don’t know why it was deleted, i didn’t make the website)

Maybe it helps if you check the server error log (not the error log from MODx) to see what the actual error message is.

Alright here’s the PHP error log:

Deprecated : Array and string offset access syntax with curly braces is deprecated in /home/u819925671/domains/jomo-webdesign.com/public_html/modx6/core/model/modx/modresource.class.php on line 271

Deprecated : Array and string offset access syntax with curly braces is deprecated in /home/u819925671/domains/jomo-webdesign.com/public_html/modx6/core/xpdo/cache/xpdocachemanager.class.php on line 166

Deprecated : Array and string offset access syntax with curly braces is deprecated in /home/u819925671/domains/jomo-webdesign.com/public_html/modx6/core/xpdo/cache/xpdocachemanager.class.php on line 180

Deprecated : Array and string offset access syntax with curly braces is deprecated in /home/u819925671/domains/jomo-webdesign.com/public_html/modx6/core/xpdo/cache/xpdocachemanager.class.php on line 334

Deprecated : Array and string offset access syntax with curly braces is deprecated in /home/u819925671/domains/jomo-webdesign.com/public_html/modx6/core/xpdo/cache/xpdocachemanager.class.php on line 407

Deprecated : Array and string offset access syntax with curly braces is deprecated in /home/u819925671/domains/jomo-webdesign.com/public_html/modx6/core/xpdo/cache/xpdocachemanager.class.php on line 408

Warning : “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /home/u819925671/domains/jomo-webdesign.com/public_html/modx6/core/model/modx/modcachemanager.class.php on line 580

Deprecated : Array and string offset access syntax with curly braces is deprecated in /home/u819925671/domains/jomo-webdesign.com/public_html/modx6/core/model/modx/modstaticresource.class.php on line 200

Fatal error : Maximum execution time of 120 seconds exceeded in /home/u819925671/domains/jomo-webdesign.com/public_html/modx6/core/xpdo/xpdo.class.php on line 1594

I think I saw at least some of those messages while doing the fresh install before migrating the data.

Here’s the newest error log message from Modx

[2021-12-06 15:44:06] (ERROR @ /home/u819925671/domains/jomo-webdesign.com/public_html/modx6/core/xpdo/om/xpdoobject.class.php : 1452) Error HY000 executing statement:
INSERT INTO modx_session (id, access, data) VALUES (‘f19515030f80c2160d7145110124bd73’, 1638805446, ‘modx.user.contextTokens|a:1:{s:3:“mgr”;i:1;}modx.mgr.user.token|s:52:“modx61ae094ee3a600.81541404_161ae0a1c0d6158.17108125”;modx.mgr.session.cookie.lifetime|i:0;modx.mgr.user.config|a:0:{}modx.user.1.userGroupNames|a:1:{i:0;s:13:“Administrator”;}newResourceTokens|a:22:{i:0;s:23:“61ae0a4288bf80.42533858”;i:1;s:23:“61ae0a48a1cc29.96193421”;i:2;s:23:“61ae0dd517a3c2.97173856”;i:3;s:23:“61ae103e116e91.35697576”;i:4;s:23:“61ae104d892a29.29807851”;i:5;s:23:“61ae104debb909.18876632”;i:6;s:23:“61ae10511ca612.18247368”;i:7;s:23:“61ae105d9b4e40.65226553”;i:8;s:23:“61ae106adfefb6.54345822”;i:9;s:23:“61ae107b673bc2.47943637”;i:10;s:23:“61ae11b76f3b22.07835275”;i:11;s:23:“61ae11c1177da0.03100130”;i:12;s:23:“61ae11e951a185.37819985”;i:13;s:23:“61ae1297d41060.40375353”;i:14;s:23:“61ae259a835cb0.11428658”;i:15;s:23:“61ae259e043e53.83767147”;i:16;s:23:“61ae2ae5e52a61.35845308”;i:17;s:23:“61ae2b01be6458.38487950”;i:18;s:23:“61ae2b05668e98.81584212”;i:19;s:23:“61ae2b08707958.92929933”;i:20;s:23:“61ae2b0f36ef55.27441633”;i:21;s:23:“61ae2b73ac69d5.33518035”;}’)
Array
(
[0] => HY000
[1] => 2014
[2] => Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute.
)

I’m sorry that I’m dumping these walls of text here, I just don’t know what part might be important.

Alright I feel this might be the key:

I just tried migrating on v2.8.3 and on both versions (2.8.3 and 2.6.4), if I try to open any other resource than the landing page in the manager I get this PHP error message:

Fatal error : Cannot declare class modTemplateVarInputRenderText, because the name is already in use in /home/u819925671/domains/jomo-webdesign.com/public_html/modx6/core/model/modx/processors/element/tv/renders/mgr/input/text.class.php on line 0

This guy had the same error message: Ошибка в админке при работе с MIGX
So maybe it has something to do with some sort of cache?

Please try run the setup again after the db was imported or just truncate the tables of a new installation and dump the old data in.

The problem is: the db tables were changed a bit between 2.6.4 and 2.8.3.

The error message about exceeding the execution time can be caused by a circular reference.

500 errors are often caused by a problem in your .htaccess file, like an incorrect rewrite base.

Also, make sure the page designated as the 404 page in the error_page System Setting is published.

This modTemplateVarInputRenderText error looks like a custom template variable not available anymore, because the TV plugin is not running anymore.