Er, just where exactly are you seeing the queries? The only lines I see in the MySQL class that use die are in the connect() function (called way before you're in a position to run any queries at all):
22. die(Tools::displayError('The database selection cannot be made.'));
25. die(Tools::displayError('Link to database cannot be established.'));
28. die(Tools::displayError('PrestaShop Fatal error: no utf-8 support. Please check your server configuration.'));
If you've properly configured your SERVER then you shouldn't be displaying PHP errors (although you may want to silently log them to a log file) either. You should just show a blank screen. Prestashop will try and impose this on your store, although on some servers it will not be allowed to turn error display off. Paul
I have attahced the file bundled with 1.2.1 please look at the functions that execute queries. Im not sure if your looking at in house version of your software but the die() methods are still being called:
public function getRow($query)
{
$this->_result = false;
if ($this->_link)
if ($this->_result = mysql_query($query.' LIMIT 1', $this->_link))
{
if (mysql_errno())
die(Tools::displayError($this->getMsgError($query)));
return mysql_fetch_assoc($this->_result);
}
if (mysql_errno())
die(Tools::displayError($this->getMsgError($query)));
return false;
}
public function Execute($query)
{
$this->_result = false;
if ($this->_link)
{
$this->_result = mysql_query($query, $this->_link);
if (mysql_errno())
die(Tools::displayError($this->getMsgError($query)));
return $this->_result;
}
if (mysql_errno())
die(Tools::displayError($this->getMsgError($query)));
return false;
}
public function ExecuteS($query, $array = true)
{
$this->_result = false;
if ($this->_link && $this->_result = mysql_query($query, $this->_link))
{
if (mysql_errno())
die(Tools::displayError($this->getMsgError($query)));
if (!$array)
return $this->_result;
$resultArray = array();
while ($row = mysql_fetch_assoc($this->_result))
$resultArray[] = $row;
return $resultArray;
}
if (mysql_errno())
die(Tools::displayError($this->getMsgError($query)));
return false;
}
I have downloaded the file just now to make sure I was not going crazy and the functions above still contain the aforementioned methods.
MySQL.php