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.
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!
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.
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!
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
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
or any version that will pass the tests.
Use MODx, or the cat gets it!
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.
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.