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.
- 
 try to re run the upgrade command and redeploy static contents and also flush the cache afterfmsthird– fmsthird2020年06月25日 00:55:03 +00:00Commented Jun 25, 2020 at 0:55
 
2 Answers 2
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
 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.
- 
 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: linkuser3182742– user31827422020年06月25日 18:32:20 +00:00Commented Jun 25, 2020 at 18:32