How to fix this issue: Some time AJAX post is responding error message like 500 (Internal server error).
If you get this type of error, then you can try below mention steps for solving their problem.
Step-1 : Use “GET” method instead of “POST” method.
Step-2 : You can try blow mention syntax.
Try this one
data: {varOne: dataOne, varTwo: dataTwo, varThree: dataThree}
Step-3 : Ignore all warning. For this you can use below mention code
ini_set('display_errors', 1);
error_reporting(E_ALL);