• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with white screen

#1
[eluser]hanji[/eluser]
Hello All

I recently got asked to do some development for a friend's CodeIgniter application. I thought I would get working locally first, and I'm running into some problems. Basically white screen when trying to access the site.

Version of CI is 2.0.2
Version of PHP in my development environment: php-5.3.15
Version of PHP in the production environment: php-5.2.17

Initially, I thought it was a syntax error and the message was being suppressed. In my apache vhost, I made sure the following values were set:

Code:
php_admin_value safe_mode Off
php_admin_value display_errors On
php_admin_value error_reporting  E_ALL

I also have the following value set in the config.php:
Code:
$config['log_threshold'] = 4;

This does log, but no info about any errors:
Code:
DEBUG - 2012-10-01 19:29:22 --> Config Class Initialized
DEBUG - 2012-10-01 19:29:22 --> Hooks Class Initialized
DEBUG - 2012-10-01 19:29:22 --> Utf8 Class Initialized
DEBUG - 2012-10-01 19:29:22 --> UTF-8 Support Enabled
DEBUG - 2012-10-01 19:29:22 --> URI Class Initialized
DEBUG - 2012-10-01 19:29:22 --> Router Class Initialized
DEBUG - 2012-10-01 19:29:22 --> No URI present. Default controller set.
DEBUG - 2012-10-01 19:29:22 --> Output Class Initialized
DEBUG - 2012-10-01 19:29:22 --> Security Class Initialized
DEBUG - 2012-10-01 19:29:22 --> Input Class Initialized
DEBUG - 2012-10-01 19:29:22 --> Global POST and COOKIE data sanitized
DEBUG - 2012-10-01 19:29:22 --> Language Class Initialized
DEBUG - 2012-10-01 19:29:22 --> Loader Class Initialized
DEBUG - 2012-10-01 19:29:22 --> Helper loaded: url_helper
DEBUG - 2012-10-01 19:29:22 --> Database Driver Class Initialized

Nothing is being reported in the error_log.

Adding breakpoints in the code, the problem starts approximately on line 287 of CodeIgniter.php.
Code:
$CI = new $class();

I can echo a value before that, but not after. The $class value is 'welcome'.

This works perfectly in the production environment, so I'm hoping it's something simple like a PHP directive of some sort or config change. I've seen some mention of issues going from 5.2 to 5.3 in PHP, but mainly with URI chars. Seems like my problem could be before that.

Thanks for your help!
hanji

#2
[eluser]hanji[/eluser]
I found the problem. I do not have mysqli built into my PHP. I don't understand why this doesn't throw a horrible error! I changed the dbdriver to mysql and it's working. I'll rebuild php with mysqli and see if that truly resolves the problem.

Thanks!
hanji

#3
[eluser]hanji[/eluser]
I tried to update the original post with [SOLVED], but the forum won't allow it (suspecting any of my edits as spam).. weird.

h


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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