Welcome Guest, Not a member yet? Register   Sign In
I Keep getting HTTP 500. How do I effectively debug my app?
#2

[eluser]zechdc[/eluser]
This is not the solution. My main question still applies. How do I find out where I have a syntax error when I forget a period or semi-colon? I still get a HTTP 500 if I forget a semi-colon or period.

In the code above, I forgot to put a dot in the following code
Code:
$title .= ' - ' . getDomain();

That was one cause of the HTTP 500 error.

Second cause:
I was using a template method I learned form nettuts CI video series. The code looks like this:

Code:
$data['content'] = 'login_view';
$this->load->view('templates/main', $data);
And the template looks like this
Code:
<?php $this->load->view('includes/header'); ?>
<?php $this->load->view($content); ?>
<?php $this->load->view('includes/footer'); ?>

Apparently that suppresses all php errors and warnings from showing up on screen. So I guess I will just go back to using
Code:
$this->load->view('templates/main');

UPDATE
Feb 14, 2011

Now that I have enabled display_errors in php.ini all errors are being displayed properly, even while using the above template method. My statement about the template suppressing all php errors is inaccurate. It seems to be working find now.


Messages In This Thread
I Keep getting HTTP 500. How do I effectively debug my app? - by El Forum - 02-13-2011, 07:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB