Jump to content

[solved] blockcustomerprivacy upgrade error


Recommended Posts

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 by myselfidem (see edit history)
  • Like 3
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...