cancel
Showing results for 
Search instead for 
Did you mean: 

After installation my home page not loading properly.

After installation my home page not loading properly.

After installing Magento in my machine home page not loading properly.

image1.PNGGenerate Error like thisGenerate Error like this

7 REPLIES 7

Re: After installation my home page not loading properly.

Hello @sakthivel_k1 

 

are you using window?


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: After installation my home page not loading properly.

Yes sir, I am using Windows 8

Replying Message

Yes, Sir 

 

I am using Windows 8 @Sunil Patel 

Re: Replying Message

Hello @sakthivel_k1 

 

 

please check 

window 2.3 not working into local host
solution for that
#/vendor/magento/framework/View/Element/Template/File/Validator.php:139
foreach ($directories as $directory) {
    // Add this line
    $realDirectory = $this->fileDriver->getRealPath($directory);
    // and replace `$directory` with `$realDirectory`
    if (0 === strpos($realPath, $realDirectory)) {
        return true;
    }
}

Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: Replying Message

Hello @sakthivel_k1 

 

is that works, if yes then mark as solution.


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: After installation my home page not loading properly.

Hi @sakthivel_k1 

 

Here is the list of command you need to run in Magento root directory after adding the change shared by @Sunil Patel 

 

sudo rm -Rf pub/static/frontend/* var/pre_processed/* pub/static/_requirejs/*
sudo rm -Rf var/generation/* var/di/* var/cache/*
sudo php bin/magento setup:upgrade
sudo php bin/magento setup:di:compile
sudo php bin/magento setup:static-content:deploy -f
sudo php bin/magento cache:clean
sudo php bin/magento cache:flush
sudo chmod -R 777 var/ pub/ generated/

I hope it will help you.

 

Thanks

Re: After installation my home page not loading properly.

Looks like file permission issues to me.

 

Since you are using Windows I'm not sure what should be the correct file permission.