Jump to content

Deprecated hooks and there is no hook displayAdminGridTableBefore in the table of hooks (positions).


ShopMann

Recommended Posts

Hi,

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:

image.png.addf221678ae97f44aa12f0e60da6d29.png

/src/PrestaShopBundle/Resources/views/Admin/Common/Grid/Blocks/table.html.twig :

image.png.664bf86cb1a0078141ce31e6ae57d260.png

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).

I don't know - is it a bug?
Can someone explain what's wrong and how to fix it?

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...