x

The Square Cash App FAQs

I am trying to install Square into Open Cart using the built in FTP installer. The configuration for my FTP is correct. When I upload the Zip file to the store, I get a syntax error. See below. Does anyone know what I am doing wrong?

 

 

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>Administration</title>

<base href="https://www.christiancargo.com/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.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 href="https://www.christiancargo.com/admin/index.php?route=common/dashboard" class="navbar-brand"><img src="view/image/logo.png" alt="OpenCart" title="OpenCart" /></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> Please enter your login details.</h1>

          </div>

          <div class="panel-body">

                                    <div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> No match for Username and/or Password.              <button type="button" class="close" data-dismiss="alert">&times;</button>

            </div>

                        <form action="https://www.christiancargo.com/admin/index.php?route=common/login" method="post" enctype="multipart/form-data">

              <div class="form-group">

                <label for="input-username">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="Username" id="input-username" class="form-control" />

                </div>

              </div>

              <div class="form-group">

                <label for="input-password">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="Password" id="input-password" class="form-control" />

                </div>

                                <span class="help-block"><a href="https://www.christiancargo.com/admin/index.php?route=common/forgotten">Forgotten Password</a></span>

                              </div>

              <div class="text-right">

                <button type="submit" class="btn btn-primary"><i class="fa fa-key"></i> Login</button>

              </div>

                            <input type="hidden" name="redirect" value="https://www.christiancargo.com/admin/index.php?route=extension/installer/upload" />

                          </form>

          </div>

        </div>

      </div>

    </div>

  </div>

</div>

<footer id="footer"><a href="http://www.opencart.com">OpenCart</a> &copy; 2009-2017 All Rights Reserved.<br /></footer></div>

</body></html>

1,246 Views
Message 1 of 1
Report
0 REPLIES 0