TRYING TO UPGRADE OPENCART NOTICE ERROR
Posted: Fri Jun 07, 2019 7:25 pm
Upgrading opencart and receiving the following error and cannot progress past step one on the /install page.
SyntaxError: Unexpected token < in JSON at position 0 parsererror Notice: A non well formed numeric value encountered in /home/nc8gy0olocmr/public_html/system/library/db/mysqli.php on line 8{"success":"Patch 1000 has been applied (1 of 10)","next":"index.php?route=upgrade\/upgrade\/next&step=2"}
Any ideas on how to fix this? Tried hours of Google/research, the code on line 8 is: $this->connection = new \mysqli($hostname, $username, $password, $database, $port);
line 8 with the rest of the code below:
<?php
namespace DB;
final class MySQLi {
private $connection;
public function __construct($hostname, $username, $password, $database, $port = '3306') {
$this->connection = new \mysqli($hostname, $username, $password, $database, $port);
if ($this->connection->connect_error) {
throw new \Exception('Error: ' . $this->connection->error . '<br />Error No: ' . $this->connection->errno);
}
$this->connection->set_charset("utf8");
$this->connection->query("SET SQL_MODE = ''");
}
Thanks in advance.
SyntaxError: Unexpected token < in JSON at position 0 parsererror Notice: A non well formed numeric value encountered in /home/nc8gy0olocmr/public_html/system/library/db/mysqli.php on line 8{"success":"Patch 1000 has been applied (1 of 10)","next":"index.php?route=upgrade\/upgrade\/next&step=2"}
Any ideas on how to fix this? Tried hours of Google/research, the code on line 8 is: $this->connection = new \mysqli($hostname, $username, $password, $database, $port);
line 8 with the rest of the code below:
<?php
namespace DB;
final class MySQLi {
private $connection;
public function __construct($hostname, $username, $password, $database, $port = '3306') {
$this->connection = new \mysqli($hostname, $username, $password, $database, $port);
if ($this->connection->connect_error) {
throw new \Exception('Error: ' . $this->connection->error . '<br />Error No: ' . $this->connection->errno);
}
$this->connection->set_charset("utf8");
$this->connection->query("SET SQL_MODE = ''");
}
Thanks in advance.