Jump to content

Fatal error in classes/db/DbPDO.php on line 90


Recommended Posts

Hi every body. I'm was upgrade prestashop form 1.4.7 to 1.5.4. It working well but have problem. When i go to Starts -> Starts . It show error:

Fatal error: Call to a member function fetch() on a non-object in /Applications/MAMP/htdocs/worldcraftstore/classes/db/DbPDO.php on line 90

Plz helper me. Thanks

Link to comment
Share on other sites

Hi,

 

PS 1.5.4 relies on the new MySQL PDO capabilities (pdo and pdo_mysql), while PS 1.4.x doesn't

/* @vekia this still needs confirmation */

 

Please make sure that your server supports this by checking the phpinfo() output.

plz tell me value of phpinfo file?

Link to comment
Share on other sites

Hi, can you scroll down a bit, see if you can find something like this:

xBBSTB.jpg

 

Judging from your error, there's a good chance something with PDO / PDO mysql is not supported or enabled properly.

Thanks you very much but i can't find this on my phpinfo();

Link to comment
Share on other sites

  • 2 years later...
  • 8 months later...
  • 3 months later...

@bone007

 

override  :

public function nextRow($result = false)

{
if (!$result)
$result = $this->result;
return $result->fetch(PDO::FETCH_ASSOC);

}

with  : 

public function nextRow($result = false)
{
if (!$result)
$result = $this->result;
if (!is_object($result))
return false;
return $result->fetch(PDO::FETCH_ASSOC);
}
in override/classes/db/DbPDO.php
Edited by Medlbn (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...