Comments (3)
Hi, I cannot reproduce this issue in a testing environment. Can you tell us more about your configuration?
Here are the steps I took to reproduce:
- Create a new Trellis instance
- Duplicate the
site
directory, call itsecond_site
- Update production
wordpress_sites.yml
andvault.yml
adding a second site to each, changing the key, url, and subtree path as necessary - Provision production
- Deploy first site
- Deploy second site
- Set up WordPress and log into each.
- Make a change on the first site (change the "styles" of the default theme).
The change was NOT reflected on the second site. This issue was not reproduced.
So can you tell us more?
from bedrock.
Thanks for checking @MWDelaney 🙏 I've been meaning to come back with more info as I know I wrote this report super quick.
I didn't realise but I can actually replicate this in my local. I will try to get a repeatable demo up for you to check, but all I have to do to trigger this is add the change from #714 into two sites and it goes haywire.
I'll come back to add more, but here's some screenshots to show what I'm seeing and the steps I took:
- Start with two sites set up without changes from #714, login to both.
- Add changes to site 1 (in the screnshots, this is the right hand side), re-login as it signs you out
- Add changes to site 2 (in the screenshots, this is the left hand side), visit wp-admin and see site 1 details shown.
Before
![Screenshot 2024-05-02 at 9 33 09 am](https://private-user-images.githubusercontent.com/12812394/327272427-4c8850fc-7bc9-4f6e-8b0c-78b47b90c72f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM5MjQ5MDQsIm5iZiI6MTcyMzkyNDYwNCwicGF0aCI6Ii8xMjgxMjM5NC8zMjcyNzI0MjctNGM4ODUwZmMtN2JjOS00ZjZlLThiMGMtNzhiNDdiOTBjNzJmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE3VDE5NTY0NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThjOTdjNWEzYWZiMjViNGExMGUxMGRkNjI0Y2U3M2U5MTNjNTMyMjI3ZWM3ZmExMTVmYWY1OWRiYmJkY2VhNTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.f_zEYj9dbVz72Cp2D9S--zTsaNbJiPfMJkOWMHr6oa8)
After
![Screenshot 2024-05-02 at 9 38 54 am](https://private-user-images.githubusercontent.com/12812394/327272440-63b39992-c83b-49fe-b4fa-812632d14731.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM5MjQ5MDQsIm5iZiI6MTcyMzkyNDYwNCwicGF0aCI6Ii8xMjgxMjM5NC8zMjcyNzI0NDAtNjNiMzk5OTItYzgzYi00OWZlLWI0ZmEtODEyNjMyZDE0NzMxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE3VDE5NTY0NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRjMmQ0NTk4NjM2OTc0OGFiYmIxODUxMWEwNjMwNWIyMzg2M2RkYjRhODU5ZWE2ZDFmYzM4NDhmZDIyYTBlMzAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.XmP0AuQmUev4physA3sLnWmOQaUHPL83VAL8mzBWhPY)
from bedrock.
I've narrowed this down to usage with Redis, can reproduce consistently with a test setup.
Scratch that. In prepping the repo for someone to look at and reproduce, I've found the error of my ways. 🤦♂️
We were using Config::define('WP_CACHE_KEY_SALT', getenv('DB_NAME'));
to avoid conflicts with dbs when using Redis. The getenv()
turned out to be the issue. Change to env()
and voila, no more issues. Should have read the issue notes more clearly, it does say about getenv()
(and putenv()
).
I'll leave the repo up, maybe it'll help someone else. Thanks for looking at this 🙏
from bedrock.
Related Issues (20)
- Bug: Multisite not working HOT 1
- Bug: WP_ENVIRONMENT_TYPE set doesn't check if constant is already defined HOT 6
- ADD: Local environment in application.php HOT 1
- Wordpress Version in composer.json is ignored HOT 1
- Upgrading WP from 6.x to 6.3.1 stops loading core block css from wp-includes HOT 3
- There is no documentation on how to add custom blocks to a theme/plugin HOT 1
- Add file to configure production environments
- New `WP_DEVELOPMENT_MODE` constant HOT 2
- Cannot override eg. DISALLOW_FILE_MODS in .env?? HOT 3
- Redis Object Cache not working on WP_ENV='production' HOT 1
- html appended to core javascript files HOT 1
- [Feat] Keep the themes folder clean by skipping installing default themes during updates HOT 1
- [Feat] Also ignore env files not starting with `.env` HOT 2
- Add `WP_DISABLE_FATAL_ERROR_HANDLER=true` constant to development
- 404 on all perm link on frontend HOT 1
- phpdotenv warning about missing .env in theme folder HOT 3
- Seperate dynamic from static content for containerisation HOT 1
- WP CLI occurs “Error establishing a database connection.” in Bedrock project HOT 4
- DDEV installation wp-admin can't find themes or plugins HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bedrock.