Welcome Guest, Not a member yet? Register   Sign In
Premature end of script headers
#1

[eluser]SeasonedCoder[/eluser]
Whenever I execute this controller:

Code:
function index()
{
   $data = array ();
   $data['title'] = 'Malls';
   $data['body_id'] = 'malls';
   $this->load->view('malls/index', $data);
}

I get 500 Internal Server Error. I looked up the message:

Code:
[Mon May 18 07:05:52 2009] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers:
/path/to/folder/cgi-bin/php-cgi

Now, if I comment the last line in the body:

Code:
function index()
{
   $data = array ();
   $data['title'] = 'Malls';
   $data['body_id'] = 'malls';
   //$this->load->view('malls/index', $data);
}

the page loads ok (of course, it's blank)

I have been struggling with the issue for a couple of hours now. But still cannot find a solution.

Any ideas on how to fix it are highly appreciated.


Messages In This Thread
Premature end of script headers - by El Forum - 05-18-2009, 06:48 AM
Premature end of script headers - by El Forum - 05-18-2009, 07:02 AM
Premature end of script headers - by El Forum - 05-18-2009, 07:07 AM
Premature end of script headers - by El Forum - 05-18-2009, 07:11 AM
Premature end of script headers - by El Forum - 05-18-2009, 07:13 AM
Premature end of script headers - by El Forum - 05-18-2009, 07:18 AM
Premature end of script headers - by El Forum - 05-18-2009, 07:22 AM
Premature end of script headers - by El Forum - 05-18-2009, 06:52 PM
Premature end of script headers - by El Forum - 05-19-2009, 06:48 AM
Premature end of script headers - by El Forum - 05-19-2009, 07:06 AM
Premature end of script headers - by El Forum - 05-19-2009, 07:09 AM
Premature end of script headers - by El Forum - 05-19-2009, 07:18 AM
Premature end of script headers - by El Forum - 05-19-2009, 07:22 AM
Premature end of script headers - by El Forum - 05-19-2009, 07:29 AM
Premature end of script headers - by El Forum - 05-22-2009, 11:33 PM



Theme © iAndrew 2016 - Forum software by © MyBB