I have updated Bedrock to 1.7.3, and now get The theme directory “theme1” does not exist. after each deploy.
WP then switches to 2017 and if I then choose my theme1, it works!?
I have now found that the “current” symlink is also pointing to a non-existant release folder.
Where does this error appear? On the site or in the output in terminal?
Is your Trellis setup also syncing databases?
Could a plugin be trying to set the default theme somehow and failing? (Have you tried disabling all plugins and redeploying?)
Is your theme accidentally a submodule of your project (this happened to me once when I git cloned rather than using composer and had me confused and frustrated for like two hours)
The error is shown on the front end.
Trellis doesn’t do any db syncing that I know of.
All the plugins installed, are currently deactivated.
Theme is “hardcoded” into /app/themes/ folder, and is available as soon as i clone my Bedrock repo.
But on vagrant there is no deploying, or?
Also as soon as the theme downgrade happens to Twenty 17, and I re-activate my theme, all things work fine.
I think this might be more of a symlink issue that I mentioned, as the “current” symlink in the /srv/www/mysite/ folder seems to be pointing to the release folder that’s a bit old. I tried deleting the symlink, removing all the release folders from /srv/www/fapps.info/releases folder, but no go.
I did that but it didn’t help. It seems that “current” is always pointing to an earlier release (even though there are newer releases successfully deployed to releases folder.
In the mean time got some error about php-fpm, and decided to rebuild the whole machine, re-provisioned and redeployed coupled of times, and the same thing happens.
You gotta be more specific. “some error” isn’t the error, so please provide details.
I’m assuming whatever changes you’ve made to your Trellis or Bedrock projects are causing your conflict. I’m not able to reproduce, so try again with fresh Trellis and Bedrock installs without modifications.
When I commented out these lines there was no further deployment problems. Not sure why the template and stylesheet root paths are being updated every deploy but it doesn’t appear to work with child themes.
Just wanted to add that I have been experiencing the exact same problem.
I have a custom theme that is included in my git repo for the site, and after each deploy I got the error “The theme directory “MY THEME NAME” does not exist.”.
I also have this problem.
My trellis deploy was working fine until suddenly it showed this message. My version of Trellis is 0.9.9 from around January 10. Any Hints?