[Site Cache + Dynamic Modules for Prestashop] How to fix bug related with prestashop system - Authentication page not working - only for Prestashop 1.7.x.x ?



This problem maybe related with prestashop system

 

Try this changes:

 

1. /controllers/front/AuthController.php - line 55 - 61

 

replace code:


$hookResult = array_reduce(

Hook::exec('actionSubmitAccountBefore', array(), null, true),

function ($carry, $item) {

return $carry && $item;

},

true

);

on the:


$actionSubmitAccountBefore = Hook::exec('actionSubmitAccountBefore', array(), null, true);
if(strlen($actionSubmitAccountBefore)==0){

$actionSubmitAccountBefore = array();

}


$hookResult = array_reduce(

$actionSubmitAccountBefore,

function ($carry, $item) {

return $carry && $item;

},

true

);



You will also find other SPM Prestashop Modules