Hola, estoy intentando incluir y activar el módulo de STEL Order en mi Prestashop y me da el siguiente error:
[19-Mar-2024 14:28:59 Europe/Madrid] PHP Deprecated: The hook "Header" is deprecated, please use "displayHeader" instead in module "ps_imageslider". in /home/sonoguia/public_html/http://aimasstore.com/classes/Hook.php&source=gmail&ust=1711008717298000&usg=AOvVaw0qFrTcGXkXTgqTT9cqlF8 s">aimasstore.com/classes/Hook.php on line 921
[19-Mar-2024 14:28:59 Europe/Madrid] PHP Deprecated: The hook "Header" is deprecated, please use "displayHeader" instead in module "ps_searchbar". in /home/sonoguia/public_html/http://aimasstore.com/classes/Hook.php&source=gmail&ust=1711008717298000&usg=AOvVaw0qFrTcGXkXTgqTT9cqlF8 s">aimasstore.com/classes/Hook.php on line 921
[19-Mar-2024 14:28:59 Europe/Madrid] PHP Deprecated: The hook "Header" is deprecated, please use "displayHeader" instead in module "ps_shoppingcart". in /home/sonoguia/public_html/http://aimasstore.com/classes/Hook.php&source=gmail&ust=1711008717298000&usg=AOvVaw0qFrTcGXkXTgqTT9cqlF8 s">aimasstore.com/classes/Hook.php on line 921
[19-Mar-2024 14:28:59 Europe/Madrid] PHP Deprecated: The hook "Header" is deprecated, please use "displayHeader" instead in module "ps_legalcompliance". in /home/sonoguia/public_html/http://aimasstore.com/classes/Hook.php&source=gmail&ust=1711008717298000&usg=AOvVaw0qFrTcGXkXTgqTT9cqlF8 s">aimasstore.com/classes/Hook.php on line 921
[19-Mar-2024 14:28:59 Europe/Madrid] PHP Deprecated: The hook "Header" is deprecated, please use "displayHeader" instead in module "ets_whatsapp". in /home/sonoguia/public_html/http://aimasstore.com/classes/Hook.php&source=gmail&ust=1711008717298000&usg=AOvVaw0qFrTcGXkXTgqTT9cqlF8 s">aimasstore.com/classes/Hook.php on line 921
[19-Mar-2024 14:28:59 Europe/Madrid] PHP Deprecated: The hook "Header" is deprecated, please use "displayHeader" instead in module "paypal". in /home/sonoguia/public_html/http://aimasstore.com/classes/Hook.php&source=gmail&ust=1711008717298000&usg=AOvVaw0qFrTcGXkXTgqTT9cqlF8 s">aimasstore.com/classes/Hook.php on line 921
[19-Mar-2024 14:28:59 Europe/Madrid] PHP Deprecated: The hook "Header" is deprecated, please use "displayHeader" instead in module "stelorder". in /home/sonoguia/public_html/http://aimasstore.com/classes/Hook.php&source=gmail&ust=1711008717298000&usg=AOvVaw0qFrTcGXkXTgqTT9cqlF8 s">aimasstore.com/classes/Hook.php on line 921
[19-Mar-2024 14:28:59 Europe/Madrid] PHP Fatal error: Uncaught Error: Call to undefined method PrestaShop\PrestaShop\Adapter\Presenter\Product\ProductListingLazyArray::hasAttributes() in /home/sonoguia/public_html/http://aimasstore.com/modules/ps_legalcompliance/ps_legalcompliance.php:875&source=gmail&ust=1711008717298000&usg=AOvVaw0KSwy5wL1sgwDDhtapg3j u">aimasstore.com/modules/ps_legalcompliance/ps_legalcompliance.php:875
Stack trace:
#0 /home/sonoguia/public_html/http://aimasstore.com/classes/Hook.php(1043)&source=gmail&ust=1711008717298000&usg=AOvVaw0xqTi3T13XK8io99ldBPS O">aimasstore.com/classes/Hook.php(1043): Ps_LegalCompliance->hookDisplayProductPriceBlock(Array)
#1 /home/sonoguia/public_html/http://aimasstore.com/classes/Hook.php(418)&source=gmail&ust=1711008717298000&usg=AOvVaw3qM34ceFlKkm5car3nITe 2">aimasstore.com/classes/Hook.php(418): HookCore::coreCallHook(Object(Ps_LegalCompliance), 'hookDisplayProd...', Array)
#2 /home/sonoguia/public_html/http://aimasstore.com/classes/Hook.php(981)&source=gmail&ust=1711008717298000&usg=AOvVaw0G99uFUNTn2IFGXwXmaob C">aimasstore.com/classes/Hook.php(981): HookCore::callHookOn(Object(Ps_LegalCompliance), 'displayProductP...', Array)
#3 /home/sonoguia/public_html/http://aimasstore.com/config/smarty.config.inc.php(198)&source=gmail&ust=1711008717298000&usg=AOvVaw2d5xvAj0CWXLAJop42-Ga 1">aimasstore.com/config/smarty.config.inc.php(198): HookCore::exec('displayProductP...', Array, NULL)
#4 /home/sonoguia/public_html/http://aimasstore.com/classes/Smarty/SmartyLazyRegister.php(81)&source=gmail&ust=1711008717298000&usg=AOvVaw0qAGIIE4nEguVW17-lrEN P">aimasstore.com/classes/Smarty/SmartyLazyRegister.php(81): smartyHook(Array, Object(Smarty_Internal_Template))
#5 /home/sonoguia/public_html/http://aimasstore.com/var/cache/prod/smarty/compile/classic/03/65/95/0&source=gmail&ust=1711008717298000&usg=AOvVaw1UzUp585IOPqVVHv65a89 E">aimasstore.com/var/cache/prod/smarty/compile/classic/03/65/95/0 in /home/sonoguia/public_html/http://aimasstore.com/modules/ps_legalcompliance/ps_legalcompliance.php&source=gmail&ust=1711008717298000&usg=AOvVaw2igjIlYXz1c22AqO1BPR- 3">aimasstore.com/modules/ps_legalcompliance/ps_legalcompliance.php on line 875
El causante del 500, apunta a que es el marcado como "Fatal error" --> Uncaught Error: Call to undefined method PrestaShop\PrestaShop\Adapter\Presenter\Product\ProductListingLazyArray::hasAttributes() in /home/sonoguia/public_html/http://aimasstore.com/modules/ps_legalcompliance/ps_legalcompliance.php:875&source=gmail&ust=1711008717298000&usg=AOvVaw0KSwy5wL1sgwDDhtapg3j u">aimasstore.com/modules/ps_legalcompliance/ps_legalcompliance.php:875
Contenido solo visible a usuarios registrados
Hola Guillermo.
El error indica que esta llamando a un metodo o funcion hasAttributes() que no está definido, es decir, busca el método hasAttributes() y no lo encuentra.
Prueba actualizar prestashop a la última version de la rama 7x que es la 1.7.8.11
Si no se soluciona despues de actualizar tendras que consultarlo con el soporte del modulo ya que esta llamando a un método que no existe.
Un saludo