Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Magento 2.1.3 Custom theme can not be applied #7841

Closed
Tonop opened this issue Dec 16, 2016 · 24 comments
Closed

Magento 2.1.3 Custom theme can not be applied #7841

Tonop opened this issue Dec 16, 2016 · 24 comments

Comments

@Tonop
Copy link

Tonop commented Dec 16, 2016

Preconditions

  1. Magento 2.1.3

Steps to reproduce

  1. Design Configuration
  2. Apply Custom Theme to store view.

Expected result

  1. Custom theme applied to store view

Actual result

  1. Default store view theme applied
@borisvankatwijk
Copy link

borisvankatwijk commented Dec 16, 2016

We are having the same problem with one of our shops upgraded to 2.1.3.

Initially the database was correctly configured, but as we tried to resave the storeview design theme, it changed the value to the default scope value.

@Ctucker9233
Copy link

Same here.

@Ctucker9233
Copy link

Editing the store view under content=>configuration makes no difference. It'll tell you it saved the configuration but then it still shows the theme as being default. Part of my problem was that the home page for each store view had somehow become unset. Very uncool @magento-team. Might I suggest pulling 2.1.3 until this problem is fixed? It clearly isn't ready.

@cadoworld
Copy link

Same Here.

@cadoworld
Copy link

I managed to change the theme if you change the setting as single shop.

Store > Configuration > General > General > Single-Store Mode > YES

content > Configuration > Edit
Default theme > Smartwave Porto

@Ctucker9233
Copy link

@cadoworld Does that work if you have more than one store?

@Ctucker9233
Copy link

I reverted to 2.1.2. Thank goodness that worked!

@Ctucker9233
Copy link

Ctucker9233 commented Dec 17, 2016

For version 2.1.3, when you run php bin/magento setup:static-content:deploy, it looks like there is some sort of theme minification script that runs. I wonder if this is what is messing up our custom themes. I'll dig around a little bit.

@Ctucker9233
Copy link

@magento-team What files get called when php bin/magento setup:static-content:deploy gets run? I think I can figure this out if I know where to look. Otherwise, it's a needle in a haystack.

@mtuinstra
Copy link

@Ctucker9233
Module: module-deploy
Class: DeployStaticContentCommand
Path: vendor/magento/module-deploy/console/command/DeployStaticContentCommand.php

Maybe you can catch your result from there ;)

@pascaladriaansen
Copy link

To me it looks like this issue might also be related to #7815 and #7840. Seems like there is an issue with configuration scope and inheritance at multiple places in the config, see this comment.

@mtuinstra
Copy link

I've got it to work by doing the following steps:

  • Delete rows in db with path 'design/theme/theme_id' from table 'core_config_data'
  • Run bin/magento indexer:reindex

When you refresh the design page you should see no-theme set for all the stores.
Now just start resaving/setting your themes on Store View Level, for us the Store Level was giving problems.

Make sure to clear cache if its on ;)!

Let me know if this also works for you guys!

@lennartbee
Copy link

lennartbee commented Dec 20, 2016

@mtuinstra this worked for us but the logo's configured in the CMS did not appear. We had to manually add them as described on http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/themes/theme-create.html#logo_declare

@Tjitse-E
Copy link
Contributor

Same issue here. We've reverted to Magento 2.1.2, this solved the problem.

@lennartbee
Copy link

Earlier I wrote that removing the rows from core_config_data worked. It is however not working flawlessly anymore, we have to manually add the config rows to core_config_data after edits.

@Ctucker9233
Copy link

I'm still digging to see if I can find the problem. Stay tuned guys.

@yumicom
Copy link

yumicom commented Dec 22, 2016

Same problem - Custom theme can not be applied

@sevos1984
Copy link
Contributor

sevos1984 commented Dec 23, 2016

@Tonop I don't have this problem in 2.1.3. I have set two storeviews within main website, then set blank theme to second storeview and all works fine. Could you post your stores configuration here?

@grischunya
Copy link

Perhaps you are using a custom theme to the type of virtual? Try to change the physical and update the cache. It helped me

@alexpoletaev
Copy link

Guys, you will find a temporary workaround here #7840 (comment) . It will fix the configuration retrieval from the website scope.

@BvdVen
Copy link

BvdVen commented Jan 5, 2017

In my situation the theme was already set before upgrading to 2.1.3 after the upgrade all settings in the Design Configuration aren't used and just shows default logo's, mail header, footer etc.

@yumicom
Copy link

yumicom commented Feb 9, 2017

It works in Magento 2.1.4

@Ctucker9233
Copy link

2.1.4 indeed fixed this issue.

@maksek
Copy link
Contributor

maksek commented Feb 28, 2017

As confirmed by @Ctucker9233 and @yumicom issue is fixed, is still have the issue, feel free to comment.

@maksek maksek closed this as completed Feb 28, 2017
magento-devops-reposync-svc pushed a commit that referenced this issue Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests