We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 54187
    • 16 Posts
    I've uploaded a new copy of MODX, and ran /setup, which completed okay.

    I then tried to load /manager, but this page displayed a PHP error:

    Fatal error: Uncaught Error: Call to a member function setProperties() on null in /home/user/domain/core/model/modx/modmanagerresponse.class.php:191 Stack trace: #0 /home/user/domain/core/model/modx/modmanagerresponse.class.php(73): modManagerResponse->instantiateController('SecurityLoginMa...', 'getInstance') #1 /home/user/domain/core/model/modx/modmanagerrequest.class.php(186): modManagerResponse->outputContent(Array) #2 /home/user/domain/core/model/modx/modmanagerrequest.class.php(134): modManagerRequest->prepareResponse() #3 /home/user/domain/manager/index.php(75): modManagerRequest->handleRequest() #4 {main} thrown in /home/user/domain/core/model/modx/modmanagerresponse.class.php on line 191

    This is the same error I receive when trying to make a local copy of the site.
      • 3749
      • 24,544 Posts
      Setup doesn't always get things right. Recheck the four config files.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 54187
        • 16 Posts
        I've rechecked the four config files. They all have correct values. I've reset the db password, with no difference.

        /manager/ still displays the error:

        Fatal error: Uncaught Error: Call to a member function setProperties() on null in /home/user/old.example.com.au/core/model/modx/modmanagerresponse.class.php:191 Stack trace: #0 /home/user/old.example.com.au/core/model/modx/modmanagerresponse.class.php(73): modManagerResponse->instantiateController('SecurityLoginMa...', 'getInstance') #1 /home/user/old.example.com.au/core/model/modx/modmanagerrequest.class.php(186): modManagerResponse->outputContent(Array) #2 /home/user/old.example.com.au/core/model/modx/modmanagerrequest.class.php(134): modManagerRequest->prepareResponse() #3 /home/user/old.example.com.au/manager/index.php(75): modManagerRequest->handleRequest() #4 {main} thrown in /home/user/old.example.com.au/core/model/modx/modmanagerresponse.class.php on line 191
          • 54187
          • 16 Posts
          I created a new subdomain; old2.insightdesign.com.au, and uploaded modx-2.6.2 over it, ran /setup, upgraded the install, and /manager now works on old2.insightdesign.com.au.

          However, http://old2.insightdesign.com.au/ still has the bad path to CSS files.
            • 3749
            • 24,544 Posts
            Make sure you have this tag (with the exclamation point) in the head section of all templates:

            <base href="[[!++site_url]]" />


            This is the line with the bad CSS path:

            <link rel="stylesheet" href="css-cross-web.css" type="text/css" />


            I don't think it's a MODX file, so it's probably in your template.

            If you can't find the reference, maybe you can find that file and move it to the MODX root.

            Or maybe you forgot to transfer that file.

              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting
              • 54187
              • 16 Posts
              <base href="[[!++site_url]]" />
              is present in the head section.

              In Elements > Chunks > Site Design > 1. Header > IDC-Header, there is:

              <!-- Stylesheets --><link rel="stylesheet" href="[[~[[++CSS_cross]]]]" type="text/css" />


              I can't find any other mention of CSS in any group of elements.
                • 3749
                • 24,544 Posts
                The fact that this is a placeholder suggests that it is being set by an extra -- most likely a snippet.


                href="[[~[[++CSS_cross]]]]"


                You could try replacing that tag with the actual URL of the CSS file:

                href="http://yoursite.com/full/url/of/css-cross-web.css"
                  Did I help you? Buy me a beer
                  Get my Book: MODX:The Official Guide
                  MODX info for everyone: http://bobsguides.com/modx.html
                  My MODX Extras
                  Bob's Guides is now hosted at A2 MODX Hosting