prestamax Posted January 25, 2014 Share Posted January 25, 2014 (edited) I just installed a prestashop 1.5 theme and I am getting the following error message in the frontend Warning: Missing argument 1 for HomeFeatured::hookDisplayHomeTabContent(), called in /var/www/virtual/xxx/htdocs/modules/homefeatured/homefeatured.php on line 128 and defined in /var/www/virtual/xxx/htdocs/modules/homefeatured/homefeatured.php on line 108 The featured module is working though. Any tips how I can get rid of this message? The theme comes with a modified homefeatured.tpl ... homefeatured.php is untouched. Edited January 27, 2014 by prestamax (see edit history) Link to comment Share on other sites More sharing options...
prestamax Posted January 25, 2014 Author Share Posted January 25, 2014 I have reinstalled prestashop 1.6 with the default bootstrap theme activated. Everything looks fine but what confuses me is that I can't find featured products on homepage even though the module is activated. There is a tab "new arrifvals" and "most popular" ... but where are the featured products on homeoage? The module is activated and installed. Is it only me who can't see the featured products on homepage with default bootstrap theme? Link to comment Share on other sites More sharing options...
prestamax Posted January 25, 2014 Author Share Posted January 25, 2014 (edited) Just figured out ... by default featured products is hooked to homepage tabs content and appear there as 'popular'. If I hook featured products on home page to the hook "displayHome" featured products appear with the error message Warning: Missing argument 1 for HomeFeatured::hookDisplayHomeTabContent(), called in /var/www/virtual/xxx/htdocs/modules/homefeatured/homefeatured.php on line 128 and defined in /var/www/virtual/xxx/htdocs/modules/homefeatured/homefeatured.php on line 108 Edited January 26, 2014 by prestamax (see edit history) Link to comment Share on other sites More sharing options...
prestamax Posted January 25, 2014 Author Share Posted January 25, 2014 (edited) I changed line 128 of homefeatured.php from public function hookDisplayHome($params) { return $this->hookDisplayHomeTabContent(); } to public function hookDisplayHome($params) { return $this->hookDisplayHomeTabContent($params); } Now the error message has gone. Edited January 26, 2014 by prestamax (see edit history) Link to comment Share on other sites More sharing options...
Lucas Cerdan Posted January 27, 2014 Share Posted January 27, 2014 Not sure on which version you're testing because this was already fixed/changed: https://github.com/PrestaShop/PrestaShop/blob/1.6/modules/homefeatured/homefeatured.php Link to comment Share on other sites More sharing options...
selectshop.at Posted January 27, 2014 Share Posted January 27, 2014 Did you installed default theme from 1.5. before ? I'm not having the theme problems you are having, but knowing that PS 1.5. only uses an adaptive and not really responsive theme, I never tried to use another theme which is not designed with bootstrap framework. Perhaps your problems are coming from the mix of different architectures ? Link to comment Share on other sites More sharing options...
prestamax Posted January 27, 2014 Author Share Posted January 27, 2014 I think Lucas pointed to the right direction. My local install was still 1.6.0.1. I don't have this problem on the installation on the server which is 1.6.0.2 ... sorry for the confusion. Link to comment Share on other sites More sharing options...
Recommended Posts