Welcome Guest, Not a member yet? Register   Sign In
500 error from call to XMLHttpRequest()
#1

(This post was last modified: 09-14-2018, 08:14 PM by richb201.)

I am getting a 500 error on the Linux version of my code. The version on my WAMP under windows doesn't have this issue. The LAMP version is a Bitnami  instance running on AWS. I took a look in the error.log and I see:

malformed header from script 'index.php': Bad header: {"0":["{choose}","IOS","Mac","
and 
AH01070: Error parsing script headers

I see that AH01070 is an Apache bug. I am running on AWS LightSail. 

 This is where I set my headers in my CI code:

$this->output
   ->set_content_type('application/json')
   ->set_header("Access-Control-Allow-Origin", "*")
   ->set_output(json_encode($table));


Any ideas? Do I need to move back to Windows?
proof that an old dog can learn new tricks
Reply


Messages In This Thread
500 error from call to XMLHttpRequest() - by richb201 - 09-14-2018, 08:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB