vendor/magento/framework/view/element/tempalate/file/validator.php (dont exactly copy this url just follow this path)
open this file using any editor and change this line
$realPath = $this->fileDriver->getRealPath($path); //you can comment this out
with this one
$realPath = str_replace('\','/',$this->fileDriver->getRealPath($path));
then goto to
app/etc/di.xml
and search for view_preprocessed
you will find a whole line like this :
MagentoFrameworkAppViewAssetMaterializationStrategySymlink
and change the Symlink with Copy
#1. go to vendor/magento/framework/View/Element/Template/File/Validator.php#
#2. go to the function isPathInDirectories and replace the function with following:#
3
Answers
First Go to magento root directory then :
vendor/magento/framework/view/element/tempalate/file/validator.php (dont exactly copy this url just follow this path)
open this file using any editor and change this line
app/etc/di.xml
and search for view_preprocessed
you will find a whole line like this :
MagentoFrameworkAppViewAssetMaterializationStrategySymlink and change the Symlink with Copy
Magento 2.3
go to libinternalMagentoFrameworkViewElementTemplateFile
go to the function isPathInDirectories and replace the function with following
go to app/etc/di.xml then search for view_preprocessed
you will find a whole line like this :
MagentoFrameworkAppViewAssetMaterializationStrategySymlink and change to MagentoFrameworkAppViewAssetMaterializationStrategyCopy
#1. go to vendor/magento/framework/View/Element/Template/File/Validator.php#
#2. go to the function isPathInDirectories and replace the function with following:#
#3. go to app/etc/di.xml then search for view_preprocessed
you will find a whole line like this :
MagentoFrameworkAppViewAssetMaterializationStrategySymlink and change to
MagentoFrameworkAppViewAssetMaterializationStrategyCopy #