Kerm Posted March 20, 2017 Share Posted March 20, 2017 Did some one know how i can fix this error in BO on Import page.. Prestashop 1.6.1.11 Link to comment Share on other sites More sharing options...
bellini13 Posted March 20, 2017 Share Posted March 20, 2017 have you made any changes or perhaps customized the DB or DbPDO classes? Or have you made any changes to the AdminImportController? The error implies that it is trying to execute the enableCache function statically, however this is not a static function. DbPDO::enableCache() It is a public function declared in the parent DB class, but cannot be used statically. Link to comment Share on other sites More sharing options...
Kerm Posted March 23, 2017 Author Share Posted March 23, 2017 Nope, i disable all overrides, update prestashop to 1.6.12 and still get this error... Link to comment Share on other sites More sharing options...
Kerm Posted March 23, 2017 Author Share Posted March 23, 2017 Fatal error: Uncaught Error: Call to undefined method DbPDO::enableCache() in site.com/controllers/admin/AdminImportController.php:3586 Stack trace: #0 site.com/classes/controller/Controller.php(178): AdminImportControllerCore->postProcess() #1 site.com/classes/Dispatcher.php(367): ControllerCore->run() #2 site.com/admin123/index.php(58): DispatcherCore->dispatch() #3 {main} thrown in site.com/controllers/admin/AdminImportController.php on line 3586 Link to comment Share on other sites More sharing options...
bellini13 Posted March 23, 2017 Share Posted March 23, 2017 what are you trying to import (products, categories, images etc...)? I have done imports recently on PS v1.6.1.10, but not on .11 or .12. I use PDO driver and never encountered this before, so not sure if this is being caused by some custom change that is not being stated, or perhaps a PHP version defect? (what PHP are you using?) Link to comment Share on other sites More sharing options...
Kerm Posted March 24, 2017 Author Share Posted March 24, 2017 what are you trying to import (products, categories, images etc...)? I have done imports recently on PS v1.6.1.10, but not on .11 or .12. I use PDO driver and never encountered this before, so not sure if this is being caused by some custom change that is not being stated, or perhaps a PHP version defect? (what PHP are you using?) I seen this error on import page open.... I dunno where is problem, atm i fix this error by rewrite all files from classes folder on files from 1.6.1.4 version, also i take AdminImportController.php file from 1.6.1.4 and now all ok... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now