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

    We've just upgraded our plan on our webhost and during the change the backend for one of our client's sites has gone down. The database had moved from being on the same server to a separate server so that's been updated and is working. But now I've just found that Manager is missing the Resources/Elements/Files panel - there are a few Javascript errors that I guess are preventing the rest of the Javascript from being loaded.


    These are the errors I see in the browser console:
    Uncaught SyntaxError: Unexpected token < kryalcastle.com.au/:1
    
    Uncaught TypeError: Cannot read property 'prototype' of undefined ext-base.js:7
    
    Uncaught TypeError: undefined is not a function
    



    I've tried a few things:
    - cleared the cache manually via FTP (core/cache)
    - disabled JS & CSS caching in the database by setting compress_css and compress_js to 0 in system_settings table
    - tried commenting and uncommenting the output compression lines in .htaccess, didn't seem to make any difference

    Do I need to do anything to put the changes above in effect, or just refresh the browser?



    Some details of the installation:
    MODX Revolution 2.2.0-pl2 (traditional)
    Server: LiteSpeed V6.2
    PHP: 5.3.27



    Apologies if this is a newbie question, I'm not across much of MODX and I'm just supporting the few MODX sites we've still got running.
      • 39404
      • 175 Posts
      stalemate resolution associate Reply #2, 12 years, 11 months ago
      Hi tuzmonk,

      Welcome to MODX!

      I saw in another post (https://forums.modx.com/forums/thread/78527/installation-upgrade-issues#dis-post-432746) that there were some other things to try.

      If nothing there works, you could always take a fresh install of the same version (link is here: http://modx.com/download/release/revolution-2.2.0-pl2) and then copying over missing files.

      I haven't experienced this particular problem myself and it doesn't look too common of an error, though I could be wrong.

      Hope this helps.
        • 45342
        • 13 Posts
        Hi stalemate resolution associate,

        thanks for the welcome & the reply! I followed what those users did and upgraded MODX (to the same version) using the setup routine and it seemed to fix up whatever was the issue.

        cheers smiley
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          It's never a good idea to unzip the MODx archive and upload the files via FTP. A better way is to upload the .zip archive to the server, unzip it on the server and move the files into place. Uploading lots of small files will often result in one or more of the uploads failing or getting corrupted.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 45342
            • 13 Posts
            Hi Scott,

            that's what I did to upgrade MODX - uploaded the zip file for MODX and used file manager in CPanel to decompress the zip file
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              Hm. Gremlins wink
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 45342
                • 13 Posts
                Hehe. It was the hosting company that moved our files when we upgraded the plan so maybe they copied file-by-file instead of archiving our entire webroot? Possible but seems unlikely

                I think it could have been that the new server which had some setting that was causing issues (it's on Litespeed now, was on Apache before) - during the install process I got a warning (screeny attached) and it definitely appeared to be Javascript files that weren't loading. Anyway it's working so all good smiley
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  Ah. I've never worked with Litespeed. Interesting.
                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org