We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 35756
    • 166 Posts
    Hi there!

    Today I wanted to finally upgrade a customers modx-install 2.2.14 to the recent version 2.4.2, but I'm having many issues on this.

    First I wanted to have a look which packages I have to upgrade, but in the package-manager there is no extra marked for an update, altough I know that several extras (like FormIt and migx sure need to get updated). But I thought "ok, let's go with it" and I logged of with flush sessions, then I deleted all the files in the core/cache-folder and afterwards uploaded all files of the recent modx 2.4.2-version to the server via FTP.

    Then my nightmare began...trying to open the setup did not work, it ended in a 404 error. Additionally all the wayfinder links of my main navigation disappeared. Only two text-links that are added manually in the template-code were accessable, and I could open those pages. But why are the wayfinder-links missing then? Also some background images I implemented via migx disappeared too.

    So then I thought to delete all files and re-upload my backed up files back to the server, but I had big issues to delete everything from the server due to permissions I guess. So I finally used "putty" for ssh-access do delete all files in the related folder with sudo-account. Finally I was able to upload my backed-up files again and the site was running (still only with the content of the cache-folder!).

    Next step was to just upload the "setup"-folder of the modx 2.4.2-zip-archive and to test if I'm able to run it in the browser, but no success. This ended in a 404-error?!

    Afterwars I wanted to add an info.php-file to see which php-version is running on the server. So I uploaded my info.php-file with the following content:

    <?php
    
    phpinfo();
    
    ?>
    
    


    But this also ended in a 404-error.

    Then I logged in to the manager to add a snippet in a resource with the same content posted above to get the php-informations. But when I wanted to edit a resource I get this error:

    Fatal error: Cannot redeclare class modTemplateVarInputRenderText in /home/www/xxx/html/core/model/modx/processors/element/tv/renders/mgr/input/text.class.php on line 10


    Trying to edit a template does work, also a snippet. But editing a chunk, template-variable or plugin doesn't work either; the right section of the backend stays empty.

    So does anyone has any tip for me what to do? How can I upgrade the MODx-install? And why can't I edit any resource, chunk, tv or plugin anymore? And is it working to update from 2.2.14 to 2.4.2 or do I have to do all versions inbetween? [ed. note: profilneurotiker last edited this post 10 years, 11 months ago.]