White screen / Blank Pada PrestaShop 1.6

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;
}

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.