0

I'm currently developing a website on a local installation of Magento 2.

I was following advice on how to add a .phtml file to my pages. Customize Footer in magento2

I followed one solution that advised to run compile command after making the changes.

php bin/magento setup:di:compile

I did this and now my Magento 2 website no longer loads.

I'm not sure what has happened or how to fix it.

In system.log I'm only seeing the following:

[2020年06月25日 00:01:47] main.ERROR: Unable to resolve the source file for 'frontend/_view/en_GB/Magento_Theme/favicon.ico' [] []
[2020年06月25日 00:01:47] main.CRITICAL: Unable to resolve the source file for 'frontend/_view/en_GB/Magento_Theme/favicon.ico' [] []

Can I undo this command?

Any solution would be hugely appreciated.

Nagaraju Kasa
5,9518 gold badges59 silver badges116 bronze badges
asked Jun 25, 2020 at 0:31
1
  • try to re run the upgrade command and redeploy static contents and also flush the cache after Commented Jun 25, 2020 at 0:55

2 Answers 2

0

please run below command

php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
php bin/magento cache:clean
answered Jun 26, 2020 at 3:49
0

Run Magento upgrade, compile, and deploy commands as below.

Upgrade

php bin/magento s:up

Compile

php bin/magento s:d:c

Deploy static content

php bin/magento s:s:d

Make sure to give proper permissions fo folders and directories.

answered Jun 25, 2020 at 5:01
1
  • I followed the accepted answer here: link The Admin Panel and website now load but the functionality and images are broken. I believe I need to set the folder and directories permissions but I'm using XAMPP for Windows so I'm not sure how to run the necessary commands. The find command (as described here) doesn't work in XAMPP: link Commented Jun 25, 2020 at 18:32

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.