CodeIgniter Forums
No output on live machine - 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: No output on live machine (/showthread.php?tid=40459)



No output on live machine - El Forum - 04-09-2011

[eluser]jochemvn[/eluser]
I have the following problem. My website doesn't show any output on my live website. I develop local and it's no problem.
However when I upload it to my server I get a blank page. If I view the source in the browser... everything is there!!??!!? How is this possible??


No output on live machine - El Forum - 04-09-2011

[eluser]Atharva[/eluser]
Check for empty spaces before <? and after ?> in your controller


No output on live machine - El Forum - 04-09-2011

[eluser]jochemvn[/eluser]
no that's not it. that's what one would suspect. but then when i would view the source, that would be empty wouldn't it?


No output on live machine - El Forum - 04-09-2011

[eluser]InsiteFX[/eluser]
Also check to see what version of PHP your server is running!

Check .htaccess file

InsiteFX


No output on live machine - El Forum - 04-09-2011

[eluser]jochemvn[/eluser]
tried it both with and without .htaccess file. same result.

both servers are running 5.3.5, so that's not it either....

Sad


No output on live machine - El Forum - 04-09-2011

[eluser]pickupman[/eluser]
[quote author="jochemvn" date="1302365311"]I have the following problem. My website doesn't show any output on my live website. I develop local and it's no problem.
However when I upload it to my server I get a blank page. If I view the source in the browser... everything is there!!??!!? How is this possible??[/quote]

Are you saying you are able to see the proper html source in your browser in the live site? If so, I would look at Firebug(FF), or Web Developer Tools(Chrome) and see if you have some weird css rule hiding everything.

If you can see the proper html source only on the live site, and are using CI 2.0 (Reactor) try setting the ENVIRONMENT variable in index.php to 'testing', and see if you have some PHP errors. When you get no source in the browser, error reporting is probably set to off.

Sometimes the PHP errors come up when you have developed on a Windows machine were filename case doesn't matter, upload to a *nix environment which is case sensitive. Then proper file can not be loaded since it is looking for library.php instead of Library.php

Also check your server error logs.


No output on live machine - El Forum - 04-09-2011

[eluser]InsiteFX[/eluser]
Also check to see all your files were saved with the BOM

InsiteFX


No output on live machine - El Forum - 04-09-2011

[eluser]pickupman[/eluser]
Also check trailing spaces after a closing php tag before hardest are sent. Again this type of error may work in a development setting but not on a live sever for security reasons.