[eluser]davidfkane[/eluser]
Hi All,
This is my first post, so sorry it's a bug report. C.I. is really great, but I am having a problem. I have done my best to isolate the cause.
::The Problem::
I am developing a simple CRUD application on CI. The application worked fine on windows 7, but not on my current Linux setup. Pages that load models (encapsulating DB entities), give blank pages or a 500 server error. Try as I might, I can't get any kind of informative error message, either through PHP or in any log files.
::The Set-up::
I was running Ubuntu 10.4
(and having the same problem after upgrade to 11.4)
PHP 5.3.3
MySQL 5.1.49
Apache 2.2.
- generous permissions in the CI directory tree
(chmod -R 777 *)
::What I Have Figured Out So Far::
Right at the bottom of the
/system/database/DB.php file is the line of code that seems to be causing all the problems.
it is:
Code:
if ($DB->autoinit == TRUE)
{
// print() something here and it can be seen
$DB->initialize();
// but print() something here and it is not seen (!)
}
In fact, the particular line that causes the trouble is
My DB settings are in order. They are:
Code:
$active_group = 'default';
$active_record = FALSE;
$db['default']['hostname'] = "localhost";
$db['default']['username'] = "root";
$db['default']['password'] = "dkanepass";
$db['default']['database'] = "mylibrarydb";
$db['default']['dbdriver'] = "mysql";
$db['default']['dbprefix'] = "";
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = "";
$db['default']['char_set'] = "utf8";
$db['default']['dbcollat'] = "utf8_general_ci";
I am finding it so hard to trace the error beyond this initialize() function. Any help would be greatly appreciated.
Thanks,
David