Unexpected CiviCRM behavior after clone
-
I cloned a managed WordPress install, but noticed that when I added a contact into CiviCRM it appeared in both the original and the cloned WordPress instance.
This was unexpected to me as I thought a clone would be completely separate.
Do the plugins of managed WordPress installs share data?
-
I ran into an issue a bit ago similar to this. When I cloned the app it copied the database details from the old WordPress app into the cloned version. You can open wp-config.php on both apps and see if they match. If they match, then that would more than likely be the problem.
-
@superhua this is most likely because CiviCRM in clone is using the same database as the previous installation. How does one configure CiviCRM ? Do you have to give it database information ? In general, it's not possible for the clone to access the previous app's database.
Another aspect could be that maybe CiviCRM is using an API or external service? In that case too, contacts will appear in both places.
-
@superhua Is https://docs.civicrm.org/installation/en/latest/wordpress/ the setup/download you are talking about? Just testing it out myself.
Edit: OK, indeed, when installing CiviCRM, it's reading the raw DB credentials from wordpress:
And it's stored raw in the above civicrm.settings.php file: