The following might provide some relief until you can get around to doing the upgrade (which should still be done as soon as possible if you're on MySQL5 now):
/includes/classes/db/mysql/query_factory.php
around line 41 you'll find:```
if ($this->link) {
if (@mysql_select_db($zf_database, $this->link)) {
$this->db_connected = true;
return true;
} else {
Insert an extra line as shown:```
if ($this->link) {
if (@mysql_select_db($zf_database, $this->link)) {
[B] @mysql_query("SET SESSION sql_mode = ''", $this->link);[/B]
$this->db_connected = true;
return true;
} else {
Doing this might be enough to tell MySQL 5 to ignore some of the strictness it normally enforces.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.