Unexpected CiviCRM behavior after clone
-
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: