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#81 — Error in installation
Attached to Project —
MODx
Opened by philippe (tybiboone) - Monday, 10 October 2005, 12:36PM
Last edited by Mark Kaplan (mark2005) - Thursday, 16 February 2006, 10:40PM
Opened by philippe (tybiboone) - Monday, 10 October 2005, 12:36PM
Last edited by Mark Kaplan (mark2005) - Thursday, 16 February 2006, 10:40PM
| Task Type | Bug Report |
|---|---|
| Category | Core Distribution |
| Status | Closed |
| Assigned To |
Jason Coward (opengeek) Raymond Irving (xwisdom) |
| Operating System | All |
| Severity | Critical |
|---|---|
| Priority | Immediate |
| Reported Version | TP3.2 |
| Due in Version | 0.9.2/0.9.2.1 |
| Due Date | Undecided |
| Percent Complete |
|
Details
When executing a fresh install, everything looks OK till the last step (creation of the tables and so on), where it says :Creating connection to the database: OK!
Selecting database `filigrif_modx`: OK!
Checking table prefix ``: OK!
Creating database tables: Database Alerts!
MODx setup couldn't install/alter some tables inside the selected database.
and further, many fields names that are said "already used" during "alter table"
the last line shows "Some table were not updated. This might be due to previous modifications."
thanks for helping me install this beauty :)
This task depends upon
This task blocks these from closing
setup.sql
What version of MySQL and PHP are you using?
MySQL : 4.0.24
PHP : 4.3.11
Before install, only the database was created, not the content of this database.
After install, I see (in phpmyadmin) that 46 tables have been created. If it can help solve the problem...
Try runing the setup.sql script on it's own via phpmyadmin
#1064 - Syntax error next to 'CREATE TABLE IF NOT EXISTS `modx_user_settings` (
`user` INTE' at line 67
here is the complete line :
TYPE = MYISAM COMMENT = 'Contains information describing the user roles.' CREATE TABLE IF NOT EXISTS `modx_user_settings` (
`user` INTEGER NOT NULL ,
`setting_name` varchar( 50 ) NOT NULL default '',
`setting_value` varchar( 255 ) NOT NULL default '',
KEY `setting_name` ( `setting_name` ) ,
KEY `user` ( `user` )
) TYPE = MYISAM COMMENT = 'Contains backend user settings.'
After that, can you try emptying out the database of all tables and installing again, please?
I already replaced {PREFIX} with the right prefix - i got the comment I posted lately...
As the tables looked to be ok (there are 46 tables - is this OK ?), I created the config.inc.php and gave it the good settings.
Then I tried to connect to the modx site or manager : blank page, no error - the install procedure didn't have the time to set the admin login/pass in the DB.
I'm locked at this point !
There are known issues with the new/4th layout so please do not use it. This is not a final release, btw.
http://modxcms.com/forums/index.php/topic,1207.0.html
No way, still the same error : everything works, till the final creation of tables : this message appears
MODx setup couldn't install/alter some tables inside the selected database
If I have a look to the DB, I see that the installer created 46 tables. After that, if I try to connect to the site, it takes me back to the installer...
Please note that I completely deleted all DB before installing modx.
Please replace the setup.sql file with the one attached to this bug report in the tabs above.
All I did was make the spacing consistent. There were a few instances of spaces around the equal sign, and some double spaces in the SQL queries. I've seen double spaces cause odd problems in the past, and the first instance of the space around the equal sign was right above line 67 with the table type declaration.
Hopefully this will bring this to a resolution!
I have downloaded the latest version here :
http://modxcms.com/forums/index.php/topic,1207.0.html
Luckily, a google search with
"MODx setup couldn't install/alter some tables inside the selected database."
lead me here and allowed me to get the attachment.
Problem is : attachment is not changing anything. I triple checked. FYI I am running Windows XP SP1 with EasyPHP 1.8.
When I tried to run setup.sql manually from phpMyAdmin, I got the same error message Philippe got (1064 - Syntax error next to 'CREATE TABLE IF NOT EXISTS.... at line 67).
See http://modxcms.com/forums/index.php/topic,1233.msg8381.html#msg8381
At home
OS : Ubuntu Hoary
PHP : 4.3.10-10ubuntu4.1
MySQL :
Cient API : 3.23.56
Apache : 2.0.53
MySQL : 4.1.10a-Debian_2-log
Laptop
OS : Ubuntu Breezy
PHP : 5.05-2ubuntu1
MySQL : 4.1.12-debian_1ubuntu3-log
Client API : 4.0.24
Apache : 2.0.54
He solved the problem by removing all the ALTER declaration in the sql file (he was doing a fresh install).
See : http://modxcms.com/forums/index.php/topic,1292.msg8913.html#msg8913
I had the same problem today, installing the last modx release.
My solution was to remove all COMMENT clausole in the setup.sql script under install directory.
If you need the file, I can send it to you.
Also, no ALTER statements should be executed during a fresh install, so I do not understand how that be related to this problem.
Removing all ALTER things resolved the problem for me too... I guess there might be a problem with the detection of new or old version ?
Susan has nailed it and here is the fix :
http://modxcms.com/forums/index.php/topic,1292.msg10954.html#msg10954
This is a temporary fix and she rewrite the lines involved using mysql_errno instead
see http://modxcms.com/forums/index.php/topic,1292.msg11065.html#msg11065