myselfidem Posted August 21, 2015 Share Posted August 21, 2015 (edited) Hello, I use PS 1.6.0.6 and the upgrade for customerprivacy gives an error : Fatal error: Using $this when not in object context in /home/xxxxx/xxxxx/xxxxx/xxxxxxx/modules/blockcustomerprivacy/upgrade/install-2.0.0.php on line 10 [PrestaShop] Fatal error in module install-2.0.0: Using $this when not in object context Inside the file : .\modules\blockcustomerprivacy\upgrade\install-2.0.0.php ; I change : $this to $object $return &= $this->registerHook('displayCustomerIdentityForm'); $return &= $this->unregisterHook('header'); To : $return &= $object->registerHook('displayCustomerIdentityForm'); $return &= $object->unregisterHook('header'); And now works fine ! Friendly Edited August 21, 2015 by myselfidem (see edit history) 3 Link to comment Share on other sites More sharing options...
tspl Posted August 21, 2015 Share Posted August 21, 2015 Thank you myselfidem! Link to comment Share on other sites More sharing options...
vidioelf Posted August 21, 2015 Share Posted August 21, 2015 Hi myselfidem! I'm using the PS 1.6.0.14 now and I had the same problem after upgrade! Thank you for the fix. Link to comment Share on other sites More sharing options...
KillerDev Posted August 21, 2015 Share Posted August 21, 2015 Thank you so much ! Link to comment Share on other sites More sharing options...
Alesk Posted August 21, 2015 Share Posted August 21, 2015 Great ! Many Thanks Link to comment Share on other sites More sharing options...
stefan.wikstrm Posted August 21, 2015 Share Posted August 21, 2015 Great, thanks! Link to comment Share on other sites More sharing options...
myselfidem Posted August 21, 2015 Author Share Posted August 21, 2015 (edited) Thanks ! Update will be given soon, I think : https://github.com/PrestaShop/blockcustomerprivacy https://github.com/PrestaShop/blockcustomerprivacy/commit/ca2e55900196b73ef679616a50ae8d451beacf30 Friendly Edited August 21, 2015 by myselfidem (see edit history) 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