0

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.

Partab Saifuddin Zakir
1,3021 gold badge21 silver badges47 bronze badges
asked Oct 25, 2019 at 6:23
3
  • please check your php, mysql version Commented Oct 25, 2019 at 6:27
  • Its Not Preferred to install magento on Ubuntu see meetanshi.com/blog/magento-2-system-requirements Commented 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. Commented Oct 25, 2019 at 16:53

2 Answers 2

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

  1. open file /vendor/magento/framework/View/Element/Template/File/Validator.php in magento install dir , you will find on LINE 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

  1. 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
  1. Then go to var/cache , delete all folder / file
  2. 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
answered Oct 25, 2019 at 6:29
4
  • 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 file Commented Oct 25, 2019 at 7:52
  • which version you are using..? Commented Oct 25, 2019 at 7:52
  • in magento 2.3 you will find on LINE NO. 138 Commented Oct 25, 2019 at 7:55
  • @SangeetaChandaliya Please help on this question. magento.stackexchange.com/questions/293336/… Commented Oct 31, 2019 at 5:07
0

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

answered Oct 25, 2019 at 8:29
8
  • 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. Commented Oct 25, 2019 at 10:05
  • Pub/static is generated folder, you don't need to change in this file. Commented 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##########) Commented 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. Commented 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; } } Commented Oct 25, 2019 at 10:39

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.