We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22303 MODX Staff
    • 10,725 Posts
    Original post updated with revision 2212. This has now been merged with 0.9.5.1 progress...

    Please NOTE: rev 2212 also requires an update to the core/config/config.inc.php but the upgrade installation process does not yet allow user interaction to choose the $database_connection_charset value that MODx will use to connect to MySQL with throughout the application. After running the upgrade, it will be set to utf8, so you may need to adjust this value if your database does not have a utf8 collation/charset (i.e. latin1, etc.).
      • 6726
      • 7,075 Posts
      Very nice !
      It’s great to have the ability to define the DB connection charset grin

      Off to downloading this new build smiley
        .: COO - Commerce Guys - Community Driven Innovation :.


        MODx est l'outil id
        • 22303 MODX Staff
        • 10,725 Posts
        Quote from: OpenGeek at Jan 10, 2007, 11:55 AM

        After running the upgrade, it will be set to utf8, so you may need to adjust this value if your database does not have a utf8 collation/charset (i.e. latin1, etc.).
        Actually, it’s blank after upgrade, so you may need to set this manually to utf8 or whatever value...
          • 22303 MODX Staff
          • 10,725 Posts
          Sorry to do it David (and anyone else who already grabbed 2212), but found some more critical issues after upgrading http://xpdo.org/ to 0.9.7 this afternoon (yeah!!!), and have updated the packages once again, now to 2218.
            • 6726
            • 7,075 Posts
            I’d be crazy to complain that things are moving so fast grin

            I didn’t have the time to install it yet anyway...
              .: COO - Commerce Guys - Community Driven Innovation :.


              MODx est l'outil id
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              Just did a fresh install from SVN on the new MAMP Pro beta (nice, I might be tempted to pay for this when it is final if it’s not too expensive) and it installed smoothly. However, when testing the contact form (from a full demo installation) it choked on the form’s action, [~[*id*]~]. Produced a "htt://localhost/[~6~] not found on this server" error. So I tried changing to the new tag format, and got the MODx 404 error page from trying to find "http://localhost/097/index.php?id=[[*id]]".
                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
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                Did a clean install of 0.9.5 final, then uploaded the latest 0.9.7 from SVN and tried an upgrade.

                It does not find the config.inc.php file from the original manager/includes. I don’t see a huge difference in the files, it should be possible to at least grab the database info from the original in manager/includes.

                I added this to the index.php in the /install folder, and it got past that initial hurdle.
                Line 67:
                	} elseif (file_exists("../manager/includes/config.inc.php")) {
                	   include "../manager/includes/config.inc.php";
                	    // We need to have all connection settings - tho prefix may be empty so we have to ignore it
                	    if ($dbase) {
                	        if(!@$conn = mysql_connect($database_server, $database_user, $database_password)) {
                	            $upgradeable = 0;
                	        }
                	        $upgradeable = 1;
                	    }
                

                Next step, to get the install script to actually use this for the upgrade process! Stay tuned...

                Added the following at around line 490 (after the above addition):
                		// connect to the database
                		if($installMode==1) {
                		    if (file_exists("../core/config/config.inc.php")) {
                                include "../core/config/config.inc.php";	  
                		  	} elseif (file_exists("../manager/includes/config.inc.php")) {
                	           include "../manager/includes/config.inc.php";
                	        }
                		}
                		else {		
                			// get db info from post
                


                Ugh. It sinks into a morass of javascript.
                  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
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  Ok, got it. put this at line 14 of instprocessor.php
                  if($installMode==1) {
                      if (file_exists("../manager/includes/config.inc.php")) {
                          include "../manager/includes/config.inc.php";	  
                    	} elseif (file_exists("../core/config/config.inc.php")) {
                          include "../core/config/config.inc.php";
                      }
                  } else {
                  	// get db info from post
                  

                  It needs to check for the old manager/includes/config.inc.php file first, because earlier in the install process the installer helpfully creates an empty config.inc.php in the core/config folder.
                    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
                    • 25663 MODX Staff
                    • 12,272 Posts
                    Nice trouble shooting Suz! smiley
                      Ryan Thrash, MODX Co-Founder
                      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                      • 28042 ☆ A M B ☆
                      • 24,524 Posts
                      Ok, I made a big mistake a few posts ago. I’m not getting any regClient... functions working at all. I had the script links hard-coded in the template header.
                        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