Post by jh3rman » Wed Jun 11, 2014 4:05 am

Can somebody help me resolve this issue I'm having? Below is the error I get when trying to register on my site.

Code: Select all

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

OK

<b>Notice</b>: Undefined index: email in <b>/webroot/shopxpre/public_html/catalog/controller/checkout/register.php</b> on line <b>142</b><b>Notice</b>: Undefined index: email in <b>/webroot/shopxpre/public_html/catalog/controller/checkout/register.php</b> on line <b>142</b><b>Notice</b>: Undefined index: email in <b>/webroot/shopxpre/public_html/catalog/controller/checkout/register.php</b> on line <b>146</b><b>Notice</b>: Undefined index: telephone in <b>/webroot/shopxpre/public_html/catalog/controller/checkout/register.php</b> on line <b>150</b>{"error":{"email":"E-Mail Address does not appear to be valid!","telephone":"Telephone must be between 3 and 32 characters!"}}
And here are the lines in question from that php file:

Line 142:

Code: Select all

			if ((utf8_strlen($this->request->post['email']) > 96) || !preg_match('/^[^\@]+@.*\.[a-z]{2,6}$/i', $this->request->post['email'])) {
Line 146:

Code: Select all

			if ($this->model_account_customer->getTotalCustomersByEmail($this->request->post['email'])) {
Line 150:

Code: Select all

			if ((utf8_strlen($this->request->post['telephone']) < 3) || (utf8_strlen($this->request->post['telephone']) > 32)) {

Newbie

Posts

Joined
Tue Sep 10, 2013 10:28 am

Post by jh3rman » Mon Jun 16, 2014 8:23 pm

anyone?

Newbie

Posts

Joined
Tue Sep 10, 2013 10:28 am

Post by straightlight » Mon Jun 16, 2014 11:35 pm

Hi,

Which OC version are you using?

Are you trying to register from a custom template page or from the default template page? If from a custom page, switch to the default template and see if you can reproduce the same problem. If the issue cannot be re-addressed with the default template, I would suggest to contact the author who developed the custom OpenCart theme.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by aus10 » Tue Aug 26, 2014 1:33 am

Same error here. Started recently not sure how recent.

Code: Select all

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

OK

<b>Notice</b>: Undefined index: email in <b>/home/getitsig/public_html/catalog/controller/checkout/guest.php</b> on line <b>193</b><b>Notice</b>: Undefined index: email in <b>/home/getitsig/public_html/catalog/controller/checkout/guest.php</b> on line <b>193</b><b>Notice</b>: Undefined index: telephone in <b>/home/getitsig/public_html/catalog/controller/checkout/guest.php</b> on line <b>197</b>{"error":{"email":"E-Mail Address does not appear to be valid!","telephone":"Telephone must be between 3 and 32 characters!"}}
Version 1.5.5.1
Think I am on original template slightly modified. Nothing has been changed in a year or so and it was all working fine a month or 2 ago.

getitsigned.net - add anything to cart and try to checkout to reproduce.

New member

Posts

Joined
Mon Jul 22, 2013 10:48 am

Post by aus10 » Wed Aug 27, 2014 1:08 am

bump

New member

Posts

Joined
Mon Jul 22, 2013 10:48 am

Post by aus10 » Thu Aug 28, 2014 1:48 am

anyone?

New member

Posts

Joined
Mon Jul 22, 2013 10:48 am

Post by aus10 » Fri Aug 29, 2014 4:08 am

bump

New member

Posts

Joined
Mon Jul 22, 2013 10:48 am

Post by aus10 » Fri Aug 29, 2014 4:25 am

Little more info. I double checked the guest.php file to make sure it hadnt been changed, it is exactly the same as it is on a newer installation of opencart which doesn't get the error.

The error shows up in Firefox and Safari (fresh safari no plug ins)

New member

Posts

Joined
Mon Jul 22, 2013 10:48 am

Post by aus10 » Fri Aug 29, 2014 4:35 am

seemed to be caused by a vqmod embermonkey responsive. I removed the xml and it worked immediately.

New member

Posts

Joined
Mon Jul 22, 2013 10:48 am

Post by mughalsworld » Mon Sep 22, 2014 4:32 am

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

OK

<b>Warning</b>: Invalid argument supplied for foreach() in <b>/home/mughalsw/public_html/store/vqmod/vqcache/vq2-catalog_controller_checkout_payment_method.php</b> on line <b>277</b><b>Notice</b>: Undefined variable: comment in <b>/home/mughalsw/public_html/store/vqmod/vqcache/vq2-catalog_controller_checkout_payment_method.php</b> on line <b>279</b>[]


can any one help me about this this mesg show on checkout

Newbie

Posts

Joined
Tue Jul 30, 2013 8:30 pm

Post by marcynton » Mon Sep 29, 2014 11:38 pm

I really need help with this. Every time a customer go to checkout, and choose to register before to finalize their order. They receive this error message:
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

OK

<b>Notice</b>: Undefined index: approval in <b>/home/acmusi5/public_html/torrevelhaimports.com/catalog/model/account/customer.php</b> on line <b>14</b>
<b>Notice</b>: Undefined index: approval in <b>/home/acmusi5/public_html/torrevelhaimports.com/catalog/model/account/customer.php</b> on line <b>30</b>
<b>Notice</b>: Undefined index: name in <b>/home/acmusi5/public_html/torrevelhaimports.com/catalog/model/account/customer.php</b> on line <b>62</b>{"redirect":"http:\/\/torrevelhaimports.com\/index.php?route=account\/success"}

Please I need some help. Thank you all!

Newbie

Posts

Joined
Mon Sep 29, 2014 10:35 pm

Post by uralgit » Thu Jan 15, 2015 5:58 pm

I experienced a similar problem and solved it simply (after one week headache).
It was arising from an image-name which involved a non standart character

New member

Posts

Joined
Tue Oct 09, 2012 5:09 pm

Post by eura2012 » Sat Jan 17, 2015 2:23 pm

i need help

Code: Select all

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

OK

<!DOCTYPE html>
<html dir="ltr" lang="en">
<head>
<meta charset="UTF-8" />
<title>Permission Denied!</title>
<base href="http://localhost/sarangsprei/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/less/bootstrap.less" rel="stylesheet/less" />
<script src="view/javascript/bootstrap/less-1.7.4.min.js"></script>
<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>
</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/sarangsprei/admin/index.php?route=common/dashboard&token=0bacb991697c12062d3fc87b0f09635f" 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">4</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/sarangsprei/admin/index.php?route=sale/order&token=0bacb991697c12062d3fc87b0f09635f&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/sarangsprei/admin/index.php?route=sale/order&token=0bacb991697c12062d3fc87b0f09635f&filter_order_status=5"><span class="label label-success pull-right">0</span>Completed</a></li>
        <li><a href="http://localhost/sarangsprei/admin/index.php?route=sale/return&token=0bacb991697c12062d3fc87b0f09635f"><span class="label label-danger pull-right">1</span>Returns</a></li>
        <li class="divider"></li>
        <li class="dropdown-header">Customers</li>
        <li><a href="http://localhost/sarangsprei/admin/index.php?route=report/customer_online&token=0bacb991697c12062d3fc87b0f09635f"><span class="label label-success pull-right">0</span>Customers Online</a></li>
        <li><a href="http://localhost/sarangsprei/admin/index.php?route=sale/customer&token=0bacb991697c12062d3fc87b0f09635f&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/sarangsprei/admin/index.php?route=catalog/product&token=0bacb991697c12062d3fc87b0f09635f&filter_quantity=0"><span class="label label-danger pull-right">0</span>Out of stock</a></li>
        <li><a href="http://localhost/sarangsprei/admin/index.php?route=catalog/review&token=0bacb991697c12062d3fc87b0f09635f&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/sarangsprei/admin/index.php?route=marketing/affiliate&token=0bacb991697c12062d3fc87b0f09635f&filter_approved=1"><span class="label label-danger pull-right">3</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/sarangsprei/" target="_blank">Sarangsprei.Com</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/sarangsprei/admin/index.php?route=common/logout&token=0bacb991697c12062d3fc87b0f09635f"><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/sarangsprei/image/cache/no_image-45x45.png" alt=" " title="admin" class="img-circle" /></a></div>
  <div>
    <h4> </h4>
    <small>Top Administrator</small></div>
</div>
<ul id="menu">
  <li id="dashboard"><a href="http://localhost/sarangsprei/admin/index.php?route=common/dashboard&token=0bacb991697c12062d3fc87b0f09635f"><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/sarangsprei/admin/index.php?route=catalog/category&token=0bacb991697c12062d3fc87b0f09635f">Categories</a></li>
      <li><a href="http://localhost/sarangsprei/admin/index.php?route=catalog/product&token=0bacb991697c12062d3fc87b0f09635f">Products</a></li>
      <li><a href="http://localhost/sarangsprei/admin/index.php?route=catalog/recurring&token=0bacb991697c12062d3fc87b0f09635f">Recurring Profiles</a></li>
      <li><a href="http://localhost/sarangsprei/admin/index.php?route=catalog/filter&token=0bacb991697c12062d3fc87b0f09635f">Filters</a></li>
      <li><a class="parent">Attributes</a>
        <ul>
          <li><a href="http://localhost/sarangsprei/admin/index.php?route=catalog/attribute&token=0bacb991697c12062d3fc87b0f09635f">Attributes</a></li>
          <li><a href="http://localhost/sarangsprei/admin/index.php?route=catalog/attribute_group&token=0bacb991697c12062d3fc87b0f09635f">Attribute Groups</a></li>
        </ul>
      </li>
      <li><a href="http://localhost/sarangsprei/admin/index.php?route=catalog/option&token=0bacb991697c12062d3fc87b0f09635f">Options</a></li>
      <li><a href="http://localhost/sarangsprei/admin/index.php?route=catalog/manufacturer&token=0bacb991697c12062d3fc87b0f09635f">Manufacturers</a></li>
      <li><a href="http://localhost/sarangsprei/admin/index.php?route=catalog/download&token=0bacb991697c12062d3fc87b0f09635f">Downloads</a></li>
      <li><a href="http://localhost/sarangsprei/admin/index.php?route=catalog/review&token=0bacb991697c12062d3fc87b0f09635f">Reviews</a></li>
      <li><a href="http://localhost/sarangsprei/admin/index.php?route=catalog/information&token=0bacb991697c12062d3fc87b0f09635f">Information</a></li>
    </ul>
  </li>
  <li id="extension"><a class="parent"><i class="fa fa-puzzle-piece fa-fw"></i> <span>Extensions</span></a>
    <ul>
      <li><a href="http://localhost/sarangsprei/admin/index.php?route=extension/installer&token=0bacb991697c12062d3fc87b0f09635f">Extension Installer</a></li>
      <li><a href="http://localhost/sarangsprei/admin/index.php?route=extension/modification&token=0bacb991697c12062d3fc87b0f09635f">Modifications</a></li>
      <li><a href="http://localhost/sarangsprei/admin/index.php?route=extension/module&token=0bacb991697c12062d3fc87b0f09635f">Modules</a></li>
      <li><a href="http://localhost/sarangsprei/admin/index.php?route=extension/shipping&token=0bacb991697c12062d3fc87b0f09635f">Shipping</a></li>
      <li><a href="http://localhost/sarangsprei/admin/index.php?route=extension/payment&token=0bacb991697c12062d3fc87b0f09635f">Payments</a></li>
      <li><a href="http://localhost/sarangsprei/admin/index.php?route=extension/total&token=0bacb991697c12062d3fc87b0f09635f">Order Totals</a></li>
      <li><a href="http://localhost/sarangsprei/admin/index.php?route=extension/feed&token=0bacb991697c12062d3fc87b0f09635f">Feeds</a></li>
          </ul>
  </li>
  <li id="sale"><a class="parent"><i class="fa fa-shopping-cart fa-fw"></i> <span>Sales</span></a>
    <ul>
      <li><a href="http://localhost/sarangsprei/admin/index.php?route=sale/order&token=0bacb991697c12062d3fc87b0f09635f">Orders</a></li>
      <li><a href="http://localhost/sarangsprei/admin/index.php?route=sale/recurring&token=0bacb991697c12062d3fc87b0f09635f">Recurring Orders</a></li>
      <li><a href="http://localhost/sarangsprei/admin/index.php?route=sale/return&token=0bacb991697c12062d3fc87b0f09635f">Returns</a></li>
      <li><a class="parent">Customers</a>
        <ul>
          <li><a href="http://localhost/sarangsprei/admin/index.php?route=sale/customer&token=0bacb991697c12062d3fc87b0f09635f">Customers</a></li>
          <li><a href="http://localhost/sarangsprei/admin/index.php?route=sale/customer_group&token=0bacb991697c12062d3fc87b0f09635f">Customer Groups</a></li>
          <li><a href="http://localhost/sarangsprei/admin/index.php?route=sale/custom_field&token=0bacb991697c12062

Please I need some help. Thank you all!

Newbie

Posts

Joined
Fri Sep 06, 2013 5:49 pm

Post by xseon » Fri Feb 06, 2015 5:36 am

I had the same popup message for my demo user group. I gave the group the rights to view all and the problem dissapeared.

Deeper and Better Category Module
Mass Product Price Change
Unlimited hosting with free domain and all extras


User avatar
New member

Posts

Joined
Thu Dec 01, 2011 3:04 pm
Location - Bulgaria

Post by bradzee » Sun Feb 15, 2015 5:28 am

thanks man embermonkey was the problem. i removed it from vqmod and it worked successfully.

Newbie

Posts

Joined
Mon Oct 20, 2014 3:53 pm

Post by Juris_st » Sun Mar 20, 2016 4:59 pm

uralgit wrote:I experienced a similar problem and solved it simply (after one week headache).
It was arising from an image-name which involved a non standart character
Hi,

Can you tell a little more about the solution? I think it's mine problem too.

Thanks!

Newbie

Posts

Joined
Sun Mar 20, 2016 4:56 pm

Post by vin » Thu Apr 07, 2016 6:33 pm

xseon wrote:I had the same popup message for my demo user group. I gave the group the rights to view all and the problem dissapeared.

vin
Newbie

Posts

Joined
Wed Mar 30, 2016 2:33 pm

Post by Bitstine » Thu May 19, 2016 7:20 am

Check Mail settings.
My mail password was incorrect.
This fixed it

Newbie

Posts

Joined
Thu May 19, 2016 7:19 am

Post by jhfg2005 » Tue Aug 23, 2016 6:34 pm

Hi there, i have the same problem but shown in checkout page when i try to select another shipping methode.
I'm using opencart 2.2.0.0 with journal theme installed
Anyone please help solve this

Newbie

Posts

Joined
Thu Aug 11, 2016 4:49 pm

Post by gardazsolt » Sat Feb 04, 2017 2:08 am

You just have to disable Display Errors:

System - Settings - Server - Display Errors: NO

Newbie

Posts

Joined
Sat Feb 04, 2017 2:02 am
Who is online

Users browsing this forum: No registered users and 20 guests