We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18654
    • 191 Posts
    I’m trying to install beta-5 from SVN (I downloaded files from 2.0 branch) and I keep getting this error:

    Could not detect MySQL server version!

    MODx could not detect your MySQL server version via mysql_get_server_info(). Please manually make sure that your MySQL server version is at least 4.1.20 before proceeding.

    Checking MySQL server version: Failed! - You are running on MySQL mysqlnd 5.0.5-dev - 081106 - $Revision: 1.3.2.27 $, and MODx Revolution requires MySQL 4.1.20 or later. Please upgrade MySQL to at least 4.1.20.

    I’m running WampSever Version 2.0 which uses MySql 5.1.36 and php 5.3.0 on Windows 7.

    Any ideas?
      God does not save those who are only imaginary sinners. Be a sinner, and let your sins be strong, but let your trust in Christ be stronger, and rejoice in Christ who is the victor over sin, death, and the world.
      • 26903
      • 1,336 Posts
      I’ve filed a JIRA about this area, MODX-1426, here http://svn.modxcms.com/jira/browse/MODX-1426
        Use MODx, or the cat gets it!
        • 18654
        • 191 Posts
        Cool - thanks for the update!
          God does not save those who are only imaginary sinners. Be a sinner, and let your sins be strong, but let your trust in Christ be stronger, and rejoice in Christ who is the victor over sin, death, and the world.
          • 26903
          • 1,336 Posts
          Sorry, forgot to add for now I just comment out the test and return a ’passed’ value, this allows installation to continue until we have a fix.
            Use MODx, or the cat gets it!
            • 10378
            • 375 Posts
            Quote from: shamblett at Nov 17, 2009, 04:43 AM

            Sorry, forgot to add for now I just comment out the test and return a ’passed’ value, this allows installation to continue until we have a fix.

            Could you please tell me in which file I have to comment out the "test" and return the "passed" value?
            A little code snippet would help.

            Thanks in advance,
            Martin
              Freelancer @bitego http://www.bitego.com
              ---
              GoodNews - one of the most advanced and integrated Group Mailer premium add-ons for MODX Revolution!
              More infos here: http://www.bitego.com/extras/goodnews/
              • 26903
              • 1,336 Posts
              Ok, the file is /setup/includes/modinstalltest.class.php, you could just comment out this line in the ’run’ function, ’$this->_checkMySQLServerVersion();’, this will remove the check for the version or you could hack the ’_checkMySQLServerVersion()’ function itself e.g remove
              $mysqlVersion = mysql_get_server_info();
                      if (empty($mysqlVersion)) {
                          $this->results['mysql_server_version']['msg'] = '<span class="ok">'.$this->install->lexicon['ok'].'</span></p>';
                          $this->results['mysql_server_version']['msg'] .= '<div class="notes"><h3>'.$this->install->lexicon['test_mysql_version_server_nf'].'</h3><p>'.$this->install->lexicon['test_mysql_version_server_nf_msg'].'</p></div>';
                          $this->results['mysql_server_version']['class'] = 'testWarn';
                          return true;
                      }
              


              and add

              $mysqlVersion ='5.0.77';


              or any version that will pass the tests.

                Use MODx, or the cat gets it!
                • 28215
                • 4,149 Posts
                I’ve committed a patch to SVN. Could you all experiencing the error try with the latest SVN, and post your results here: http://svn.modxcms.com/jira/browse/MODX-1426

                Thanks!
                  shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
                  • 18654
                  • 191 Posts
                  It got past the mysql issue ok, but I get a blank white screen on the next page. I checked phpMyAdmin, and the database was created successfully, so I’m not sure what the issue is. I never have been successful with an SVN install - it may be that I’m doing something else wrong. The steps I took were:

                  1. Go to repo-browser and click on 2.0 branch than click ’export’.
                  2. Copy files into my local www directory.
                  3. Start setup.

                  I running Windows 7 64-bit and most recent versions of FF, Chrome, and Opera.
                    God does not save those who are only imaginary sinners. Be a sinner, and let your sins be strong, but let your trust in Christ be stronger, and rejoice in Christ who is the victor over sin, death, and the world.
                    • 28215
                    • 4,149 Posts
                    Quote from: mattcdavis1 at Nov 17, 2009, 09:32 AM

                    It got past the mysql issue ok, but I get a blank white screen on the next page. I checked phpMyAdmin, and the database was created successfully, so I’m not sure what the issue is. I never have been successful with an SVN install - it may be that I’m doing something else wrong. The steps I took were:

                    1. Go to repo-browser and click on 2.0 branch than click ’export’.
                    2. Copy files into my local www directory.
                    3. Start setup.
                    You’re not doing the build - from the Fresh Installation page, at the top, a link to this page:

                    http://svn.modxcms.com/docs/display/revolution/Development+and+Testing+Notes
                      shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
                      • 18654
                      • 191 Posts
                      Thanks! - That did it. I’ve been wanting to switch to SVN for a while but never could figure it out. I appreciate the help.

                      What’s the process for keeping up to date with latest SVN without doing a fresh install each time?
                        God does not save those who are only imaginary sinners. Be a sinner, and let your sins be strong, but let your trust in Christ be stronger, and rejoice in Christ who is the victor over sin, death, and the world.