My website suddenly started giving Error 200 on anything AJAX related! The other day my website suddenly started acting weird. When using the Flag module to flag content, i get a 200 error! The content does get flagged once i refresh the page, but when clicking the flag link i get this error below.

When editing any of my Views, and say i click on the THEME INFORMATION link to modify the theme files i get another 200 error (see image).

When trying to open modal forms, same thing. This problem seems to have come out of nowhere overnight, as my site was ok, i went to sleep, next day problems. Now, i get the error on both my own theme (when say flagging content) and also on the Admin theme (Seven) when say editing a View. So i would guess that its related to a module rather than the theme? Anyone have any idea how i can go about figuring out whats causing this? My JS is not good at all so im beat here, been on this for a few days now :(

Any help would be much much appreciated.

When flagging a content:


When editing a View:
You've made a change somewhere that is adding &lt;?php to the beginning of all responses.

In "When editing a View" above, you can see this &lt;?php at the beginning of the response text.  Everything after the &lt;?php is valid JSON and so likely the valid response.

I looked at your home page at http://www.spiritmolecule.com and it also has &lt;?php added to the beginning of the HTML source.  This causes the &lt;STYLE&gt; tag to be ignored. &lt;?php&lt;STYLE TYPE="text/css"&gt; gets interpreted as a single unrecognizable tag and so the CSS statement afterwards is displayed as text on the browser.  

HTTP=200 normally means OK (no errors) which makes sense since it was able to respond, just it has the junk &lt;?php in front.  Of course, in a file processed by PHP, &lt;?php means the file is about to start some PHP code instead of HTML/JSON markup.  Did &lt;?php get added to a file NOT processed by PHP (and so &lt;?php is passed thru as response text)?

Only you can know what you did to get &lt;?php added to the beginning of all responses, HTML or JSON.  Do you recall any other files that you changed before going to sleep?  Since the &lt;?php gets added to many (or all?) responses, it is likely in a common file.

Good luck troubleshooting!