Php 从本地服务器移动到活动服务器后出现错误410

Php 从本地服务器移动到活动服务器后出现错误410,php,server,http-status-code-410,Php,Server,Http Status Code 410,我已经创建了一个站点,在WAMP中,所有内容都可以在本地正常工作,但是,我将所有内容都移动到了我的共享主机帐户,并且出现了410错误: Gone The requested resource /admin/product_edit_parse.php is no longer available on this server and there is no forwarding address. Please remove all references to this resource. Ad

我已经创建了一个站点,在WAMP中,所有内容都可以在本地正常工作,但是,我将所有内容都移动到了我的共享主机帐户,并且出现了410错误:

Gone
The requested resource
/admin/product_edit_parse.php
is no longer available on this server and there is no forwarding address. Please remove all references to this resource.

Additionally, a 410 Gone error was encountered while trying to use an ErrorDocument to handle the request.
我移动了所有文件,到目前为止,除了这一个文件,所有其他文件似乎都正常工作。该文件实际上不可在任何地方查看,它位于我的网站的管理端,用于编辑产品。我的站点向该页面发送HTTP请求,并通过AJAX获得响应,如下所示:

var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function(){
    if(this.readyState == 4 && this.status == 200){
        console.log(this.responseText);
    }
};
xmlhttp.open("POST", query_string, true);
xmlhttp.send();
我只能在控制台中看到410错误,但什么都没有发生

如果我直接转到带有查询字符串的页面URL(
admin/product\u edit\u parse.php?foo=bar&bar=foo
),它会给出相同的错误

但是,如果我转到没有查询字符串的URL,则会出现超时错误:

This site can’t be reached
************** took too long to respond.
Try:

Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_TIMED_OUT
编辑 这就是我构建查询字符串的方式

$("#product_edit_submit").on("click", function(){
    var product_id = $("#product_id").val();
    var product_name = $("#product_name").val();
    var product_sort = $("#product_sort").val();
    var product_category = $("#product_category").val();
    var product_attribute = $("#product_attribute").val();
    var product_description = richTextField.document.getElementsByTagName('body')[0].innerHTML;
    product_description = product_description.replace(/"/g,"");
    product_description = product_description.replace(/ /g,"");
    var product_supplier = $("#product_supplier").val();
    var product_model_no = $("#product_model_no").val();
    var product_cost = $("#product_cost").val();
    var product_meta = $("#product_meta").val();
    var spec_1 = $("#spec_1").val();
    var spec_2 = $("#spec_2").val();
    var spec_3 = $("#spec_3").val();
    var spec_4 = $("#spec_4").val();
    var spec_5 = $("#spec_5").val();
    var spec_6 = $("#spec_6").val();
    var spec_7 = $("#spec_7").val();
    var spec_8 = $("#spec_8").val();
    var spec_9 = $("#spec_9").val();
    var spec_10 = $("#spec_10").val();
    var spec_11 = $("#spec_11").val();
    var spec_12 = $("#spec_12").val();
    var spec_13 = $("#spec_13").val();
    var spec_14 = $("#spec_14").val();
    var spec_15 = $("#spec_15").val();
    
    var value_1 = $("#value_1").val();
    var value_2 = $("#value_2").val();
    var value_3 = $("#value_3").val();
    var value_4 = $("#value_4").val();
    var value_5 = $("#value_5").val();
    var value_6 = $("#value_6").val();
    var value_7 = $("#value_7").val();
    var value_8 = $("#value_8").val();
    var value_9 = $("#value_9").val();
    var value_10 = $("#value_10").val();
    var value_11 = $("#value_11").val();
    var value_12 = $("#value_12").val();
    var value_13 = $("#value_13").val();
    var value_14 = $("#value_14").val();
    var value_15 = $("#value_15").val();
    
    var pricing = [];
    for (i = 0; i <15; i++) {
        var checkbox = "checkbox"+i;
        if ($("#"+checkbox).is(':checked')) {
            for (j = 1; j <=2; j++) {
                var priceValue = 'priceValue'+i+'_'+j;
                var priceCurrency = 'priceCurrency'+i+'_'+j;
                var priceAttribute = 'priceAttribute'+i+'_'+j;
                var value = $('#'+priceValue).val();
                var currency = $('#'+priceCurrency).val();
                var attribute = $('#'+priceAttribute).val();
                var item = [];
                item.push(value);
                item.push(currency);
                item.push(attribute);
                pricing.push('item'+item);
            }
        }
    }
            
    var formData = new FormData();
    formData.append("product_image_1", document.getElementById("product_image_1").files[0]);
    formData.append("product_image_2", document.getElementById("product_image_2").files[0]);
    formData.append("product_image_3", document.getElementById("product_image_3").files[0]);
    formData.append("product_image_4", document.getElementById("product_image_4").files[0]);
    formData.append("product_image_5", document.getElementById("product_image_5").files[0]);
            
    var query_string = "product_edit_parse.php?";
    query_string += "id="+encodeURIComponent(product_id);
    query_string += "&name="+encodeURIComponent(product_name);
    query_string += "&sort="+encodeURIComponent(product_sort);
    query_string += "&cat="+encodeURIComponent(product_category);
    query_string += "&att="+encodeURIComponent(product_attribute);
    query_string += "&desc="+encodeURIComponent(product_description);
    query_string += "&supp="+encodeURIComponent(product_supplier);
    query_string += "&mono="+encodeURIComponent(product_model_no);
    query_string += "&cost="+encodeURIComponent(product_cost);
    query_string += "&meta="+encodeURIComponent(product_meta);
    
    query_string += "&spec_1="+spec_1;
    query_string += "&spec_2="+spec_2;
    query_string += "&spec_3="+spec_3;
    query_string += "&spec_4="+spec_4;
    query_string += "&spec_5="+spec_5;
    query_string += "&spec_6="+spec_6;
    query_string += "&spec_7="+spec_7;
    query_string += "&spec_8="+spec_8;
    query_string += "&spec_9="+spec_9;
    query_string += "&spec_10="+spec_10;
    query_string += "&spec_11="+spec_11;
    query_string += "&spec_12="+spec_12;
    query_string += "&spec_13="+spec_13;
    query_string += "&spec_14="+spec_14;
    query_string += "&spec_15="+spec_15;
    
    query_string += "&value_1="+value_1;
    query_string += "&value_2="+value_2;
    query_string += "&value_3="+value_3;
    query_string += "&value_4="+value_4;
    query_string += "&value_5="+value_5;
    query_string += "&value_6="+value_6;
    query_string += "&value_7="+value_7;
    query_string += "&value_8="+value_8;
    query_string += "&value_9="+value_9;
    query_string += "&value_10="+value_10;
    query_string += "&value_11="+value_11;
    query_string += "&value_12="+value_12;
    query_string += "&value_13="+value_13;
    query_string += "&value_14="+value_14;
    query_string += "&value_15="+value_15;
        
    query_string += "&price_array="+pricing;
    console.log(query_string);
        
    var xmlhttp = new XMLHttpRequest();
    xmlhttp.onreadystatechange = function(){
        if(this.readyState == 4 && this.status == 200){
            console.log(this.responseText);
        }
    };
    xmlhttp.open("POST", query_string, true);
    xmlhttp.send(formData);
});

这是由共享域主机检查恶意文件引起的。他们仍然没有直接回答为什么这会被标记为恶意。

这可能只是整个服务器崩溃的先兆。。。无法再访问域cpanel,无法通过FTP连接,域上的所有资源现在都超时。。。。一定要喜欢周五早上…请给我们看看
query\u string
@riggsfully上的内容谢谢你的评论。我认为这现在不是一个问题。刚刚打电话给我的托管公司,我想这是他们方面的问题。(进行更改,我通常只希望我的代码出现问题:P)Ha:)我们不同意吗?因此,在进一步测试我们的服务器后,我仍然不确定这是怎么回事。我们的服务器似乎在多个浏览器、多个设备、多个网络等上出现故障。。。。。。然后它在另一台设备上随机工作,托管公司也无法复制它。我也在使用cpanel,我也有同样的问题。您是如何在cpanel内部解决此问题的?谢谢
product_edit_parse.php?id=1&name=TPM%200.1-Lifting%20Magnet%20100kg&sort=1&cat=1&att=1&desc=%0A%09%09%20%3Cp%3ETPM%200.1%20Permanent%20Lifting%20Magnet%20Capacity%3A%20100kg%3C%2Fp%3E%20%3Cstyle%20type%3D%22text%2Fcss%22%20xml%3D%22space%22%3E%3C!--%20p.p1%20%7Bmargin%3A%200.0px%200.0px%200.0px%200.0px%3B%20font%3A%208.0px%20Times%7D%20p.p2%20%7Bmargin%3A%200.0px%200.0px%200.0px%200.0px%3B%20font%3A%2010.0px%20Times%7D%20--%3E%3C%2Fstyle%3E%20%3Cp%3ETPM%20permanent%20lifting%20magnets%20are%20ideal%20tools%20for%20easy%2C%20quick%20and%20economical%20transport%20of%20heavy%20objects%20made%20from%20ferro-magnetic%20material.%20Typical%20operating%20areas%20are%20workshops%20and%20warehouses%2Cloading%20and%20unloading%20of%20machines%20as%20well%20as%20construction%20of%20jigs%20and%20fixtures.%3C%2Fp%3E%20%3Cp%3E%3Cspan%20class%3D%22Apple-converted-space%22%3E%3C%2Fspan%3EFactors%20that%20reduce%20the%20magnetic%20clamping%20force%3A%3C%2Fp%3E%20%3Cp%3EAir%20gap%3A%20High%20magnetic%20forces%20created%20by%20the%20TPM%20allow%20the%20magnet%20to%20clamp%20components%20through%20the%20air%20gap%2C%20however%2C%20air%20gaps%20will%20reduce%20the%20magnetic%20performance%20as%20they%20provide%20a%20barrier%20between%20the%20contact%20surfaces.%20Air%20gaps%20occur%20in%20a%20number%20of%20different%20ways%20such%20as%20paint%2C%20dust%20and%20heavy%20mill%20scale.%20Poorly%20machined%20surfaces%20also%20constitute%20an%20air%20gap.%20Please%20down%20rate%20the%20magnet%20capacity%20in%20accordance%20with%20the%20adhesive%20force%2Fair%20gap%20diagram%20below.%3C%2Fp%3E%20%3Cp%3EMaterial%20thickness%3A%20If%20the%20TPM%20is%20used%20to%20lift%20plates%20thinner%20than%20the%20recommended%20minimum%20thickness%2C%20the%20clamping%20forces%20will%20be%20significantly%20reduced.%20Performance%20curves%20can%20be%20identified%20in%20conjunction%20with%20the%20adhesive%20force%2Fflat%20thickness%20diagram%20below%3A%3C%2Fp%3E%20%3Cp%3EContact%20area%3A%20Full%20lifting%20capacity%20can%20only%20be%20achieved%20when%20the%20magnet%20has%20full%20contact%20area%20with%20the%20component%20being%20lifted.%20If%20the%20contact%20surface%20has%20holes%20in%20or%20is%20uneven%20then%20the%20performance%20will%20be%20affected%20accordingly.%20Always%20carry%20out%20a%20trial%20lift%20in%20these%20circumstances%20to%20establish%20correct%20lifting%20before%20transporting%20the%20load.%3C%2Fp%3E%20%3Cp%3EMaterial%20type%3A%20Certain%20materials%20have%20different%20abilities%20to%20carry%20magnetism.%20For%20materials%20other%20than%20mild%20steel%20a%20reduction%20factor%20must%20be%20applied%20in%20order%20to%20calculate%20the%20effective%20clamping%20force.%3C%2Fp%3E%20%3Cp%3ETypical%20values%3A%3C%2Fp%3E%20%3Cp%3EFerrous%20alloy%20steels%200.8%3C%2Fp%3E%20%3Cp%3EHigh%20carbon%20steels%200.7%3C%2Fp%3E%20%3Cp%3ECast%20iron%200.55%3C%2Fp%3E%20%3Cp%3EExamples%20of%20reduced%20WLL%3A%3C%2Fp%3E%20%3Cp%3EMild%20steel%20500g%3C%2Fp%3E%20%3Cp%3ECast%20iron%20500kg%20x%200.55%20%3D%20275kgs%3C%2Fp%3E%0A&supp=&mono=&cost=&meta=&spec_1=&spec_2=&spec_3=&spec_4=&spec_5=&spec_6=&spec_7=&spec_8=&spec_9=&spec_10=&spec_11=&spec_12=&spec_13=&spec_14=&spec_15=&value_1=&value_2=&value_3=&value_4=&value_5=&value_6=&value_7=&value_8=&value_9=&value_10=&value_11=&value_12=&value_13=&value_14=&value_15=&price_array=