cancel
Showing results for 
Search instead for 
Did you mean: 

Unbale to access Frontend and Backend

Unbale to access Frontend and Backend

I am using Magento 2.4 and when accessed the site from frotend or backend got below error 

 

{"0":"Expecting a string, got NULL","1":"#1 Laminas\\Uri\\Uri->parse() called at [vendor\/magento\/module-backend\/App\/Area\/FrontNameResolver.php:140]\n#2 Magento\\Backend\\App\\Area\\FrontNameR$

1 REPLY 1

Re: Unbale to access Frontend and Backend

Hello @ishaqdahot 

 

Run following commands :

 

sudo chmod 777 -R var/ generated/ pub/static/ pub/media/
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento c:f

Hope it works !

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy