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,856
  • 6
  • 53
  • 113

2 Answers2

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.

Rizwan Khan
  • 1,939
  • 2
  • 17
  • 40
  • 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

    – user3182742 Jun 25 '20 at 18:32
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

Sanjay Jethva
  • 1,399
  • 4
  • 18
  • 40