BoKr Posted July 30, 2015 Share Posted July 30, 2015 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 More sharing options...
DotMedia Posted July 31, 2015 Share Posted July 31, 2015 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 169Any of you clever guys got any idea how to fix this please? Link to comment Share on other sites More sharing options...
DotMedia Posted July 31, 2015 Share Posted July 31, 2015 OK, i've submitted this to the forge:http://forge.prestashop.com/browse/PSCSX-6426 Link to comment Share on other sites More sharing options...
Studio1one Posted August 2, 2015 Share Posted August 2, 2015 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 More sharing options...
DotMedia Posted August 3, 2015 Share Posted August 3, 2015 Hi Guys,Please apply these changes and report back here so other people know if it works. It's seems to have fixed the problem for me, everything is working as expected and there are no errors in the log at the moment... thanks Gregory.https://github.com/PrestaShop/socialsharing/pull/17/filesDM 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