Refused to apply style from
http://localhost/magento2-2.3.5-p1/pub/static/version1593595791/adminhtml/Magento/backend/en_US/extjs/resources/css/ext-all.css
because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
-
frontend loaded successfully or not?Rasik Miyani– Rasik Miyani2020年07月06日 05:51:58 +00:00Commented Jul 6, 2020 at 5:51
-
Some icons are missing..but loaded the front end.Sonali Ghule– Sonali Ghule2020年07月06日 05:59:04 +00:00Commented Jul 6, 2020 at 5:59
-
Magento installed fresh?Rasik Miyani– Rasik Miyani2020年07月06日 06:06:50 +00:00Commented Jul 6, 2020 at 6:06
-
Yes.I have installed the fresh magento.Admin is unable to load.Sonali Ghule– Sonali Ghule2020年07月06日 06:07:49 +00:00Commented Jul 6, 2020 at 6:07
-
please check my aswerRasik Miyani– Rasik Miyani2020年07月06日 06:15:12 +00:00Commented Jul 6, 2020 at 6:15
1 Answer 1
Step -1 Go To Magento\Framework\View\Element\Template\File\Validator.php
replace isPathInDirectories() Method
protected function isPathInDirectories($path, $directories)
{
$realPath = str_replace('\\', '/', $this->fileDriver->getRealPath($path));
if (!is_array($directories)) {
$directories = (array)$directories;
}
foreach ($directories as $directory) {
if (0 === strpos($realPath, $directory)) {
return true;
}
}
return false;
}
Step -2 Run command
php bin/magento c:f
php bin/magento s:s:d -f
I hope this is helpful to you!!
-
It works..Thank You for the help.Sonali Ghule– Sonali Ghule2020年07月06日 06:42:44 +00:00Commented Jul 6, 2020 at 6:42
-
welcome @SonaliGhuleRasik Miyani– Rasik Miyani2020年07月06日 06:46:11 +00:00Commented Jul 6, 2020 at 6:46
-
@RasikMiyani to simplify the solution you can use my composer package, which solve the issue - packagist.org/packages/idealcode/magento2-windows-compatibility, install as
composer require idealcode/magento2-windows-compatibilityEvgeny Levinsky– Evgeny Levinsky2020年07月06日 08:56:12 +00:00Commented Jul 6, 2020 at 8:56
Explore related questions
See similar questions with these tags.