Magento Startup issue must resolve

magento startup issues must resolved

Magento Common issue at installation

While installation you must take care of following 2 issues

 

Create proper filename using “-” 

file_put_contents(~/mag246/generated/metadata/primary|global|plugin-list.php): failed to open stream: No such file or directory in mag246\vendor\magento\framework\Interception\PluginListGenerator.php

  • Find File in magento project
    ~/vendor/magento/framework/Interception/PluginListGenerator.php

find line given bellow 

$cacheId = implode('|', $this->scopePriorityScheme) . "|" . $this->cacheId;

and replace with

$cacheId = implode('-', $this->scopePriorityScheme) . "-" . $this->cacheId;

Magento Admin Black Screen Issue

 

Locate File :

~\vendor\magento\framework\View\Element\Template\File\Validator.php

 

Modify the Code: Replace the line:

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

with:

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

it will generate all files properly so admin panel work smooth

Leave a Reply

Your email address will not be published. Required fields are marked *