We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3232
    • 380 Posts
    I just uploaded the new manager directory and files for 1.0.4 and when I navigate to the manager folder I just get a blank page.

    I did not run the upgrade yet but I don’t think that will affect me viewing the manager login page.

    Also If I re-upload the original manager directory, I get the same result, just a blank page.

    Does anyone know what would cause this? Could it be a permissions problem?

    Thanks
    Brian
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Did you keep your original manager/includes/config.inc.php file? Did you log out of the manager first, and make sure your browser cache and cookies were cleared? How about differences to the site cache file? You should definitely have run the installer in upgrade mode.
        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
        • 3232
        • 380 Posts
        Cache was cleared and the config was copied over from the original manager.

        I ran the install (upgrade) and still have the problem of a blank manager screen.

        When the config file was not in the manager/include folder, I did get an error message when viewing the manager that I needed to run the install. Once I added it in, blank screen. Once I upgraded, blank screen.

        I have used modx on many different servers and never experienced this type of behavior before.

        Whats really odd is that the original manager folder works, I renamed it and uploaded the new folder which doesn’t work. I then downloaded the original folder and tried to re-upload it. This "duplicate" doesn’t work.

        It leads me to believe there is a permissions problem but I am not sure. I ran the installer and everything was writable that should be.

          • 3232
          • 380 Posts
          So in doing some more investigation, I am getting the following PHP warning:

          Warning: main() [function.main]: open_basedir restriction in effect. File(/quotes_stripper.inc.php) is not within the allowed path(s): (/var/www/vhosts/user/httpdocs:/tmp) in /var/www/vhosts/user/httpdocs/manager/index.php on line 94

          There are a few of these (including config.php)

          Which in turn creates the following fatal warning:

          Fatal error: Class ’DocumentParser’ not found in /var/www/vhosts/user/httpdocs/manager/index.php on line 136

          Anyone have any ideas? From what I can tell this has something do to with safemode being on. The funny thing is that the user and group are the same as the manager directory that is working.

            • 3232
            • 380 Posts
            so this appears to be a safe mode issue. Is there a reason why modxcms is trying to load files from the tmp directory?

            /var/www/vhosts/user/httpdocs:/tmp

            I can turn off open_basedir but want to make sure this is required. I don’t want to open the site up to any vulnerabilities.
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              MODx is not trying to do this, the server is configured so that it’s the only place external files can be access from. The error is because MODx cannot access the file in the location it’s supposed to be in.

              http://www.php.net/manual/en/ini.core.php#ini.open-basedir
                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
                • 3232
                • 380 Posts
                Quote from: sottwell at Jun 14, 2010, 11:50 AM

                MODx is not trying to do this, the server is configured so that it’s the only place external files can be access from. The error is because MODx cannot access the file in the location it’s supposed to be in.

                http://www.php.net/manual/en/ini.core.php#ini.open-basedir

                Susan, thank you for this, it is extremely helpful.