I tried to install Magento 2 on Windows10, XAMPP. It experiment got a successfully installed page. But it is not work correctly. This is a browser image
enter image description here
Anyone knows how to solve it ? Thanks in advance.
-
please check your php, mysql versionChirag Parmar– Chirag Parmar2019年10月25日 06:27:24 +00:00Commented Oct 25, 2019 at 6:27
-
Its Not Preferred to install magento on Ubuntu see meetanshi.com/blog/magento-2-system-requirementsWaqar Ali– Waqar Ali2019年10月25日 09:12:09 +00:00Commented Oct 25, 2019 at 9:12
-
Magento 2 System Requirements Operating Systems Requirements Linux distributors such as CentOS, Ubuntu, Debian or RedHat Enterprise Linux are easy to install Magento 2.Ranjeet Kumar– Ranjeet Kumar2019年10月25日 16:53:17 +00:00Commented Oct 25, 2019 at 16:53
2 Answers 2
I have same issue to with magento 2.3 on Windows 10, backoffice page show blank page with brown background.
after searching the problem on the web, finally found solution
- open file
/vendor/magento/framework/View/Element/Template/File/Validator.phpin magento install dir , you will find onLINE NO. 138
$realPath = $this->fileDriver->getRealPath($path);
replace with :
$realPath = str_replace('\\', '/', $this->fileDriver->getRealPath($path));
Your login page showing, but the icon is missing in login page and after login
- open file app/etc/di.xml in magento install dir, find
Magento\Framework\App\View\Asset\MaterializationStrategy\Symlink
and replace with
Magento\Framework\App\View\Asset\MaterializationStrategy\Copy
- Then go to var/cache , delete all folder / file
- refresh the page, done.
If still face issue then go to cmd open your magento dir then run all cmd one by one
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin/magento indexer:reindex
php bin/magento cache:flush
-
thank you for your answer but I can't find "$realPath = $this->fileDriver->getRealPath($path);" in /vendor/magento/framework/View/Element/Template/File/Validator.php fileAlex Kibar– Alex Kibar2019年10月25日 07:52:14 +00:00Commented Oct 25, 2019 at 7:52
-
which version you are using..?Sangeeta Chandaliya– Sangeeta Chandaliya2019年10月25日 07:52:52 +00:00Commented Oct 25, 2019 at 7:52
-
in magento 2.3 you will find on LINE NO. 138Sangeeta Chandaliya– Sangeeta Chandaliya2019年10月25日 07:55:13 +00:00Commented Oct 25, 2019 at 7:55
-
@SangeetaChandaliya Please help on this question. magento.stackexchange.com/questions/293336/…Kirti Nariya– Kirti Nariya2019年10月31日 05:07:41 +00:00Commented Oct 31, 2019 at 5:07
version :2.3.3 But I see a thing ;program looks for http://localhost/magento2/pub/static/version1571915454/frontend/Magento/luma/en_US/fonts/opensans/ folder for some files but Really this version1571915454 folder is not exist
-
In Magento 2.3.3 you will find "YourMagentofolder /vendor/magento/framework/View/Element/Template/File/Validator.php" this file..if not found this file that means you don't download proper file. It's Magento default file.Sangeeta Chandaliya– Sangeeta Chandaliya2019年10月25日 10:05:53 +00:00Commented Oct 25, 2019 at 10:05
-
Pub/static is generated folder, you don't need to change in this file.Sangeeta Chandaliya– Sangeeta Chandaliya2019年10月25日 10:06:35 +00:00Commented Oct 25, 2019 at 10:06
-
Validator.php file is exist and Pub/static/frontend folder is exist but pub/static/version1571915454/frontend... folder is not exist. each installation comes with another number( /version##########)Alex Kibar– Alex Kibar2019年10月25日 10:35:37 +00:00Commented Oct 25, 2019 at 10:35
-
you don't need to update in pub folder file, you should need to update in "vendor/magento/framework/View/Element/Template/File/Validator.php" this file. please read my answer properly.Sangeeta Chandaliya– Sangeeta Chandaliya2019年10月25日 10:39:14 +00:00Commented Oct 25, 2019 at 10:39
-
the line 138 of validator.php = foreach ($directories as $directory) { if (0 === strpos($this->fileDriver->getRealPath($path), $directory)) { return true; } }Alex Kibar– Alex Kibar2019年10月25日 10:39:22 +00:00Commented Oct 25, 2019 at 10:39