Reputation: 316
I installed Magento 2.3 successfully but when type http://localhost/Magento2/, I get a blank page like this:
and these are the errors found in the console:
The same issue is also faced on the admin panel. My current version of PHP is 7.2.14.
Upvotes: 2
Views: 5097
Reputation: 1
'system' => [
'default' => [
'web' => [
'unsecure' => [
'base_media_url' => '{{secure_base_url}}pub/media/',
'base_static_url' => '{{secure_base_url}}pub/static/'
],
'secure' => [
'base_media_url' => '{{secure_base_url}}pub/media/',
'base_static_url' => '{{secure_base_url}}pub/static/'
]
]
]
]
Upvotes: 0
Reputation: 346
I've same problem and solved by these commands:
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
Upvotes: 0
Reputation: 657
You cannot use http://localhost/
as domain name with Magento 2, you should at least use http://localhost.com/
.
Change your vHost in Docker/XAMP/MAMP/WAMP... to match your new domain name, for instance http://localhost.com/
;
Edit your hosts file with sudo permissions :
Debian / MacOS: /etc/hosts
Windows: C:\Windows\System32\drivers\etc\hosts
At the bottom of the file, add the following: 127.0.0.1 localhost.com
Go to your Magento db and run the following query :
UPDATE `core_config_data` SET `value`='http://localhost.com/' WHERE `value`='http://localhost/';
cd /YOUR/PROJECT/PATH
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
http://localhost.com/
(or http://localhost.com/Magento2/
, according to your configuration), and check if everything works.Upvotes: 1