Closed rochamarcelo closed 1 year ago
The method AuthenticationComponent::impersonate results with the error Serialization of 'Closure' is not allowed.
Serialization of 'Closure' is not allowed
This error is fixed by calling the method getOriginalData : $identity = $this->getIdentity()->getOriginalData();
getOriginalData
$identity = $this->getIdentity()->getOriginalData();
Error trace:
session_write_close CORE/src/Http/Session.php:381 Cake\Http\Session->close CORE/src/Http/Server.php:93 Cake\Http\Server->run ROOT/webroot/index.php:40
The method AuthenticationComponent::impersonate results with the error
Serialization of 'Closure' is not allowed
.This error is fixed by calling the method
getOriginalData
:$identity = $this->getIdentity()->getOriginalData();
Error trace: