Hi,
After installation of 2.3 on PC with XAMPP, I can open store page but can't open admin page in Chrome. The page always stays as the following photo without any error code. Cloud anyone help please? Thanks in advance.
Hello @michael_ye
I can not see attached image, can you please check var/logs and share here.
Apart from that please change the mode to the developer with below command:
php bin/magento deploy:mode:set developer
php bin/magento cache:flush
Now if there any error you can see on screen.
Please run below commands:
php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy -f php bin/magento cache:flush sudo chmod -R 0777 var/ pub/ genrated/
No. I have the same problem. This solution didn't help.
hello @Manish Mittal,
I changed to developer mode and got the following error messages. can you advise how to fix it? Thanks.
Here is the error: https://github.com/magento/magento2/issues/19480
You'll have to locate the file Validator.php with the namespace Magento\Framework\View\Element\Template\File
in your vendor dir (vendor/magento/framework/View/Element/Template/File)
and change line 138 from
$realPath = $this->fileDriver->getRealPath($path);
to
$realPath = str_replace('\\', '/', $this->fileDriver->getRealPath($path));
Be sure to clear your generated folder.
Hi @michael_ye,
Just try this Vindel's solution But if you can't get cleared with issue just hide the first line of code and delete the '\\', in the second line of code.
$realPath = $this->fileDriver->getRealPath($path);
$realPath = str_replace('\\', '/', $this->fileDriver->getRealPath($path));
Best regards
Madhuresan
Bootsgrid
Hi @vindel @Yuriy@Manish Mittal
Thank you all for providing solutions.
I tried Vindel's solution now i can see admin login page. But when I logged in I only can click the "DASHBOARD" and "FIND PARTNERS & EXTENSIONS" in the left panel. All other menus don't have any response when I click them. And all the icons or logos just display a square.
Please keep helping. many thanks.
Hi michael_ye,
These are the only menu points without submenu (the others have a JavaScript triggered overlay).
Are fonts & icons loaded correctly?
Could you have a look in the network-tab of your development console in your Browser (F12) and see if all files are loaded successfully?
Hi,
The same problem we have faced in the ubuntu system. It's has been resolved by the below steps.
1. Need to give permission for the Directory from apache2.
etc/apache2/apache2.conf
From
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
To
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
2. Enable rewrite for apache2.
sudo a2enmod rewrite
and restart the apache
sudo service apache2 restart
I opened the developer tool in the browser and found the following errors in loading the admin page. Please can you advise how to fix them. thanks.
Refused to apply style from 'http://localhost/magento/pub/static/version1543705601/adminhtml/Magento/backend/en_US/extjs/resources/css/ytheme-magento.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
(index):23 GET http://localhost/magento/pub/static/version1543705601/adminhtml/Magento/backend/en_US/requirejs/require.js net::ERR_ABORTED 404 (Not Found)
(index):1 Refused to apply style from 'http://localhost/magento/pub/static/version1543705601/adminhtml/Magento/backend/en_US/jquery/jstree/themes/default/style.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
(index):24 GET http://localhost/magento/pub/static/version1543705601/adminhtml/Magento/backend/en_US/mage/requirejs/mixins.js net::ERR_ABORTED 404 (Not Found)
(index):1 Refused to apply style from 'http://localhost/magento/pub/static/version1543705601/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.
(index):32 GET http://localhost/magento/pub/static/version1543705601/adminhtml/Magento/backend/en_US/images/magento-icon.svg 404 (Not Found)
(index):24 GET http://localhost/magento/pub/static/version1543705601/adminhtml/Magento/backend/en_US/mage/requirejs/mixins.js 404 (Not Found)
requirejs-config.js:70 Uncaught TypeError: require is not a function
at requirejs-config.js:70
at requirejs-config.js:77
at requirejs-config.js:512
(anonymous) @ requirejs-config.js:70
(anonymous) @ requirejs-config.js:77
(anonymous) @ requirejs-config.js:512
(index):40 Uncaught TypeError: require.config is not a function
at (index):40
(anonymous) @ (index):40
(index):64 Uncaught TypeError: require is not a function
at (index):64
(anonymous) @ (index):64
(index):306 Uncaught TypeError: require is not a function
at (index):306
(anonymous) @ (index):306
(index):457 Uncaught TypeError: require is not a function
at (index):457
(anonymous) @ (index):457
(index):502 Uncaught TypeError: require is not a function
at (index):502
(anonymous) @ (index):502
(index):543 Uncaught TypeError: require is not a function
at (index):543
(anonymous) @ (index):543
(index):566 Uncaught TypeError: require is not a function
at (index):566
(anonymous) @ (index):566
(index):589 Uncaught TypeError: require is not a function
at (index):589
(anonymous) @ (index):589
2(index):39 GET http://localhost/magento/pub/static/version1543705601/adminhtml/Magento/backend/en_US/fonts/opensans/regular/opensans-400.woff2 net::ERR_ABORTED 404 (Not Found)
(index):229 GET http://localhost/magento/pub/static/version1543705601/adminhtml/Magento/backend/en_US/fonts/opensans/bold/opensans-700.woff2 net::ERR_ABORTED 404 (Not Found)
(index):39 GET http://localhost/magento/pub/static/version1543705601/adminhtml/Magento/backend/en_US/fonts/opensans/semibold/opensans-600.woff2 net::ERR_ABORTED 404 (Not Found)
4(index):1 GET http://localhost/magento/pub/static/version1543705601/adminhtml/Magento/backend/en_US/fonts/opensans/regular/opensans-400.woff net::ERR_ABORTED 404 (Not Found)
favicon.ico:1 GET http://localhost/magento/pub/static/version1543705601/adminhtml/Magento/backend/en_US/Magento_Theme/favicon.ico 404 (Not Found)