CodeIgniter Forums
server error 500 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: server error 500 (/showthread.php?tid=71789)



server error 500 - richb201 - 09-24-2018

Well CI is shoving a slew of html data into my buffer (before I add my stuff to to it) and it is causing the server to go crazy and give a server 500 error. It was a bear to find this, but now that I know the problem, how do I solve it? I am using XMLHttp to do this communication but I am wondering if that is the problem? Is there some way I can view the output buffer before it goes out from the output command? 

Any ideas of what to do?


RE: server error 500 - Gurutechnolabs - 09-27-2018

There is a problem in your .htaccess file check it


RE: server error 500 - richb201 - 09-27-2018

Thanks. I am trying to get Wireshark setup to decrypt my SSL so I can see what is wrong with the headers. I'll let you guys know if it is a CI bug.


RE: server error 500 - InsiteFX - 09-27-2018

It's not a CI bug that's for sure.


RE: server error 500 - richb201 - 09-27-2018

I agree with you! At some point the apache is going into an error state. I have wireshark on it trying to see what is the last thing that happens before it goes that way.


RE: server error 500 - richb201 - 09-29-2018

OK. Finally made some progress. I am debugging on the remote server with phpStorm. In index.php there is a line:

$system_path = 'system';

When I look at system (under the debugger) it is pointing at c:\xmapp\htdocs\sub_crud\system. Shouldn't this be pointing at a location on the remote server? a few lines down I see

$system_path = $_temp.DIRECTORY_SEPARATOR; which is c:\xampp\htdocs\sub_crud\system

a few lines below that I see that BASEPATH is getting defined as $system_path.

So the bottom line is that my code on the remote server is trying to use the system on my local hard drive. How do I fix this? 

I modified $system_path='\opt\bitnami\apache2\htdocs\sub_crud\system';

but now I get
PHP Code:
    if ( ! is_dir($system_path))
    {
        
header('HTTP/1.1 503 Service Unavailable.'TRUE503);
        echo 
'Your system folder path does not appear to be set correctly. Please open the following file and correct this: '.pathinfo(__FILE__PATHINFO_BASENAME);
        exit(
3); // EXIT_CONFIG
    




RE: server error 500 - richb201 - 10-04-2018

Well, I think I might have found the problem. Seems that there was an Apache bug where "junk" was being written into stdout.

http://svn.apache.org/viewvc?view=revision&revision=1621602

I am running Apache 2.4.33. I wonder if this was ever patched on my version? How can I determine if this is the actual problem?

This guys problem seems pretty much like mine.

https://serverfault.com/questions/650309/random-html-and-cookie-value-gets-appended-to-apache-proxy-fcgi-error-message