Jump to content

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


Recommended Posts

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.thumb.png.cc58e5511cb74243e9907e3d30474e84.png

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

image.thumb.png.9512b4ea00438e2780c80478f123ce3e.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).

Can someone explain what's wrong, what I don't understand and how to fix it?

Edited by Viaceslav (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...
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 by Viaceslav (see edit history)
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...