cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to render magento store/admin panel

Unable to render magento store/admin panel

After changing a few settings in .htaccess files and potentially something else, I'm getting the following page every time I render my magento store/admin panel. Seems like I might have broken Apache2. Could someone suggest possible culprits here? Thanks so much in advance.

Screen Shot 2021-03-11 at 1.55.36 AM.png

4 REPLIES 4

Re: Unable to render magento store/admin panel

Hi @jensenckuo6170 

 

Could you share the .htaccess file to investigate? 

It is difficult to say what is causing the issue without the file content.

 

You may try to revert to original .htaccess, if you have a backup file.

 

Thanks

---
Problem Solved Click Accept as Solution!:Magento Community India Forum

Re: Unable to render magento store/admin panel

Hey Mukesh, 

 

Thanks for the response. This is my .htaccess file. I'm currently running locally with MAMP and am seeing the directory instead of rendering the magento store. 

 

The magento directory is /Applications/MAMP/htdocs/magento.

 

Thanks again.

Re: Unable to render magento store/admin panel

Hi @jensenckuo6170,

 

Here is the error that your store has. 

 

In order to fix it, you'll have to locate the file Validator.php with the namespace Magento\Framework\View\Element\Template\File in your vendor dir (vendor/magento/framework/View/Element/Template/File)

 

and change line 138 from

$realPath = $this->fileDriver->getRealPath($path);

to

$realPath = str_replace('\\', '/', $this->fileDriver->getRealPath($path));

 

Make sure to clear your generated folder.

 

Hope this can help you! Let me know if you need further assistance. 

__________

If issue solved, Click Kudos & Accept as Solution

LitExtension - #1 Shopping Cart Migration Expert

LitExtension helps store owners and agencies migrate all important data from one eCommerce platform to another accurately, securely and at the highest speed.

Visit website: http://litextension.com/

Re: Unable to render magento store/admin panel

hii buddy.

have you found the solution for your query ??