views:

640

answers:

2

Hi, I've just moved a site across to a production server, and a once working CI installation, now returns a blank screen.

I believe it is due to whitespace, but how are you supposed to find something like that?!!!

Hope someone can help. Thanks in advance. Tom

+4  A: 

Things to check:

  • Inside config.php, make sure your $config['base_url'] is set properly
  • Were you able to copy your .htaccess as well?
  • Do you have the same PHP versions in both machines? If your answer is yes, i'll ask you again: Are you sure?
  • What is the value of your $db['default']['hostname']?
  • Do you have the same database setup in your local and production server? There could be differences with the hostname, username, password and database name

Other things you can do:

  • Set $db['default']['db_debug'] to TRUE
  • Deploy a fresh CodeIgniter installation in your production server and check if you can see something
  • If you still see a blank page, deploy a single PHP file with text in it and tell us what you see
Randell
turns out that the server is running PHP 4 instead of 5. Hopefully the hosting company will update it for me tomorrow. Thanks for replying.
Tisch
+1  A: 

I experienced the same issue and I solved it by setting my log-folder to writable. It seems, that if you turn on logging, and your log-folder on your server is not writable, CodeIgniter just shows you an empty page.

paskster