I have 2 separate WordPress installs. One is on a subdomain of the other. Each have their own database.
When I change the active theme on either of the installs it will change the theme on both.
Setting Theme A as active on site 1 will also set theme A on site 2.
Visiting site 2 will then show an error as Theme A does not exist there.
Lastly, viewing the wp_settings table shows that the each site still has the correct themes and Site 2 does not have Theme A set as active!
How? I'm stumped
@paul It's as if subdomain is using primary domain's DB instead of its own. You've definitely tested that both affect each other, and confirmed that the record only updates in their own DB?
@paul Ah, and where is the DB connection string set? I'm not too familiar with WP, I'm assuming it's somewhere deep in its bowels.
@Zergling_man there is a wp-config.php file where the DB connection is set. It was previously using a .env file to set constants that were then used in the wp-config.php but I have stripped that out to set the vars directly.
Each site has its own content which appears on the backend of each site correctly too - they don't show each others content!
@Zergling_man Yep. If I set one theme as active then try to visit the other site I will see this as the template doesn't exist there.
However, checking the DB for the second site shows the original theme is still set there
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!