nenes25/eicaptcha

Error: initContent

Closed this issue · 3 comments

Joaq82 commented

Check if your issue exists

  • I confirm that i've search that my issue does not already exists

Your prestashop version

1.7.8.x

Eicaptcha version

2.4.x

Do you use a specific theme ?

Classic

Describe the bug

Error actived module: No se pudo enable módulo eicaptcha. No se puede instalar la sobrecarga: El método initContent en la clase AuthController ha sido sobreescrito por el módulo onepagecheckoutps versión 4.1.6.

Screenshots

Error text actived module.

Additional context

Module one page

Hello,

The error message is pretty clear.
The module cannot be installed because another module have already rewrite a function that this module need to change.
initContent of class AuthController

As I don't know what's this module is doing i cannot be sure of the fix.
But you will have to do it manually, it's not an issue of this module.

To do so.
Rename the file modules/eicaptcha/override/controllers/front/AuthController.php to AuthController.php.disabled
This will prevent the installation of the content of this file, and will fix the module installation error.
And after that you need to take the content of the function and to merge with the content of your file override/controllers/front/AuthController.php

Regards,

Joaq82 commented

ok, thanks!

stale commented

This issue has been automatically marked as stale because it has not had author feedback. It will be closed if no further activity occurs.