-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://github.com/opencart/opencart/issues/8976
- Loading branch information
danielkerr
committed
Dec 24, 2020
1 parent
48ccb99
commit ee125bb
Showing
2 changed files
with
11 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ee125bb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fix added
public function __destruct() {
to upload/system/library/db/mysqli.php under which inserted$this->close();
line 77will cause php warnings, uncaught errors:
because __destruct is event, after which there will be a need for execution of queries
Also refers to issues #8174, #8684, etc.
ee125bb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error:
$this->db->query("ALTER TABLE
" . DB_PREFIX . "manufacturer
ADD COLUMNdate_modified
DATETIME NOT NULL AFTER date_added");https://overcoder.net/q/67841/%D0%BD%D0%B5%D0%B2%D0%B5%D1%80%D0%BD%D0%BE%D0%B5-%D0%B7%D0%BD%D0%B0%D1%87%D0%B5%D0%BD%D0%B8%D0%B5-%D0%B4%D0%B0%D1%82%D1%8B-%D0%B8-%D0%B2%D1%80%D0%B5%D0%BC%D0%B5%D0%BD%D0%B8-%D0%BD%D0%BE%D0%BC%D0%B5%D1%80-%D0%BE%D1%88%D0%B8%D0%B1%D0%BA%D0%B8-%D0%B1%D0%B0%D0%B7%D1%8B-%D0%B4%D0%B0%D0%BD%D0%BD%D1%8B%D1%85-1292
https://overcoder.net/q/68717/%D0%BA%D0%B0%D0%BA-%D1%8F-%D0%BC%D0%BE%D0%B3%D1%83-%D1%83%D1%81%D1%82%D0%B0%D0%BD%D0%BE%D0%B2%D0%B8%D1%82%D1%8C-%D0%B7%D0%BD%D0%B0%D1%87%D0%B5%D0%BD%D0%B8%D0%B5-%D0%BF%D0%BE-%D1%83%D0%BC%D0%BE%D0%BB%D1%87%D0%B0%D0%BD%D0%B8%D1%8E-%D0%B4%D0%BB%D1%8F-%D0%BF%D0%BE%D0%BB%D1%8F-0000-00-00-000000
Good:
$this->db->query("SET SESSION sql_mode = ''");
$this->db->query("ALTER TABLE
" . DB_PREFIX . "manufacturer
ADD COLUMNdate_modified
DATETIME NOT NULL AFTER date_added");