当我要编辑卖家帐户时,我在opencart 2.0.3.1中收到以下错误,并在管理面板中获得了2个多层浏览器图标。
SyntaxError:JSON.parse:JSON数据第1行第1列的意外字符
OK
<!DOCTYPE html>
<html dir="ltr" lang="en">
<head>
<meta charset="UTF-8" />
<title>Page Not Found!</title>
<base href="http://localhost/oc2.3/admin/" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
<script type="text/javascript" src="view/javascript/jquery/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="view/javascript/bootstrap/js/bootstrap.min.js"></script>
<link href="view/javascript/bootstrap/opencart/opencart.css" type="text/css" rel="stylesheet" />
<link href="view/javascript/font-awesome/css/font-awesome.min.css" type="text/css" rel="stylesheet" />
<link href="view/javascript/summernote/summernote.css" rel="stylesheet" />
<script type="text/javascript" src="view/javascript/summernote/summernote.js"></script>
<script src="view/javascript/jquery/datetimepicker/moment.js" type="text/javascript"></script>
<script src="view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
<link href="view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.css" type="text/css" rel="stylesheet" media="screen" />
<link type="text/css" href="view/stylesheet/stylesheet.css" rel="stylesheet" media="screen" />
<script src="view/javascript/common.js" type="text/javascript"></script>
<script type="text/javascript"> if (!window.console) console = {log: function() {}}; var msGlobals = { config_limit_admin: '20', config_language: 'view/javascript/multimerch/datatables/lang/en.lng' }; </script>
<script type="text/javascript"> if (!window.console) console = {log: function() {}}; var msGlobals = { config_limit_admin: '20', config_language: 'view/javascript/multimerch/datatables/lang/en.lng' }; </script>
</head>
<body>
<div id="container">
<header id="header" class="navbar navbar-static-top">
<div class="navbar-header">
<a type="button" id="button-menu" class="pull-left"><i class="fa fa-indent fa-lg"></i></a>
<a href="http://localhost/oc2.3/admin/index.php?route=common/dashboard&token=c77818da8112eaa8c6da6c6b8197f498" class="navbar-brand"><img src="view/image/logo.png" alt="OpenCart" title="OpenCart" /></a></div>
<ul class="nav pull-right">
<li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown"><span class="label label-danger pull-left">1</span> <i class="fa fa-bell fa-lg"></i></a>
<ul class="dropdown-menu dropdown-menu-right alerts-dropdown">
<li class="dropdown-header">Orders</li>
<li><a href="http://localhost/oc2.3/admin/index.php?route=sale/order&token=c77818da8112eaa8c6da6c6b8197f498&filter_order_status=2" style="display: block; overflow: auto;"><span class="label label-warning pull-right">0</span>Pending</a></li>
<li><a href="http://localhost/oc2.3/admin/index.php?route=sale/order&token=c77818da8112eaa8c6da6c6b8197f498&filter_order_status=5"><span class="label label-success pull-right">0</span>Completed</a></li>
<li><a href="http://localhost/oc2.3/admin/index.php?route=sale/return&token=c77818da8112eaa8c6da6c6b8197f498"><span class="label label-danger pull-right">0</span>Returns</a></li>
<li class="divider"></li>
<li class="dropdown-header">Customers</li>
<li><a href="http://localhost/oc2.3/admin/index.php?route=report/customer_online&token=c77818da8112eaa8c6da6c6b8197f498"><span class="label label-success pull-right">0</span>Customers Online</a></li>
<li><a href="http://localhost/oc2.3/admin/index.php?route=sale/customer&token=c77818da8112eaa8c6da6c6b8197f498&filter_approved=0"><span class="label label-danger pull-right">0</span>Pending approval</a></li>
<li class="divider"></li>
<li class="dropdown-header">Products</li>
<li><a href="http://localhost/oc2.3/admin/index.php?route=catalog/product&token=c77818da8112eaa8c6da6c6b8197f498&filter_quantity=0"><span class="label label-danger pull-right">1</span>Out of stock</a></li>
<li><a href="http://localhost/oc2.3/admin/index.php?route=catalog/review&token=c77818da8112eaa8c6da6c6b8197f498&filter_status=0"><span class="label label-danger pull-right">0</span>Reviews</a></li>
<li class="divider"></li>
<li class="dropdown-header">Affiliates</li>
<li><a href="http://localhost/oc2.3/admin/index.php?route=marketing/affiliate&token=c77818da8112eaa8c6da6c6b8197f498&filter_approved=1"><span class="label label-danger pull-right">0</span>Pending approval</a></li>
</ul>
</li>
<li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-life-ring fa-lg"></i></a>
<ul class="dropdown-menu dropdown-menu-right">
<li class="dropdown-header">Stores <i class="fa fa-shopping-cart"></i></li>
<li><a href="http://localhost/oc2.3/" target="_blank">Tailors & Desginers</a></li>
<li class="divider"></li>
<li class="dropdown-header">Help <i class="fa fa-life-ring"></i></li>
<li><a href="http://www.opencart.com" target="_blank">Homepage</a></li>
<li><a href="http://docs.opencart.com" target="_blank">Documentation</a></li>
<li><a href="http://forum.opencart.com" target="_blank">Support Forum</a></li>
</ul>
</li>
<li><a href="http://localhost/oc2.3/admin/index.php?route=common/logout&token=c77818da8112eaa8c6da6c6b8197f498"><span class="hidden-xs hidden-sm hidden-md">Logout</span> <i class="fa fa-sign-out fa-lg"></i></a></li>
</ul>
</header>
<nav id="column-left"><div id="profile">
<div><a class="dropdown-toggle" data-toggle="dropdown"><img src="http://localhost/oc2.3/image/cache/no_image-45x45.png" alt="John Doe" title="admin" class="img-circle" /></a></div>
<div>
<h4>John Doe</h4>
<small>Administrator</small></div>
</div>
<ul id="menu">
<li id="dashboard"><a href="http://localhost/oc2.3/admin/index.php?route=common/dashboard&token=c77818da8112eaa8c6da6c6b8197f498"><i class="fa fa-dashboard fa-fw"></i> <span>Dashboard</span></a></li>
<li id="catalog"><a class="parent"><i class="fa fa-tags fa-fw"></i> <span>Catalog</span></a>
<ul>
<li><a href="http://localhost/oc2.3/admin/index.php?route=catalog/category&token=c77818da8112eaa8c6da6c6b8197f498">Categories</a></li>
<li><a href="http://localhost/oc2.3/admin/index.php?route=catalog/product&token=c77818da8112eaa8c6da6c6b8197f498">Products</a></li>
<li><a href="http://localhost/oc2.3/admin/index.php?route=catalog/recurring&token=c77818da8112eaa8c6da6c6b8197f498">Recurring Profiles</a></li>
<li><a href="http://localhost/oc2.3/admin/index.php?route=catalog/filter&token=c77818da8112eaa8c6da6c6b8197f498">Filters</a></li>
答案 0 :(得分:0)
这看起来像是一个破碎的MultiMerch和/或vQmod安装(因此重复和缺少语言变量)。
我建议您将MultiMerch和vQmod更新为GitHub上提供的最新版本。
如果您使用的是OpenCart 2.0.3.1,则还需要删除vqmod / xml / multimerch_oc21x_controllerfix.xml文件。只有OpenCart 2.1.x才需要它。
这将解决这个问题。
答案 1 :(得分:-1)
对于管理员和前端错误,我认为您应该检查错误来源的vqmod
文件,或者您可以尝试新的安装。