Welcome Guest, Not a member yet? Register   Sign In
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


Messages In This Thread
Help with white screen - by El Forum - 10-01-2012, 10:06 PM
Help with white screen - by El Forum - 10-02-2012, 06:19 AM
Help with white screen - by El Forum - 10-02-2012, 06:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB