2

I had "magento 2" installed with composer. the installation is running correctly. Now, when I look at the backend or the frontend no Theme appears.

What could be wrong? I have also tried it with the WebWizzard. Since the same error occurs.

Maybe someone can help

7ochem
  • 7,532
  • 14
  • 51
  • 80
htausw
  • 145
  • 1
  • 9

5 Answers5

0

You can run below command(s) to deploy theme static content.

php bin/magento setup:static-content:deploy
php bin/magento setup:upgrade 
php bin/magento cache:clean

Hope this helps.

7ochem
  • 7,532
  • 14
  • 51
  • 80
Krishna ijjada
  • 8,927
  • 6
  • 41
  • 70
0

Navigate to the folder dev/tools/Magento/Tools/View and run this in the command line.

php deploy.php

Else you check these links

Arjun
  • 3,576
  • 23
  • 59
0

Don't forget to chown your files after you ran this as a root user.

Fabian Schmengler
  • 65,791
  • 25
  • 187
  • 421
0

If you are facing theming issue after Installation in magento 2. You can follow these steps :

  1. Run this query :

INSERT INTO core_config_data (path, value) VALUES ('dev/static/sign', 0) ON DUPLICATE KEY UPDATE value = 0;

  1. For local machine run this query:

UPDATE <dbname>.core_config_data SET value = '0' WHERE core_config_data.path LIKE '%web/seo/use_rewrites%';

  1. Remove all the files from pub and var directory :

sudo rm -rf var/di var/generation/ var/page_cache/ var/cache/ pub/static/frontend/ pub/static/adminhtml/ pub/static/_requirejs/ pub/static/deployed_version.txt

  1. Give Permission to var and pub directories of your project :

sudo chmod -R 777 var/* pub/*

  1. Upgrade Setup :

sudo bin/magento setup:upgrade

  1. Deploy content :

sudo php bin/magento setup:static-content:deploy

After these steps, you will be able to see proper theme.

Khan arman
  • 199
  • 1
  • 4
0

You can try Following ways

php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f

Now, Login into admin panel & go to

Content => Configuration(Under design section) => Select your theme as Global.

Now again run following command in Cli

php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
chmod 777 -R var/ pub/static/ generated/

You can check "theme" table in db & also check parent id of your theme.

MR.R DNATH
  • 462
  • 2
  • 10