Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data OK


Recommended Posts

Помогите. В мозилле с недавнего начало выбивать эту ошибку на странице авторизации, при заходе в админку.
После ввода логина и пароля захожу, но вылетает ошибка.

Спойлер

zxxxzx.thumb.JPG.645f78a24c6cfd891faa8e26efcfd31b.JPG

 

Через сек 30-40 сообщение пропадает. Но...

при заходе в Расширения-Расширения снова появляется форма для ввода пароля.

Спойлер

zxczxczx.thumb.JPG.e5dd2d7843e1a0b8be2bf7aa9a126c2f.JPG

 

Если снова ввести пароль страница ломается - только текст.  

Спойлер

sddsdsss.JPG.c2512fff3df5c6c925581242b33845eb.JPG

 

Edited by kirillne
Link to post
Share on other sites

Как это побороть? Кто знает?

Текст что при ошибке тут:

Спойлер

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
OK
<!DOCTYPE html>
<html dir="ltr" lang="ru">
<head>
<meta charset="UTF-8" />
<title>Авторизация</title>
<base href="http://sansanych.zt.ua/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/stylesheet/bootstrap.css" type="text/css" rel="stylesheet" />
<link href="view/javascript/font-awesome/css/font-awesome.min.css" type="text/css" rel="stylesheet" />
<script src="view/javascript/jquery/datetimepicker/moment/moment.min.js" type="text/javascript"></script>
<script src="view/javascript/jquery/datetimepicker/moment/moment-with-locales.min.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>
</head>
<body>
<div id="container">
<header id="header" class="navbar navbar-static-top">
  <div class="container-fluid">

 
    <div id="header-logo" class="navbar-header"><a href="http://sansanych.zt.ua/admin/index.php?route=common/dashboard" class="navbar-brand"><img src="view/image/logo.png" alt="ocStore" title="ocStore" /></a></div>
    <a href="#" id="button-menu" class="hidden-md hidden-lg"><span class="fa fa-bars"></span></a> </div>
</header>

<div id="content">
  <div class="container-fluid"><br />
    <br />
    <div class="row">
      <div class="col-sm-offset-4 col-sm-4">
        <div class="panel panel-default">
          <div class="panel-heading">
            <h1 class="panel-title"><i class="fa fa-lock"></i> Введите логин и пароль</h1>
          </div>
          <div class="panel-body">
                                    <form action="http://sansanych.zt.ua/admin/index.php?route=common/login" method="post" enctype="multipart/form-data">
              <div class="form-group">
                <label for="input-username">Логин</label>
                <div class="input-group"><span class="input-group-addon"><i class="fa fa-user"></i></span>
                  <input type="text" name="username" value="" placeholder="Логин" id="input-username" class="form-control" />
                </div>
              </div>
              <div class="form-group">
                <label for="input-password">Пароль</label>
                <div class="input-group"><span class="input-group-addon"><i class="fa fa-lock"></i></span>
                  <input type="password" name="password" value="" placeholder="Пароль" id="input-password" class="form-control" />
                </div>
                                <span class="help-block"><a href="http://sansanych.zt.ua/admin/index.php?route=common/forgotten">Забыли пароль?</a></span>
                              </div>
              <div class="text-right">
                <button type="submit" class="btn btn-primary"><i class="fa fa-key"></i> Войти</button>
              </div>
                            <input type="hidden" name="redirect" value="http://sansanych.zt.ua/admin/index.php?route=extension/dashboard/chart/chart&amp;range=month" />
                          </form>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<footer id="footer"><a target="_blank" href="https://ocstore.com/">ocStore</a> &copy; 2009-2021 Все права защищены.<br /></footer></div>

            <script type="text/javascript"><!--
                function seoUrlFill(string,pageType,lang='en',langId='1'){var delimiter='-',keyword=$('input[name="'+pageType+'_seo_url[0]['+langId+']"]'),abc={'ß':'ss','à':'a','á':'a','â':'a','ã':'a','ä':'a','å':'a','æ':'ae','ç':'c','è':'e','é':'e','ê':'e','ë':'e','ì':'i','í':'i','î':'i','ï':'i','ð':'d','ñ':'n','ò':'o','ó':'o','ô':'o','õ':'o','ö':'o','ő':'o','ø':'o','ù':'u','ú':'u','û':'u','ü':'u','ű':'u','ý':'y','þ':'th','ÿ':'y','α':'a','β':'b','γ':'g','δ':'d','ε':'e','ζ':'z','η':'h','θ':'8','ι':'i','κ':'k','λ':'l','μ':'m','ν':'n','ξ':'3','ο':'o','π':'p','ρ':'r','σ':'s','τ':'t','υ':'y','φ':'f','χ':'x','ψ':'ps','ω':'w','ά':'a','έ':'e','ί':'i','ό':'o','ύ':'y','ή':'h','ώ':'w','ς':'s','ϊ':'i','ΰ':'y','ϋ':'y','ΐ':'i','ş':'s','ı':'i','ç':'c','ü':'u','ö':'o','ğ':'g','а':'a','б':'b','в':'v','г':'g','д':'d','е':'e','ё':'yo','ж':'zh','з':'z','и':'i','й':'j','к':'k','л':'l','м':'m','н':'n','о':'o','п':'p','р':'r','с':'s','т':'t','у':'u','ф':'f','х':'h','ц':'c','ч':'ch','ш':'sh','щ':'sh','ъ':'','ы':'y','ь':'','э':'e','ю':'yu','я':'ya','є':'ye','і':'i','ї':'yi','ґ':'g','č':'c','ď':'d','ě':'e','ň':'n','ř':'r','š':'s','ť':'t','ů':'u','ž':'z','ą':'a','ć':'c','ę':'e','ł':'l','ń':'n','ó':'o','ś':'s','ź':'z','ż':'z','ā':'a','č':'c','ē':'e','ģ':'g','ī':'i','ķ':'k','ļ':'l','ņ':'n','š':'s','ū':'u','ž':'z','ө':'o','ң':'n','ү':'u','ә':'a','ғ':'g','қ':'q','ұ':'u','ა':'a','ბ':'b','გ':'g','დ':'d','ე':'e','ვ':'v','ზ':'z','თ':'th','ი':'i','კ':'k','ლ':'l','მ':'m','ნ':'n','ო':'o','პ':'p','ჟ':'zh','რ':'r','ს':'s','ტ':'t','უ':'u','ფ':'ph','ქ':'q','ღ':'gh','ყ':'qh','შ':'sh','ჩ':'ch','ც':'ts','ძ':'dz','წ':'ts','ჭ':'tch','ხ':'kh','ჯ':'j','ჰ':'h'};switch(lang){case'bg':abc['щ']='sht';abc['ъ']='a';break;case'uk':abc['и']='y';break;}
                string=string.toLowerCase();for(var k in abc){string=string.replace(RegExp(k,'g'),abc[k]);}
                var alnum=(typeof(XRegExp)==='undefined')?RegExp('[^a-z0-9]+','ig'):XRegExp('[^\\p{L}\\p{N}]+','ig');string=string.replace(alnum,delimiter);string=string.replace(RegExp('['+delimiter+']{2,}','g'),delimiter);string=string.replace(RegExp('(^'+delimiter+'|'+delimiter+'$)','g'),'');if(keyword.length&&keyword.val()==''){keyword.val(string);}}
            //--></script>
            
</body></html>

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.