Jump to content

socialsharing modul v1.3 & v1.3.1 through error (line 169)


Recommended Posts

PHP error log reports a problem with the social sharing modul at line 169:

 

PHP Fatal error:  Call to a member function getPrice() on a non-object in /usr/www/users/shopexlusive/modules/socialsharing/socialsharing.php on line 169

$this->context->smarty->assign(array(
				'price' => Tools::ps_round($product->getPrice(!Product::getTaxCalculationMethod((int)$this->context->cookie->id_customer), null), _PS_PRICE_COMPUTE_PRECISION_),
Link to comment
Share on other sites

I'm getting the exact same problem:

 

[31-Jul-2015 10:21:21 Europe/London] PHP Fatal error:  Call to a member function getPrice() on a non-object in /home/*********/public_html/modules/socialsharing/socialsharing.php on line 169

Any of you clever guys got any idea how to fix this please?
 

Link to comment
Share on other sites

 

PHP error log reports a problem with the social sharing modul at line 169:

 

PHP Fatal error:  Call to a member function getPrice() on a non-object in /usr/www/users/shopexlusive/modules/socialsharing/socialsharing.php on line 169

$this->context->smarty->assign(array(
				'price' => Tools::ps_round($product->getPrice(!Product::getTaxCalculationMethod((int)$this->context->cookie->id_customer), null), _PS_PRICE_COMPUTE_PRECISION_),

I got the exactly same problem right now when I go to my blog part. Seems like that code is wrong.

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...