We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25663 MODX Staff
    • 12,272 Posts
    If you do another test install with a different database of 0961 does it do the same thing? Maybe the database is somehow corrupt or a file was corrupted on uploading. Grasping for things here as it makes zero sense... :/
      Ryan Thrash, MODX Co-Founder
      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
      • 727
      • 502 Posts
      Can I replace the 0.9.6.1 files with 0.9.6 and edit config.inc.php, then see if 0.9.6 works with exact same database? Or was there a database change between the two versions that precludes that?

      Andy
        • 25663 MODX Staff
        • 12,272 Posts
        You probably can, though that wouldn’t tell if the 0961 has a corrupt file or not.
          Ryan Thrash, MODX Co-Founder
          Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
          • 22303 MODX Staff
          • 10,725 Posts
          No you can’t downgrade a database that’s been upgraded...it will not work.
            • 22303 MODX Staff
            • 10,725 Posts
            Are any of your magic_quotes settings enabled in phpinfo? Check both sites through the manager.

            Also, specifically make sure manager/includes/quotes_stripper.inc.php is there and is not corrupted in the site displaying this problem...
              • 727
              • 502 Posts
              For both sites (both using PHP 5.2.0-8+etch4):

              magic_quotes_gpc = on
              magic_quotes_runtime = off
              magic_quotes_sybase = off

              Local and master have the same settings for all of the above.

              Here is the entirety of the quotes_stripper.inc.php file, pasted from Nano:

              <?php
              
              // this simulates magic_quotes_gpc = 0...
              // Hope it works!
              function & kill_magic_quotes(&$str) {
                 if(is_array($str)) {
                     while(list($key, $val) = each($str)) {
                         $str[$key] = kill_magic_quotes($val); // this basically loops into arrays...
                     }
                 } else {
                     $str = stripslashes($str); // get rid of those slashes!
                 }
                 return $str;
              }
              
              if(get_magic_quotes_gpc()) {
                 kill_magic_quotes($_GET);
                 kill_magic_quotes($_POST);
                 kill_magic_quotes($_COOKIE);
                 kill_magic_quotes($_REQUEST);
              }
              
              ?>
              
              


              This file seems identical in the 0.9.6 installation.

              Andy
                • 22303 MODX Staff
                • 10,725 Posts
                I am at a loss. I’ve never seen a problem like this when editing content, with or without strict sql_mode options, in any version of MODx.

                However, I will mention that 5.2.0 is an awful version of PHP; btw what is -8+etch4?
                  • 727
                  • 502 Posts
                  This version of PHP came from the Debian Etch repos via aptitude. I guess when they build a deb file they append additional release numbers.

                  Note that the 0.9.6 installation works fine with this same version of PHP (everything is running on the same server I use for development).

                  Andy
                    • 727
                    • 502 Posts
                    I just checked and 5.2.0 is still the latest version available in the Debian Etch repos, so that is the version I am stuck with for now. sad

                    Andy
                      • 22303 MODX Staff
                      • 10,725 Posts
                      Still sounds like some kind of problem with the installation. Have you made sure all the 0.9.6.1 files were extracted/uploaded properly? Sometimes it can be difficult to find files corrupted by FTP transfer...