Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/297.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 500(内部服务器错误)ajax调用_Php_Ajax_Timeout_Internal Server Error - Fatal编程技术网

Php 500(内部服务器错误)ajax调用

Php 500(内部服务器错误)ajax调用,php,ajax,timeout,internal-server-error,Php,Ajax,Timeout,Internal Server Error,当站点位于服务器上时会发生内部错误,而在本地主机上则可以正常工作。代码如下所示 GET 500(内部服务器错误)x.ajaxTransport.send@jquery-1.10.2.min.js:6x.extend.ajax@jquery-1.10.2.min.js:6(匿名函数)@books classified:281(匿名函数)@books classified:345 增加超时时间没有帮助 完全错误: $.ajax({ type: 'GET', url: '../clas

当站点位于服务器上时会发生内部错误,而在本地主机上则可以正常工作。代码如下所示

GET 500(内部服务器错误)x.ajaxTransport.send@jquery-1.10.2.min.js:6x.extend.ajax@jquery-1.10.2.min.js:6(匿名函数)@books classified:281(匿名函数)@books classified:345

增加超时时间没有帮助

完全错误:

$.ajax({
    type: 'GET',
    url: '../classified/extract_handler_post.php',
    data: SendInfo,
    dataType: 'json',
    contentType: "application/json; charset=utf-8",

    success: function (data) {
        count =  data['count'] ;

        for ( i = 0 ; i < count ;i++ ) {
            // $("#details").append(data['data'][i]['author']);
            //if (data['data'][i]['category']=="Books"){


                var iDiv = document.createElement('div');

                iDiv.id = 'block';
                iDiv.className = 'grid_12';
                document.getElementsByTagName('article')[0].appendChild(iDiv);

                // Now create and append to iDiv
                var innerDiv = document.createElement('div');
                innerDiv.className = 'grid_2 alpha';

                // The variable iDiv is still good... Just append to it.
                iDiv.appendChild(innerDiv);
                if (data['data'][i]['source'] == "Flipkart"){
                innerDiv.innerHTML =  '<img src=../images/classifiedlist/flipkart_logo.png ></img>';

                }
                else if (data['data'][i]['source'] == "Landmark"){
                innerDiv.innerHTML =  '<img src=../images/classifiedlist/landmark_logo.png ></img>';

                }
                else if (data['data'][i]['source'] == "Amazon"){
                innerDiv.innerHTML =  '<img src=../images/classifiedlist/Amazon-India-Logo.png ></img>';

                }
                else if (data['data'][i]['source'] == "RediffBooks"){
                innerDiv.innerHTML =  '<img src=../images/classifiedlist/rediff_logo.png ></img>';

                }


                    // Now create and append to iDiv
                var innerDiv = document.createElement('div');
                innerDiv.className = 'grid_10 omega';


                // The variable iDiv is still good... Just append to it.
                iDiv.appendChild(innerDiv);

                innerDiv.innerHTML = data['data'][i]['source'] +"<br/>Bookname: " + data['data'][i]['title'] + "<br/> List Price: " + data['data'][i]['mrp'] + " &nbsp; &nbsp; Sale Price:  " + data['data'][i]['available_price'] +" <br/><a href=" + data['data'][i]['url']  +">Shop now </a> <br/> <br/>" ;

            }
$.ajax({
键入:“GET”,
url:“../classified/extract_handler_post.php”,
数据:SendInfo,
数据类型:“json”,
contentType:“应用程序/json;字符集=utf-8”,
成功:功能(数据){
计数=数据[‘计数’];
对于(i=0;i书名:“+data['data'][i]['title']+”
标价:“+data['data'][i]['mrp']+”销售价格:“+data['data'][i]['available\U Price']+”

; }
是一个PHP错误,因此我认为问题出在extract\u handler\u post.phpas@jpintor中,这肯定是
extract\u handler\u post.PHP
脚本的问题。请将其与服务器错误日志的内容一起发布(应该是/var/log/apache2/error.log或类似的内容)