Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/88.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 尝试解析xhr响应文本时出错(JSON.parse:JSON数据第2行第1列的JSON数据后出现意外的非空白字符)_Php_Jquery_Json_Ajax_Fine Uploader - Fatal编程技术网

Php 尝试解析xhr响应文本时出错(JSON.parse:JSON数据第2行第1列的JSON数据后出现意外的非空白字符)

Php 尝试解析xhr响应文本时出错(JSON.parse:JSON数据第2行第1列的JSON数据后出现意外的非空白字符),php,jquery,json,ajax,fine-uploader,Php,Jquery,Json,Ajax,Fine Uploader,我使用的是osclass脚本,当我想作为一个普通用户上传图片时,我收到了这个错误,文件上传工作正常,但我在管理面板中看不到该图片。欢迎任何建议。谢谢 ->萤火虫报告: [FineUploader 3.8.0] Error when attempting to parse xhr response text (JSON.parse: unexpected non-whitespace character after JSON data at line 2 column 1 of the J

我使用的是osclass脚本,当我想作为一个普通用户上传图片时,我收到了这个错误,文件上传工作正常,但我在管理面板中看不到该图片。欢迎任何建议。谢谢 ->萤火虫报告:

    [FineUploader 3.8.0] Error when attempting to parse xhr response text (JSON.parse: unexpected non-whitespace character after JSON data at line 2 column 1 of the JSON data)
qq.log(a="[FineUploader 3.8.0] Err...umn 1 of the JSON data)", b="error")jquery.fineuploader.min.js (line 16)
qq.basePublicApi.log(a="Error when attempting to...umn 1 of the JSON data)", b="error")jquery.fineuploader.min.js (line 16)
qq.basePrivateApi._createUploadHandler/d.log(a="Error when attempting to...umn 1 of the JSON data)", b="error")jquery.fineuploader.min.js (line 16)
o()jquery.fineuploader.min.js (line 18)
s(a=0, b=Object { type="object"})jquery.fineuploader.min.js (line 18)
t/<()
[FineUploader 3.8.0]尝试解析xhr响应文本时出错(JSON.parse:JSON数据第2行第1列的JSON数据后出现意外的非空白字符)
qq.log(a=“[FineUploader 3.8.0]Err…JSON数据的umn 1)”,b=“error”)jquery.FineUploader.min.js(第16行)
qq.basePublicApi.log(a=“尝试…JSON数据的umn 1时出错)”,b=“错误”)jquery.fineuploader.min.js(第16行)
qq.basePrivateApi.\u createUploadHandler/d.log(a=“尝试…JSON数据的umn 1时出错)”,b=“Error”)jquery.fineuploader.min.js(第16行)
o()jquery.fineuploader.min.js(第18行)
s(a=0,b=Object{type=“Object”})jquery.fineuploader.min.js(第18行)

t/您的服务器正在返回无效数据。Fine uploader需要一个有效的JSON响应,正如您在错误消息中看到的,这并没有发生。您需要仔细查看服务器代码。

是,您的服务器应该只返回JSON部分:

{"success":true,"uploadName":"auto_qqfile_57b1bb265d971.jpg"} {“success”:true,“uploadName”:“auto_qqfile_57b1bb265d971.jpg”}
这似乎是谷歌分析脚本插入后。这通常发生在免费托管服务中。

你能用Team Viewer查看我的网站吗?我试着在两天内复习,但什么也没发现。如果你能帮助我,我将不胜感激。幸运的是我解决了这个问题。我刚刚删除了谷歌分析脚本,它开始工作。多亏了Ray和Anthony.im使用了付费托管服务。我测试了同一个未编译的脚本,该上传程序运行良好。我只是想知道如何将与上传程序相关的源代码从原始SVcript恢复到我当前的脚本。只需要一位osclass专家来帮助我。 {"success":true,"uploadName":"auto_qqfile_57b1bb265d971.jpg"}