Welcome Guest, Not a member yet? Register   Sign In
500 Internal Server Error because of a line of code in system/core/CodeIgniter.php
#13

[eluser]TheFuzzy0ne[/eluser]
I think that's your answer. The only output is what you've echoed, and the error appears immediately after.

It seems pretty pointless to me echoing a message and redirecting. Redirecting uses headers, so it's important not to output any data before sending the headers, because they can't be set once your output has been sent.

Your code is telling the browser to redirect, so that's what I'd expect to happen. What were you expecting to happen?

If you really want to display a message to the user, it would make more sense doing it by displaying a view, and setting a meta redirect.


Messages In This Thread
500 Internal Server Error because of a line of code in system/core/CodeIgniter.php - by El Forum - 03-13-2013, 03:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB