• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[resolved] help please: blank output after "Database Driver Class Initialized"

#1
[eluser]jonw[/eluser]
Hi folks,
Sorry for the lame problem but I'm looking at a blank browser window for every URL in my app with no idea how to progress.

I have PHP error logging & display enabled, error_reporting(E_ALL) in my index.php, $config['log_threshold'] = 3 set in the config, it's writing application logs OK and here's the output from one request;

DEBUG - 2008-09-06 15:37:55 --> Config Class Initialized
DEBUG - 2008-09-06 15:37:55 --> Hooks Class Initialized
DEBUG - 2008-09-06 15:37:55 --> URI Class Initialized
DEBUG - 2008-09-06 15:37:55 --> No URI present. Default controller set.
DEBUG - 2008-09-06 15:37:55 --> Router Class Initialized
DEBUG - 2008-09-06 15:37:55 --> Output Class Initialized
DEBUG - 2008-09-06 15:37:55 --> Input Class Initialized
DEBUG - 2008-09-06 15:37:55 --> Global POST and COOKIE data sanitized
DEBUG - 2008-09-06 15:37:55 --> Language Class Initialized
DEBUG - 2008-09-06 15:37:55 --> Loader Class Initialized
DEBUG - 2008-09-06 15:37:55 --> Config file loaded: config/authconfig.php
DEBUG - 2008-09-06 15:37:55 --> Helpers loaded: array, form, auth, url
DEBUG - 2008-09-06 15:37:55 --> Database Driver Class Initialized

... and that's all. What's annoying is I am tail -f 'ing the MySQL, Apache & CI error logs and I see no errors anywhere. How can I see the problem?

Some background info, I am currently trying to port an app I built in CI 151 to 163 on a new machine. Rather than trying to follow the ugrade instructions through alllll the versions I'm trying to port my old config, etc. options across piecemeal to a clean 163 install (bad idea?). What's stopping execution here is;
$autoload['libraries'] = array('database', 'Authlib');

As soon as I load either or both libraries the app dies.

#2
[eluser]jonw[/eluser]
Well am over one hurdle, PHP did not have MySQL support (currently, installing PHP on FreeBSD 7 RELEASE is not fun, so I overlooked this). I was wondering why the call to mysql_connect() in system/database/drivers/mysql.php has errors suppressed?

Changing function db_connect() to;

Code:
function db_connect()
{
  if ( ! function_exists( 'mysql_connect' ) )
  {
    log_message('error', 'mysql_connect() does not exist - PHP compiled without MySQL support?');
  }
  else
  {
    return @mysql_connect($this->hostname, $this->username, $this->password, TRUE);
  }
}

... would not only have alerted me to the fact, but also the script would have continued execution and then the "A Database Error Occurred Unable to connect to your database server using the provided settings." message would have appeared in the browser window, adding more clues.

#3
[eluser]jonw[/eluser]
Right, well after more digging there seems to be some incompatibility between Db_Session as used by "auth" ( http://codeigniter.com/wiki/auth/ ) and the later versions of codeigniter. So am gonna drop "auth" and go with some other authentication library. CI really could do with a working authentication system bundled with it, IMO.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.