Hosting Platform: IMP (IIS 6, MySQL 5.0.45, PHP 5.2.4) running MODx 0.9.6
IIS Configured to use PHP via ISAPI, with MODx running in a virtual directory inside a PHP Enabled Site.
I have just registered over at fly spray but I am wondering if this is a bug, or just a configuration error first off before I submit it there.
Basically what happens is that if I login into a site and then go to http://domain/modx it returns an error when trying to add my username into the active user database. If however I go to
http://domain/modx/index.php?id=1 this does not occur, only if http://domain/modx or
http://domain/modx/index.php are called.
Same thing happens when I click on home before I applied the work around below.
The error - I can’t get the exact error now but its the same as this one that I found during a google search of the site, even if its not in English for the rest of the thread.
Execution of a query to the database failed - Incorrect integer value: ’NULL’ for column ’id’ at row 1 ≫
SQL: REPLACE INTO `modx`.`modx_active_users` (internalKey, username, lasthit, action, id, ip) values(-4, ’testuser’, ’1182298302’, ’998’, ’NULL’, ’192.168.1.203’)
This query only fails when its called from a page where no ID exists, thus generating a NULL field.
However if I go into the database itself, there are several null values allowed, the table itself allows null values and I can manually set this to null if I so choose.
I have done a temporary workaround - by setting the default document for the site to be index.php?id=1 in IIS.