Welcome Guest, Not a member yet? Register   Sign In
Blank page after controller class initialized
#1

[eluser]Daniel H[/eluser]
Hi all,

I'm having major problems getting my CI app to work with a host that I haven't used with CI before. Below is a dump of the log file created: a blank page is shown after the controller is initialized. Usually I fix this by setting logs and cache to 777 but obviously this hasn't fixed the issue.

Can anyone suggest anything else that might cause this problem?

Thanks,

Dan.



Code:
DEBUG - 2008-10-10 09:56:56 --> Config Class Initialized
DEBUG - 2008-10-10 09:56:56 --> Hooks Class Initialized
DEBUG - 2008-10-10 09:56:56 --> URI Class Initialized
DEBUG - 2008-10-10 09:56:56 --> Router Class Initialized
DEBUG - 2008-10-10 09:56:56 --> Output Class Initialized
DEBUG - 2008-10-10 09:56:57 --> Input Class Initialized
DEBUG - 2008-10-10 09:56:57 --> Global POST and COOKIE data sanitized
DEBUG - 2008-10-10 09:56:57 --> Language Class Initialized
DEBUG - 2008-10-10 09:56:57 --> Loader Class Initialized
DEBUG - 2008-10-10 09:56:57 --> Config file loaded: config/global.php
DEBUG - 2008-10-10 09:56:57 --> Config file loaded: config/auth.php
DEBUG - 2008-10-10 09:56:57 --> Helper loaded: url_helper
DEBUG - 2008-10-10 09:56:57 --> Helper loaded: form_helper
DEBUG - 2008-10-10 09:56:57 --> Database Driver Class Initialized
DEBUG - 2008-10-10 09:56:57 --> Session Class Initialized
DEBUG - 2008-10-10 09:56:57 --> Helper loaded: string_helper
DEBUG - 2008-10-10 09:56:57 --> Session routines successfully run
DEBUG - 2008-10-10 09:56:57 --> Controller Class Initialized
#2

[eluser]Colin Williams[/eluser]
Are you autoloading the database library with bad settings in config/database.php? I just had this problem today, and fixing my database settings did the trick.
#3

[eluser]Daniel H[/eluser]
Yes you're right, but my 'production' settings work fine when used locally (i.e. connecting to the remote sql server). How frustrating - I can't see where the problem is. I wish CI gave a bit more debugging info about the db connection.

Thanks for the pointer.
#4

[eluser]Daniel H[/eluser]
Actually something is odd... the database lib is autoloaded, but the blank page only appears when accessing controllers that load a model and perform some sort of query. Is there any explanation for that?
#5

[eluser]Daniel H[/eluser]
Sorted it out.
#6

[eluser]Colin Williams[/eluser]
Quote:I wish CI gave a bit more debugging info about the db connection.

I didn't hunt far enough to find where it was failing in my case, but it definitely seems like the appropriate thing would be to show the error. And I was working with CI 1.6.1 when I had this problem and solved. Afterward I upgraded to 1.6.3 and don't know if it would've had the same reaction on 1.6.3... that is to say, not sure if it's an unresolved bug or not.




Theme © iAndrew 2016 - Forum software by © MyBB