• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
blank pages on web server but working fine on localhost !?!

#1
[eluser]Mowgli[/eluser]
Hello,

I just got into something i can't figure out by myself. I created a simple blog and everything works just fine when testing on localhost.

The weird problem appeared when i uploaded the website on a paid server (justhost).
Basically once logged in, the only page i can access while still logged in is admin's area. If i click on something else the sessions is apparently being destroyed and i get blank pages on a few pages. I also get blank page if i click logout (i suppose that's because the session was already destroyed ???). When i click logout, a function within the default controller is being called to destroy the session and redirect me to the index page. The thing is i'm not redirected at all. I simply end up with a completely blank page.

Any help would be appreciated. Thanks in advance.

#2
[eluser]Mowgli[/eluser]
[quote author="Mowgli" date="1311172678"]Hello,

I just got into something i can't figure out by myself. I created a simple blog and everything works just fine when testing on localhost.

The weird problem appeared when i uploaded the website on a paid server (justhost).
Basically once logged in, the only page i can access while still logged in is admin's area. If i click on something else the sessions is apparently being destroyed and i get blank pages on a few pages. I also get blank page if i click logout (i suppose that's because the session was already destroyed ???). When i click logout, a function within the default controller is being called to destroy the session and redirect me to the index page. The thing is i'm not redirected at all. I simply end up with a completely blank page.

Any help would be appreciated. Thanks in advance.[/quote]

Never mind, i figured out, i had to turn on error reporting (error_reporting(E_ALL)Wink
The problem was that i added ?> at the end of a helper i created :|


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.