Web Analytics

Fill the form & Get Installation Support

Magento 2.3.5-P2 error cannot use a scalar value as an array in SessionManager.php on line 492

The following error occurs while we using Redis for session storage Or file session storage :

– Please follow the below steps to resolve it :

Step 1: Please first override the following file: vendor/magento/framework/Session/SessionManager.php

Step 2: Open SessionManager.php and find following function ‘_getHosts()’  replace below line from this function :

replace it with:

That’s it! The error should be solved now.



Fill the below form if you have any Magento programming need.

    Recent Articles

    Author Info

    Hire n. jethva

    Get a Free Quote

      /* second popup */

      Connect With Us