behnam_amini2 Posted April 1, 2016 Share Posted April 1, 2016 (edited) hi i am using ps 1.6 when debug enable this error Appears in Navhook This message will be removed after someone's advice?? Warning: Missing argument 1 for CsQuickSearch::hookdisplayTop(), called in /home/offoffir/public_html/modules/csquicksearch/csquicksearch.php on line 29 and defined in /home/offoffir/public_html/modules/csquicksearch/csquicksearch.php on line 31 website: http://off2off.ir tanks csquicksearch.php Edited April 1, 2016 by behnam_amini2 (see edit history) Link to comment Share on other sites More sharing options...
behnam_amini2 Posted April 1, 2016 Author Share Posted April 1, 2016 Who can get this problem resolved? Link to comment Share on other sites More sharing options...
NemoPS Posted April 2, 2016 Share Posted April 2, 2016 I'd say ask the developer, since it's a custom module. I guess it's missing $params in any case, see the main php file, on that method and line Link to comment Share on other sites More sharing options...
behnam_amini2 Posted April 3, 2016 Author Share Posted April 3, 2016 I solved the problem myself. By changing line 29 to: public function hookDisplayNav($params){ if (Tools::getValue('search_query') || !$this->isCached('csquicksearch.tpl', $this->getCacheId('csquicksearch'))) { $this->calculHookCommon($params); } return $this->display(__FILE__, 'csquicksearch.tpl', Tools::getValue('search_query') ? null : $this->getCacheId('csquicksearch')); } 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