ShopMann Posted September 27, 2023 Share Posted September 27, 2023 (edited) When using some modules, the error log file captures such errors: [27-Sep-2023 10:02:49 Europe/Berlin] PHP Deprecated: The hook "displayAdminListBefore" is deprecated, please use "displayAdminGridTableBefore" instead in module "prestaregistrationform". in /www/htdocs/xxxxx/xxx.xx/classes/Hook.php on line 875 I would like to unhook this module from "displayAdminListBefore" and transplate it to "displayAdminGridTableBefore". The problem is that the hook "displayAdminGridTableBefore" is not present at the hooks (positions) list: /src/PrestaShopBundle/Resources/views/Admin/Common/Grid/Blocks/table.html.twig : Prestashop 8.1.1. Was upgraded from Prestashop 1.7.8.10 via 1 Click Upgrade Module 4.16.1 (or 4.16.2 - I don't remember). Can someone explain what's wrong, what I don't understand and how to fix it? Edited September 27, 2023 by Viaceslav (see edit history) Link to comment Share on other sites More sharing options...
Inform-All Posted October 11, 2023 Share Posted October 11, 2023 Yeah Prestashop decided to remove a list of hooks in the PS8.1 version. So you would have to hook all the modules again, more info here. 1 Link to comment Share on other sites More sharing options...
ShopMann Posted October 12, 2023 Author Share Posted October 12, 2023 (edited) Am 11.10.2023 um 1:53 PM schrieb Inform-All: Yeah Prestashop decided to remove a list of hooks in the PS8.1 version. So you would have to hook all the modules again, more info here. Yeah, that's exactly what I want to do: unhook the module from old hook "displayAdminListBefore" and then to transplate the module to "displayAdminGridTableBefore" - this hook is actual and was not removed by Prestashop. The problem is that there is not this hook in my Prestashop 8.1.1. Look the screenshots in my first message. I don't know why or if it can be restored? Edited October 12, 2023 by Viaceslav (see edit history) Link to comment Share on other sites More sharing options...
Inform-All Posted October 13, 2023 Share Posted October 13, 2023 As described in the link that i provided, you see that there are a couple of extra steps you need to do for PS8.1 (and higher). For example did you add actionProductFormBuilderModifier? 1 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