CodeIgniter Forums
Copy codeiniter app to live server gives blank screen - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Copy codeiniter app to live server gives blank screen (/showthread.php?tid=12650)



Copy codeiniter app to live server gives blank screen - El Forum - 10-26-2008

[eluser]Fabdrol[/eluser]
Hi all..

I've got a really strange problem. I created a application on my local server. Everything worked fine, until I uploaded it to the extern server. Nothing works, I get a blank screen, no (html) output at all. It doesn't matter if I try to reach one of my controllers, nothing works.

I checked the config, it's all set. Then I uploaded a fresh, untouched installation of CI and that is working great.
Some links that might help:

my app: http://193.43.92.236/~stjozef/index.php
some controller in my app: http://193.43.92.236/~stjozef/index.php/inhoud/
my control CI setup: http://193.43.92.236/~stjozef/codeigniter/
some control CI controller: http://193.43.92.236/~stjozef/codeigniter/index.php/test/
phpinfo file: http://193.43.92.236/~stjozef/phpinfo.php

I hope somebody knows a solution!!
thanks,

Fabian


Copy codeiniter app to live server gives blank screen - El Forum - 10-26-2008

[eluser]Fabdrol[/eluser]
Update
I tackled the problem by copying all controllers, models and views into the fresh install of CodeIgniter.
It is a solution for this particulary problem; but it the problem still exists: when I copy a CI app, it gets broken!

- Fabian


Copy codeiniter app to live server gives blank screen - El Forum - 10-26-2008

[eluser]Colin Williams[/eluser]
My bet is that your config/database.php file doesn't contain the proper connection settings for your live server.


Copy codeiniter app to live server gives blank screen - El Forum - 10-27-2008

[eluser]Fabdrol[/eluser]
well, no. All config, including database config, are set allright..
And besides; if so CI would give a database connection error!

I think the problem is caused by something with the url. The 'solution' in my second post stopped working when the host got the domain working! (the ip adress is a temporary way to access the webspace) any ideas? And I wondered if i'm the only CI user experiencing these problems?

Thanks,
Fabian


Copy codeiniter app to live server gives blank screen - El Forum - 10-27-2008

[eluser]bapobap[/eluser]
What log level are you using?

Make sure the log directory in system is CHMOD'd to 777 (I think it's 777). I've had the same problem when CI can't write to the log directory.


Copy codeiniter app to live server gives blank screen - El Forum - 10-27-2008

[eluser]Fabdrol[/eluser]
Update
I installed another new version of CI. copy'd al controllers. views, config etc and it didn't work. (It did work in fresh mode, with welcome controller)
Then I chmodded the logs folder to 777.. now it gives some output, some weird error..: www.daltonlemmer.nl

I really don't get CI.. maybe it isn't that perfect after all?


Copy codeiniter app to live server gives blank screen - El Forum - 10-27-2008

[eluser]bapobap[/eluser]
You must have it set to load a plugin that isn't there, maybe you forgot to copy it across?

I'm pretty sure the blank screen problem was solved by the CHMOD'ing so just a matter of making sure everything is there, maybe you forgot a few files when you were troubleshooting?


Copy codeiniter app to live server gives blank screen - El Forum - 10-27-2008

[eluser]Fabdrol[/eluser]
I can't imagine.. I didn't copy files, I just copy'd the contents..
But I'll give it another look..

but it is still strange, everytime I copy CI app, I need to upload an entire fresh framework to make it work.. that's no way to live, is it?


Copy codeiniter app to live server gives blank screen - El Forum - 10-27-2008

[eluser]bapobap[/eluser]
I'm not sure why that is really, I can't see any reason for it. I think as long as you have your configuration files set properly, have CHMOD'd the right directories and make sure you aren't loading libraries/plugins etc that don't exist, you should be good to go.


Copy codeiniter app to live server gives blank screen - El Forum - 10-27-2008

[eluser]Colin Williams[/eluser]
The only problem is that you are unaware of the slight differences between your development server and your local server. It could be a number of things: PHP version, PHP configuration, Apache version, Apache configuration, etc. I routinely take CI apps from my local development environment to live environments. I hope you find whatever details are different.