Internal Server Error 500 in Ajax

0

I have a website hosted on Digital Ocean that runs on an Ubuntu under Lamp with PHP & MySQL My problem is that when I want to pass data through APIRest it gives me an internal error.

This is my code

function ajaxPost(url, encodedata, success)
{
$.ajax({
type:"POST",
url:url,
data :encodedata,
dataType:"json",
contentType: 'application/json',
cache:false,
timeout:50000,
beforeSend :function(data) 
{ 
$(".scrollMore").attr("rel","0"); 
$("#networkError").slideUp("slow"); 
},
success:function(data){

success.call(this, data);
$(".scrollMore").attr("rel","1"); 
},
error:function(data){
$("#networkError").show().html($.networkError);
}
});
}

First I thought the error was in the mod_Rewrite but I suspect it must be here. Honestly I am surrendering. Probe in local working under a Windows environment and works perfectly.

    
asked by C00LMasterN 17.11.2017 в 14:48
source

0 answers