nhocleopro Posted August 20, 2013 Share Posted August 20, 2013 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 More sharing options...
vekia Posted August 20, 2013 Share Posted August 20, 2013 may know what is "starts > starts" ? Link to comment Share on other sites More sharing options...
nhocleopro Posted August 20, 2013 Author Share Posted August 20, 2013 may know what is "starts > starts" ? Thank you. When i go to Start. Plz see image http://i.upanh.com/vamcbx Link to comment Share on other sites More sharing options...
nhocleopro Posted August 21, 2013 Author Share Posted August 21, 2013 Some body help me. Plz Link to comment Share on other sites More sharing options...
swsindonesia Posted August 21, 2013 Share Posted August 21, 2013 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. 1 Link to comment Share on other sites More sharing options...
nhocleopro Posted August 21, 2013 Author Share Posted August 21, 2013 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 More sharing options...
swsindonesia Posted August 21, 2013 Share Posted August 21, 2013 Hi, create / upload a php file to your website (i.e. myinfo.php) like this : <?php phpinfo(); ?> Then access via your website.com/myinfo.php, examine the value in that page, search for the words PDO and pdo_mysql to make sure your server supports them. Link to comment Share on other sites More sharing options...
nhocleopro Posted August 21, 2013 Author Share Posted August 21, 2013 Hi, create / upload a php file to your website (i.e. myinfo.php) like this : <?php phpinfo(); ?> Then access via your website.com/myinfo.php, examine the value in that page, search for the words PDO and pdo_mysql to make sure your server supports them. This is my phpinfo, please see picture http://i.upanh.com/valyna Link to comment Share on other sites More sharing options...
swsindonesia Posted August 21, 2013 Share Posted August 21, 2013 Hi, I can't get to your link. Can you just upload the image here as attachment thanks Link to comment Share on other sites More sharing options...
nhocleopro Posted August 21, 2013 Author Share Posted August 21, 2013 Hi, I can't get to your link. Can you just upload the image here as attachment thanks Link to comment Share on other sites More sharing options...
swsindonesia Posted August 21, 2013 Share Posted August 21, 2013 Hi, can you scroll down a bit, see if you can find something like this: Judging from your error, there's a good chance something with PDO / PDO mysql is not supported or enabled properly. Link to comment Share on other sites More sharing options...
nhocleopro Posted August 21, 2013 Author Share Posted August 21, 2013 Hi, can you scroll down a bit, see if you can find something like this: 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 More sharing options...
swsindonesia Posted August 21, 2013 Share Posted August 21, 2013 Hi, unfortunately that means your server doesn't support PDO and pdo_mysql, but only enable shared module. You can contact your hosting provider to request for pdo and pdo_mysql extension to be enabled in your account. cheers 1 Link to comment Share on other sites More sharing options...
nhocleopro Posted August 27, 2013 Author Share Posted August 27, 2013 I contact my hosting support and i know my hosting have support PDO, Please help me !!!!!!!! Link to comment Share on other sites More sharing options...
swsindonesia Posted August 28, 2013 Share Posted August 28, 2013 Hi, If your hosting has PDO and PDO_MYSQL as they claim to be, then you should be able to view the similar information in your phpinfo() as the screen shot above shows. Link to comment Share on other sites More sharing options...
san_merah Posted May 13, 2016 Share Posted May 13, 2016 Had the same problem and it was caused by memory limit on the server too low. Link to comment Share on other sites More sharing options...
bone007 Posted January 17, 2017 Share Posted January 17, 2017 (edited) Hey, I got same problem with my Prestashop 1.5.4.1 but I got error 500 when I try to index products for search. I know that pdo is correct because I got same eshop at same VPS and its work perfectly. Can someone please help me how to debug error? Thanks Edited January 17, 2017 by bone007 (see edit history) Link to comment Share on other sites More sharing options...
Medlbn Posted May 10, 2017 Share Posted May 10, 2017 (edited) @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 May 10, 2017 by Medlbn (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts