Welcome Guest, Not a member yet? Register   Sign In
Copy codeiniter app to live server gives blank screen
#1

[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/codeignite....php/test/
phpinfo file: http://193.43.92.236/~stjozef/phpinfo.php

I hope somebody knows a solution!!
thanks,

Fabian
#2

[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
#3

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

[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
#5

[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.
#6

[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?
#7

[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?
#8

[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?
#9

[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.
#10

[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.




Theme © iAndrew 2016 - Forum software by © MyBB