Welcome Guest, Not a member yet? Register   Sign In
BLANK PAGE on client's work network only (CI Log file in this post)
#1

[eluser]ray023[/eluser]
10/12/2010 EDIT: The problem for this issue was using the redirect refresh option instead of redirect location in the URL helper. See this post for more info.

I have my site uploaded to my .COM. It loads beautifully at home and on my work network.

However, on my client's network, he gets a blank page.

I got it on my laptop and he gets it on his.

I had a similar problem before that I fixed by clearing the Internet Cache...but that has not worked this time.

Here is CI's log file:
Quote:DEBUG - 2010-10-07 18:17:07 --> Config Class Initialized
DEBUG - 2010-10-07 18:17:07 --> Hooks Class Initialized
DEBUG - 2010-10-07 18:17:07 --> URI Class Initialized
DEBUG - 2010-10-07 18:17:07 --> No URI present. Default controller set.
DEBUG - 2010-10-07 18:17:07 --> Router Class Initialized
DEBUG - 2010-10-07 18:17:07 --> Output Class Initialized
DEBUG - 2010-10-07 18:17:07 --> Input Class Initialized
DEBUG - 2010-10-07 18:17:07 --> XSS Filtering completed
DEBUG - 2010-10-07 18:17:07 --> Global POST and COOKIE data sanitized
DEBUG - 2010-10-07 18:17:07 --> Language Class Initialized
DEBUG - 2010-10-07 18:17:07 --> Loader Class Initialized
DEBUG - 2010-10-07 18:17:07 --> Helper loaded: ion_auth_helper
DEBUG - 2010-10-07 18:17:07 --> Helper loaded: url_helper
DEBUG - 2010-10-07 18:17:07 --> Helper loaded: array_helper
DEBUG - 2010-10-07 18:17:07 --> Helper loaded: html_helper
DEBUG - 2010-10-07 18:17:07 --> Database Driver Class Initialized
DEBUG - 2010-10-07 18:17:07 --> Session Class Initialized
DEBUG - 2010-10-07 18:17:07 --> Helper loaded: string_helper
DEBUG - 2010-10-07 18:17:07 --> Session routines successfully run
DEBUG - 2010-10-07 18:17:07 --> Config file loaded: config/ion_auth.php
DEBUG - 2010-10-07 18:17:07 --> Email Class Initialized
DEBUG - 2010-10-07 18:17:07 --> Session class already loaded. Second attempt ignored.
DEBUG - 2010-10-07 18:17:07 --> Language file loaded: language/english/ion_auth_lang.php
DEBUG - 2010-10-07 18:17:07 --> Model Class Initialized
DEBUG - 2010-10-07 18:17:07 --> Helper loaded: cookie_helper
DEBUG - 2010-10-07 18:17:07 --> Helper loaded: date_helper
DEBUG - 2010-10-07 18:17:07 --> Session class already loaded. Second attempt ignored.
DEBUG - 2010-10-07 18:17:07 --> Controller Class Initialized

Any thoughts?
#2

[eluser]ray023[/eluser]
I *think* I found the problem.

The user could not go directly to the main page, but could go to my login page.

I implemented ion_auth and I have a master controller (MY_Controller) that authenticates the user and, if not logged in, redirects them to the login page.

The app was initializing fine, but would freeze when it came time to redirect.

When I was first working with ion_auth, I created my own helper for it. This meant that I put a blank helper in the CI code, called it ion_auth and then created a helper in the application/helpers folder and called it MY_ion_auth_helper.php.

I threw some methods in there and then put the helper in autoload.

I then changed my mind and took the methods I was using out of my helpers.

So, I was essentially left with two empty php files: My_ion_auth_helper and ion_auth_helper. I've been meaning to remove them, but haven't yet.

So anyway, although the files were empty, I was still autoloading them in my config file.

I was also autoloading the url helper and the url helper was auto-loading after the ion_auth helper.

Code:
$autoload['helper'] = array('ion_auth','url','array','html');

And I'm guessing that was the issue because the client seems to be working now.

Haven't confirmed it yet though. It's very odd that it would only happen when he went to the url from his work network.

Anyway, I doubt anyone with a blank page issue will have done anything like this, but thought I'd put it out there just in case.




Theme © iAndrew 2016 - Forum software by © MyBB