Welcome Guest, Not a member yet? Register   Sign In
Problem with Database Library
#1

[eluser]Einspruch[/eluser]
This has been mentioned in other posts yet without much conclusion. When I update the autoload config file to include the database library, i.e.,

Code:
$autoload['libraries'] = array('database');

, the page goes blank. It is only when this library is loaded. Please help!!! :-)
#2

[eluser]pistolPete[/eluser]
[quote author="Einspruch" date="1235884624"]...the page goes blank.[/quote]
Enable error_reporting in your index.php, then you'll see the error messages.
You probably did not configure your database correctly.

Btw: This is the wrong forum, Code and Application Development would be the appropriate one.
#3

[eluser]Einspruch[/eluser]
Does this shed some light on the problem?

Quote:Strict Standards: Assigning the return value of new by reference is deprecated in /home/www/CI/system/codeigniter/Common.php on line 130

Strict Standards: Assigning the return value of new by reference is deprecated in /home/www/CI/system/codeigniter/Common.php on line 136

Thanks!
#4

[eluser]pistolPete[/eluser]
No, these are just warnings.

What PHP and CI version are you using?
Please post your database configuration (remove confidential data first).

Do any of your controllers work?
#5

[eluser]Einspruch[/eluser]
Those warnings were a result of an another error ( I added E_STRICT and then learned it was deprecated). Here are the fun details of my database.php config:

Code:
$active_group = "default";
$active_record = TRUE;

$db['default']['hostname'] = "localhost";
$db['default']['username'] = "XXXXXXX";
$db['default']['password'] = "XXXXXXX";
$db['default']['database'] = "digital";
$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";

Thanks!




Theme © iAndrew 2016 - Forum software by © MyBB