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

Update WP theme paths task incorrectly checks wp_template_root var #731

Closed
4 of 6 tasks
tmdk opened this issue Jan 10, 2017 · 4 comments
Closed
4 of 6 tasks

Update WP theme paths task incorrectly checks wp_template_root var #731

tmdk opened this issue Jan 10, 2017 · 4 comments

Comments

@tmdk
Copy link

tmdk commented Jan 10, 2017

Submit a feature request or bug report

Bug report

The options template_root and theme_root are overridden on deploy even if template_root is empty or set to /themes . As a result, it can break the activated theme (see discourse discussion below)

It seems the fix for #718 contains a bug: i think it should compare wp_template_root.stdout instead of wp_template_root in the Update WP theme paths task.

Please describe your local environment:

Ansible version: 2.2.0.0

OS: Windows 10

Vagrant version: 1.9.1

Where did the bug happen? Development or remote servers?

Remote

Is there a related Discourse thread or were any utilized (please link them)?

Seems to be discussing the same bug: https://discourse.roots.io/t/the-theme-directory-theme1-does-not-exist/8485/12

@akovalyov
Copy link
Contributor

I can confirm that I experience this bug. I have a custom theme in site/web/app/themes folder. Right now after each deployment I need to activate one of default themes and reactivate a custom one.

@retlehs
Copy link
Member

retlehs commented Jan 11, 2017

you can try reverting #720 in the meantime

@akovalyov
Copy link
Contributor

@retlehs awesome, it worked! Thanks a lot! Probably the solution which was proposed via wp option is not complete.

swalkinshaw added a commit that referenced this issue Jan 13, 2017
Fix #731 - Use option stdout to fix theme paths
@emanuelet
Copy link

Deploying with the latest code from master I encountered a similar problem where apparently the option was pointing to web/wp-content/themes while I have my theme in web/app/themes and so I had to manually change the configuration in Update WP theme paths

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants