Welcome Guest, Not a member yet? Register   Sign In
Blank page and endless loop when uploaded to web server (solved)
#1

[eluser]mecharius[/eluser]
Hi guys,
I've been using CI for a while now and I think I'm getting the hang of it. First post here though!

I've been developing an app on my local PC and it works perfectly (latest version of XAMPP). I've also recently changed PCs and copied everything across and it seems to work perfectly on the machine as well. However when I upload my app to my web server I encounter the blank screen that a number of forum posts have talked about - nothing displays, no source code when you view source. Some controllers work, and it can access the database as the error only occurs after a user logs on and goes to the database.

I've tried quite a few things after looking around the forum posts - checked the mySQL installation and PHP version (other non-CI apps using mySQL work), checked for empty or missing source links, etc. etc. etc.

After placing debugging notes in my code I can see that there is an endless loop occurring in the CI execution... see below:

Code:
ERROR - 2007-12-08 11:18:21 --> *** User Admin has logged in ***
DEBUG - 2007-12-08 11:18:22 --> Config Class Initialized
DEBUG - 2007-12-08 11:18:22 --> Hooks Class Initialized
DEBUG - 2007-12-08 11:18:22 --> Router Class Initialized
DEBUG - 2007-12-08 11:18:22 --> Output Class Initialized
DEBUG - 2007-12-08 11:18:22 --> Input Class Initialized
DEBUG - 2007-12-08 11:18:22 --> XSS Filtering completed
DEBUG - 2007-12-08 11:18:22 --> Global POST and COOKIE data sanitized
DEBUG - 2007-12-08 11:18:22 --> URI Class Initialized
DEBUG - 2007-12-08 11:18:22 --> Language Class Initialized
DEBUG - 2007-12-08 11:18:22 --> Loader Class Initialized
DEBUG - 2007-12-08 11:18:22 --> Database Driver Class Initialized
DEBUG - 2007-12-08 11:18:22 --> Session Class Initialized
DEBUG - 2007-12-08 11:18:22 --> Encrypt Class Initialized
DEBUG - 2007-12-08 11:18:22 --> Controller Class Initialized
DEBUG - 2007-12-08 11:18:22 --> Helpers loaded: url
DEBUG - 2007-12-08 11:18:22 --> Helpers loaded: form
DEBUG - 2007-12-08 11:18:22 --> Table Class Initialized
DEBUG - 2007-12-08 11:18:22 --> Model Class Initialized
DEBUG - 2007-12-08 11:18:22 --> Model Class Initialized
DEBUG - 2007-12-08 11:18:22 --> Model Class Initialized
DEBUG - 2007-12-08 11:18:22 --> Model Class Initialized
ERROR - 2007-12-08 11:18:22 --> **** Teams controller loaded *****
ERROR - 2007-12-08 11:18:22 --> **** Teams --> INDEX loaded *****
ERROR - 2007-12-08 11:18:22 --> **** 1 *****
ERROR - 2007-12-08 11:18:22 --> **** 2 *****
ERROR - 2007-12-08 11:18:22 --> **** Teams --> VIEW start loading *****
ERROR - 2007-12-08 11:18:22 --> **** 101 *****
ERROR - 2007-12-08 11:18:22 --> **** 102 *****
ERROR - 2007-12-08 11:18:22 --> **** Teams --> VIEW start loading *****
ERROR - 2007-12-08 11:18:22 --> **** 101 *****
ERROR - 2007-12-08 11:18:22 --> **** 102 *****

Note the lines after Teams --> VIEW start loading repeat endlessly for about 1.8MB! Also not sure why the view function of team controller is being called here as I've asked for the index function!

I can't seem to tie this down to a single line because if I delete the line below #2, the same errors occurs but at debug line #3 and so on. It does work when I comment out everything and replace with a simple echo statement.

Does anybody have any ideas on what could be causing this?

Code:
function index()
    {
        log_message('ERROR', '**** Teams --> INDEX loaded *****');
        
        // start benchmarking
        $this->benchmark->mark('process_start');
        
        // get the standard headers and footers, etc.
        $config['submenu_data'] = array('draw' => TRUE, 'type' => 'configure_team');
        log_message('ERROR', '**** 1 *****');
        $config['mainmenu_data'] = array('draw' => TRUE, 'type' => 'system');
        log_message('ERROR', '**** 2 *****');
        $data['header'] = $this->load->view('standard/header_view',$config, TRUE);
        log_message('ERROR', '**** 3 *****');
        $data['mainmenu'] = $this->load->view('standard/mainmenu_view',$config, TRUE);
        log_message('ERROR', '**** 4 *****');
        $data['submenu'] = $this->load->view('standard/submenu_view',$config, TRUE);
        log_message('ERROR', '**** 5 *****');
        $data['login'] = $this->load->view('standard/login_view',$config, TRUE);
        log_message('ERROR', '**** 6 *****');
        $data['sidebar'] = $this->load->view('standard/sidebar_view',$config, TRUE);
        log_message('ERROR', '**** 7 *****');
        
        // get the team list
        $config['team_list'] = $this->MTeams->getTeams(NULL);
        $data['content'] = $this->load->view('teams/teamlist_view',$config, TRUE);

        // get the benchmark time
        $this->benchmark->mark('process_end');
        $config['elapsed_time'] = $this->benchmark->elapsed_time('process_start','process_end');
        $data['footer'] = $this->load->view('standard/footer_view',$config, TRUE);

        // display the page
        $this->load->view('page_view',$data);
        
        log_message('ERROR', '**** End of Team->Index *****');
    }

(The models are all loaded in the controller's constructor.)


Thanks,
Mech


Messages In This Thread
Blank page and endless loop when uploaded to web server (solved) - by El Forum - 12-08-2007, 10:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB