If you have White screen / Blank web problems with PrestaShop 1.6 (after installation) with error messages :
Fatal error: Call to undefined method mysqli_result::fetch_all() in /public_html/classes/db/DbMySQLi.php on line 112
The error above informs that there is a code error in the program /public_html/classes/db/DbMySQLi.php on line 112.
You can follow the following steps to repair it:
- Access your hosting cPanel -> file manager -> go to your web root folder
- Enter the classes/db folder
– Edit file DbMySQLi.php
- Find the following code: return $result->fetch_all(MYSQLI_ASSOC); can use CTRL+F to find the code on your screen.
- Replace the code return $result->fetch_all(MYSQLI_ASSOC); to the following:
if (method_exists($result, “fetch_all”)) return $result->fetch_all(MYSQLI_ASSOC); else { $ret = array(); while ($row = $this->nextRow($result)) $ret[] = $row; return $ret; } |