opencart 2.0 SyntaxError:JSON.parse:JSON数据的第1行第1列的数据意外结束OK [英] opencart 2.0 SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data OK

查看:89
本文介绍了opencart 2.0 SyntaxError:JSON.parse:JSON数据的第1行第1列的数据意外结束OK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在互联网上四处张望,没有找到答案.

I looked all over the internet and found no answer.

基本上,我的问题是每当我尝试编辑订单和更改商店时,我都在Synfox和chrome中在JSON数据的第1行第1列的第1行第1列收到SyntaxError:JSON.parse:数据意外结束我得到SyntaxError:意外结束输入OK.

Basically my problem is whenever I try to edit orders and change stores I get the SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data OK in firefox and in chrome I get SyntaxError: Unexpected end of input OK.

任何人都为此找到了一个真正的"解决方案,因为我尝试了所有建议的方法,但是它们不起作用.从更改api_id到制作辅助API.甚至.htaccess方法.

Has anyone found a "real" solution for this because I tried all that was suggested but they don't work. From changing the api_id to making a secondary API. And even the .htaccess method.

推荐答案

我遇到了相同的错误,并找到了解决方法:

I got the same error and found away to fix it:

  1. 以管理员身份登录后端,然后转到系统>用户> Api
  2. 使用生成的密码创建新的API ,并确保它是 已启用
  3. 转到商店设置(系统>设置>编辑),然后打开 选项标签
  4. 向下滚动直到找到"结帐"
  5. 显示" API用户"的地方,选择您刚刚创建的API用户
  6. 保存更改并完成!
  1. Login in the backend as admin and go to System > Users > Api
  2. Create a new api with a generated password and make sure it's enabled
  3. Go to your store settings (system > settings > Edit) and open the Option tab
  4. Scroll down till you find the 'checkout'
  5. Where it says 'API User' select the API User you just created
  6. Save the changes and your done!

您现在就可以编辑订单状态!

You'll be able to edit the order status now!

这篇关于opencart 2.0 SyntaxError:JSON.parse:JSON数据的第1行第1列的数据意外结束OK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆