skip to Main Content

I have successfully install magento on my system. I am using PHP version 7.1.28, Magento CLI version 2.1.17 and window 10. I have attached the success screen. When I run front-end, There is no sample data in it. also when I run admin panel nothing visible for me.
I have suffered a lot but not getting any solution. I am new on magento version 2. Please help me to solve the problem.

enter image description here

enter image description here

3

Answers


  1. You can check below links for similar issue.

    https://magento.stackexchange.com/questions/102671/magento-2-sample-data-installed-but-not-showing
    https://magento.stackexchange.com/questions/163145/magento-2-sample-data-not-showing

    Basically you should run few basic commands after installation. Have you tried doing that?

    php bin/magento setup:upgrade
    php bin/magento setup:static-content:deploy

    Hope this helps!

    Login or Signup to reply.
  2. As I noticed we are having some issue in Magento 2 with windows operating system, where it was not able to fetch the directory path correctly. For that, need to apply some core fix. try with below solution it might help you.

    Navigate to below file

    vendormagentoframeworkViewElementTemplateFileValidator.php

    In function, isPathInDirectories added below line

    $realPath = str_replace(”, ‘/’, $realPath);

    or refer below code function

    protected function isPathInDirectories($path, $directories)
    {
        if (!is_array($directories)) {
            $directories = (array)$directories;
        }
        $realPath = $this->fileDriver->getRealPath($path);
        $realPath = str_replace('\', '/', $realPath); // extra code added
        foreach ($directories as $directory) {
            if (0 === strpos($realPath, $directory)) {
                return true;
            }
        }
        return false;
    }
    
    Login or Signup to reply.
  3. It may be a file permission issue. Make sure you have a right file permissions

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search