We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8271
    • 9 Posts
    $_SERVER['DOCUMENT_ROOT']= '/home/imajid/public_html'
    realpath($_SERVER['DOCUMENT_ROOT'])= '/home/imajid/public_html'
    $modx_manager_path= '/home/imajid/public_html/control/'
    $modx_manager_url= '/control/'
    SAFE_MODE= on

    Tried Safe Mode On and Off on local but can't reproduce.
    I think the problem is related with suhosin settings, the problem only exists on shared hosting with suhosin.

    Update:

    I have suhosin max_value set to 512.

    On pl2 when testing for suhosin and failed the installer will set compress_js to 0 but then after that the installer will check the document_root and if it pass it will set the compress_js to 1 regardless suhosin test result.

    I can't confirm this since I don't have access to the setting.

    Suspect: failed suhosin test but passed document_root test [ed. note: dvio last edited this post 14 years, 8 months ago.]
      • 8271
      • 9 Posts
      My solution is to remove some unnecessary routine in the _checkDocumentRoot function (line 340 to 342) in setup/includes/test/modinstalltest.class.php to this

        public function _checkDocumentRoot() {
              $documentRoot = $_SERVER['DOCUMENT_ROOT'];
              if (empty($documentRoot)) {
                  $this->install->settings->set('compress_js',0);
                  $this->install->settings->set('compress_css',0);
              }
              $this->install->settings->store();
          }


      More detail:
      https://github.com/dvio/revolution/commit/002c2cde6b996bf1dfaac3ccdb0342049ef0b738 [ed. note: dvio last edited this post 14 years, 8 months ago.]
        • 38151
        • 2 Posts
        I'm a newbie, having problems installling modx revo, everyhing went well, but cannot see the resource menu and packages and other menus not working. It said everything installed correctly though. see screenshot. pls let me know what other info you need. I also installed on wamp and had similar problems also.
          • 8271
          • 9 Posts
          Quote from: ictsource at Jan 06, 2012, 11:35 AM
          I'm a newbie, having problems installling modx revo, everyhing went well, but cannot see the resource menu and packages and other menus not working. It said everything installed correctly though. see screenshot. pls let me know what other info you need. I also installed on wamp and had similar problems also.

          Try to set the compress_js to 0 in the system settings.

          Open phpMyAdmin, open your DB -> open system_settings table.
          Find compress_js and change the value to 0.
          Than delete the core/cache/system_settings/config.cache.php file
          Refresh your page.
            • 38151
            • 2 Posts
            Thanks, it worked!
              • 37912
              • 12 Posts
              Quote from: opengeek at Jan 06, 2012, 09:22 AM
              Quote from: tony.wilsman at Jan 06, 2012, 09:17 AM
              $_SERVER['DOCUMENT_ROOT'] = C:/Users/tony/Documents/Websites/22.idb.dev/public_html
              MODX_MANAGER_PATH = C:/Users/tony/Documents/Websites/22.idb.dev/public_html/manager/
              MODX_MANAGER_URL = /manager/

              I'm fairly certain I'm not using Suhosin.
              That should work fine. Something else is causing your problem, but I do not have a clue what it could be if not suhosin or some other restrictive php setting (open_basedir or safe_mode?). Can you put this in a php file in your document root and see what it returns?

              <?php
              echo realpath($_SERVER['DOCUMENT_ROOT']);
              

              Sorry, I lost track of this thread.

              safe_mode is off
              open_basedir has "No Value"
              realpath returns "C:\Users\tony\Documents\Websites\22.idb.dev\public_html"

              I did the following to test for Suhosin (found on stackoverflow):
              <?php
              ob_start();
              phpinfo();
              $phpinfo = ob_get_contents();
              ob_end_clean();
              if (strpos($phpinfo, "Suhosin") !== FALSE)
                  echo "Installed";
              ?>

              It did not test as installed.

              Thanks,

              Tony
                • 22303 MODX Staff
                • 10,725 Posts
                If working with IIS, you'll have to disable the compress_js and compress_css features. Something in IIS is not working well with the minify code used in MODX 2.2.x, and we have not yet been able to identify the source of the problem.
                  • 38004
                  • 96 Posts
                  Mine is sorted. I manually set set compress_css and compress_js to 0, then upgraded again.
                    • 37912
                    • 12 Posts
                    I'm not in IIS, I'm using XAMPP.

                    Anyway, this isn't a huge deal, I usually turn off compress_js and _css anyway. I just wanted to make sure you were getting the info you needed to sort this out.

                    Thanks!

                    Tony
                      • 38125
                      • 5 Posts
                      minify code in 2.2 doesn't work with nginx 0.7.62, neither with gzip on nor off. But does work with nginx 1.1.2