I am getting Unexpected error,
Exception: Warning: SessionHandler::read(): open(/var/opt/remi/php72/lib/php/session/sess_5292j25aa4ugpdgrv9r6a3l3p8, O_RDWR) failed: Permission denied (13) in /usr/share/nginx/html/gta/vendor/magento/framework/Session/SaveHandler/Native.php on line 22 in /usr/share/nginx/html/gta/vendor/magento/framework/App/ErrorHandler.php:61
How to solve the error?
Platform : Centos 7, Nginx
Hi @Aveeva ,
Can you please check below link regarding your error.
If my answer is useful, please Accept as Solution & give Kudos
The Exception SessionHandler error might disrupt the last step of the Magento 2 installation. The session.save_handler PHP parameter set to other session storages than files causes the issue. For instance, it can be set to redis or memcached.
Since the older code versions cause the problem, you can try to upgrade it. However, to fix the issue, you need to try the steps below,
In order to upgrade the current code, follow the steps below,
;session.save_path = <path>
session.save_handler = files
If the error persists, you can follow the below solution:
'session' => array ( 'save' => 'files' ),
'session' => array ( 'save' => 'db' ),
Thus, I hope the above solutions help you to fix the "Magento 2.3 - Unexpected Exception: Warning: SessionHandler::read()" error.