MODx Bug/Feature Tracker and Feature Requests
Welcome to the MODx CMS Tracker. Please choose the appropriate project from the drop down menu and provide as much information as possible regarding your server environment and browser. Thanks!
FS#905 — Installation stalls
Attached to Project —
MODx
Opened by purple (purple) - Saturday, 30 June 2007, 01:30PM
Last edited by Mike Reid (pixelchutes) - Thursday, 31 January 2008, 04:57PM
Opened by purple (purple) - Saturday, 30 June 2007, 01:30PM
Last edited by Mike Reid (pixelchutes) - Thursday, 31 January 2008, 04:57PM
| Task Type | Bug Report |
|---|---|
| Category | Install and Server Issues |
| Status | Closed |
| Assigned To |
Jason Coward (opengeek) Mike Reid (pixelchutes) |
| Operating System | All |
| Severity | High |
|---|---|
| Priority | Normal |
| Reported Version | 0.9.6 |
| Due in Version | 0.9.6.2 |
| Due Date | Undecided |
| Percent Complete |
|
Details
Hi,During a new install of the version 0.9.6 the installation stalled. (http://www.levenspret.nl/install/index.php?action=install)
The last printed line: Checking table prefix `modx_`: OK!
I've also managed to solve it by commenting the following lines in the file sqlParser.class.php:
if(function_exists("mysql_get_server_info")) {
$ver = mysql_get_server_info();
$this->dbMODx = version_compare($ver,"4.0.2");
$this->dbVersion = floatval($ver);
}
Some details:
Linux hs20-bc1-2.build.redhat.com 2.6.9-34.0.1.
PHP 4.1.2
MySQL 3.23.58
This task depends upon
This task blocks these from closing
Closed by Mike Reid (pixelchutes)
Thursday, 31 January 2008, 05:09PM
Reason for closing: Fixed
Additional comments about closing: * [ FS#905 ] sqlParser.class.php now typecasting (float) instead of floatval() [PHP < 4.2] (3338)
Thursday, 31 January 2008, 05:09PM
Reason for closing: Fixed
Additional comments about closing: * [
- Field changed: Status (Unconfirmed → Researching)
- Field changed: Operating System (Linux → All)
- Field changed: Severity (Critical → High)
- Field changed: Due Date (Undecided → Undecided)
- Task assigned to Jason Coward (opengeek)
This needs research to determine specifically what was causing the stall.floatval
(PHP 4 >= 4.2.0)
You are using PHP 4.1.2
One recommendation may be to typecast it directly?
$this->dbVersion = (float) $ver;
floatval() doesn't appear to add any new functionality, and since a function isn't required here this solution should be acceptable.