vahidafshari Posted September 17, 2013 Share Posted September 17, 2013 (edited) Hi dears in header of my prestashop site i see some line warning. how can i resolve it? Edited September 17, 2013 by vahidafshari (see edit history) Link to comment Share on other sites More sharing options...
Divyesh Prajapati Posted September 17, 2013 Share Posted September 17, 2013 Hi dears in header of my prestashop site i see some line warning. how can i resolve it? Hello, open file called defines.inc.php in config folder... and replace define('_PS_MODE_DEV_', true); with define('_PS_MODE_DEV_', false); 1 Link to comment Share on other sites More sharing options...
vahidafshari Posted September 17, 2013 Author Share Posted September 17, 2013 Hello, open file called defines.inc.php in config folder... and replace define('_PS_MODE_DEV_', true); with define('_PS_MODE_DEV_', false); tnx but it ignore the warning or resolve it? Link to comment Share on other sites More sharing options...
Divyesh Prajapati Posted September 17, 2013 Share Posted September 17, 2013 tnx but it ignore the warning or resolve it? Yes, As per my knowledge it will resolve it... Try it and let me know if it works for you. Link to comment Share on other sites More sharing options...
vahidafshari Posted September 17, 2013 Author Share Posted September 17, 2013 the warning still there , I turn on the Display_error in config.inc.php Link to comment Share on other sites More sharing options...
Vinum Posted September 17, 2013 Share Posted September 17, 2013 Hi, It simply ignore them. You have an override of the frontcontroller with deprecated function. The hookexec() function is normally replaced with hook::exec(). 1 Link to comment Share on other sites More sharing options...
Divyesh Prajapati Posted September 17, 2013 Share Posted September 17, 2013 the warning still there , I turn on the Display_error in config.inc.php can you please give url of your site?? Link to comment Share on other sites More sharing options...
Divyesh Prajapati Posted September 17, 2013 Share Posted September 17, 2013 Hi, It simply ignore them. You have an override of the frontcontroller with deprecated function. The hookexec() function is normally replaced with hook::exec(). Hello, Can you please elaborate more?? Link to comment Share on other sites More sharing options...
vahidafshari Posted September 17, 2013 Author Share Posted September 17, 2013 http://damatajhiz.com/dama/ Link to comment Share on other sites More sharing options...
Vinum Posted September 17, 2013 Share Posted September 17, 2013 Apparently it has an old override with a deprecated function. Perhaps that override comes from an old module not updated to Prestashop 1.5. Now the good function is : hook::exec($hook_name, $hook_args = array(), $id_module = null).So, it can to update the override to replace the old function with the new one but it is more efficient to update the module. Link to comment Share on other sites More sharing options...
vahidafshari Posted September 17, 2013 Author Share Posted September 17, 2013 Apparently it has an old override with a deprecated function. Perhaps that override comes from an old module not updated to Prestashop 1.5. Now the good function is : hook::exec($hook_name, $hook_args = array(), $id_module = null). So, it can to update the override to replace the old function with the new one but it is more efficient to update the module. you mean i have to edit header.tpl and change the hookexec to hook::exec? Link to comment Share on other sites More sharing options...
Vinum Posted September 17, 2013 Share Posted September 17, 2013 (edited) Not the tpl file but the frontcontroller.php in the override directory as said in the warning. But it is more efficient to update your module. Or you can to do nothing the warning are not blocking. Edited September 17, 2013 by Vinum (see edit history) Link to comment Share on other sites More sharing options...
mahdifallah1 Posted February 26, 2020 Share Posted February 26, 2020 hi ihttp://www.fuladsanat.com my site is not header1 in mainpage what do i do 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