georginho Posted March 3, 2016 Share Posted March 3, 2016 (edited) Hi, I'm trying to access modules but am getting the error message: [PrestaShop] Fatal error in module file :/home/xxxx/public_html/modules/ebay/upgrade/Upgrade-1.12.2.php:Call to a member function deleteConfigurationByName() on a non-object I wasn't getting this message last week and haven't tried to upgrade anything so I don't know why this is now happening. I've looked in the module file causing the error and it contains the following code: function upgrade_module_1_12_2($module) { if (Configuration::get('EBAY_SYNCHRONIZE_EAN')) { $module->setConfiguration('EBAY_SYNCHRONIZE_EAN', 'EAN'); } $module->ebay_profile->deleteConfigurationByName('EBAY_SPECIFICS_LAST_UPDATE'); return true; } I don't even think the client wants to integrate with eBay from their website. How can I get around this problem? Can I just remove the upgrade folder? Thanks for your help. Edited March 3, 2016 by georginho (see edit history) Link to comment Share on other sites More sharing options...
georginho Posted March 3, 2016 Author Share Posted March 3, 2016 I can see the same issue has been raised here: https://www.prestashop.com/forums/topic/510658-error-installing-ebay/ https://www.prestashop.com/forums/topic/510516-fatal-error-in-module-upgrade-1122/ Link to comment Share on other sites More sharing options...
georginho Posted March 3, 2016 Author Share Posted March 3, 2016 Well, because I don't want to use this module anyway, I commented out all the code within the Upgrade-1.12.2.php file like this: function upgrade_module_1_12_2($module) { /* if (Configuration::get('EBAY_SYNCHRONIZE_EAN')) { $module->setConfiguration('EBAY_SYNCHRONIZE_EAN', 'EAN'); } $module->ebay_profile->deleteConfigurationByName('EBAY_SPECIFICS_LAST_UPDATE'); */ return true; } This meant I could then access the Modules folder in the Dashboard and then could disable the eBay module. I then went back into the Upgrade-1.12.2.php file and uncommented the code again just so everything is back to as it was. This isn't a proper fix and won't help anyone trying to use the eBay module but will be a good enough workaround for anyone who is getting held up by this module upgrade. 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