cmsmadesimple-1.2.2 and SQLite
Posted: Wed Dec 12, 2007 12:00 am
Hello, I'm a newbie in CMS Made Simple.
I'm installing CMS v1.2.2 using SQLite (linux server running XAMPP / PHP5).
1st problem : After install when I try to connect I hit a 404 error .... because I didn't specify an absolute path as dbname for my SQLite db. I suggest a (specific) message will be displayed when a SQLite DB is choose [solved]
2nd Problem: I hit a php warning "Warning: sqlite_create_function() expects parameter 1 to be resource, null given in /my_site/lib/adodb.functions.php on line 80". I solved the problem by modifying the adodb.functions.php file on line ...80
// ::: Change this
// sqlite_create_function($config['use_adodb_lite'] ? $db->connectionId : $db->_connectionID, 'now', 'time', 0);
// ::: by
sqlite_create_function($config['use_adodb_lite'] ? $dbinstance->connectionId : $dbinstance->_connectionID, 'now', 'time', 0);
// ::: End change
Now it works [solved] too.
I'm not sure this topics sits at the right place... feel free to move it on a better location if needed.
I'm installing CMS v1.2.2 using SQLite (linux server running XAMPP / PHP5).
1st problem : After install when I try to connect I hit a 404 error .... because I didn't specify an absolute path as dbname for my SQLite db. I suggest a (specific) message will be displayed when a SQLite DB is choose [solved]
2nd Problem: I hit a php warning "Warning: sqlite_create_function() expects parameter 1 to be resource, null given in /my_site/lib/adodb.functions.php on line 80". I solved the problem by modifying the adodb.functions.php file on line ...80
// ::: Change this
// sqlite_create_function($config['use_adodb_lite'] ? $db->connectionId : $db->_connectionID, 'now', 'time', 0);
// ::: by
sqlite_create_function($config['use_adodb_lite'] ? $dbinstance->connectionId : $dbinstance->_connectionID, 'now', 'time', 0);
// ::: End change
Now it works [solved] too.
I'm not sure this topics sits at the right place... feel free to move it on a better location if needed.