I have an application that posts data to a php script through jquery's ajax post function. This script validates the data and returns predefined error messages if the data is incorrect which the application parses into a readable form for the client.
The issue is that ajax posts the data just fine to the script, because invalid data is successfully converted into error messages and sent back to the application for parsing. However, when I enter the correct data the script sends back a 500 response error.
The most puzzling part is that on PHP 5.3.8 (my test server) the application works just fine. However, on my clients server (PHP 5.0) the aforementioned error manifests. I am completely lost here. I have tried trapping the post errors with .error but I am not really sure how exactly I am supposed to extract anything meaningful out of this response code.