Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bi-directional-Sync works but if wp-post created first, no civi-contact are created #24

Closed
jbonlinea opened this issue Sep 14, 2021 · 4 comments

Comments

@jbonlinea
Copy link

Hi there

I've set up this plug on on a site that already had cpt, but no civi untill now, and have one case where civi-contact creation do not occurs

In my case I intend to sync Wp-User <=> Civi-Contact <=> Wp-Post

  • if I create a Wp-user :

    • the Civi-Contact is created
    • the Wp-Post as well !!! Awesome this is awesome !
  • if I create a Civi-Contact :

    • a Wp-post is created,
    • and I have the option to create a User from the Civi-Contact page !!! this is also awesome
  • if I create a Wp-Post,

    • the Civi-Contact is not created :(
    • obviously the user neither (but we don't expect that)
  • if I edit a user/contact.post :

    • everything syncs if the post already has it's civi contact counter part
    • otherwise the post is not sync (both from civi of wp)

I can't explain why it comes from ? I've enable wp-debug, but nothing pops

Do you have any ideas where could I look to fing a clue and fix this ?

thank's in advance

Note that's I'm on a wp multisite

Here are my "versions"
wp 5.8.1
civi 5.41 : active on site by site basis
civicrm-wp-profle-sync : latest commit, active on site by site basis
civicrm admin utilities : latest commit, active network wide

@christianwach
Copy link
Owner

if I create a Wp-Post, the Civi-Contact is not created

@jbonlinea Do you have a CiviCRM Multi-Domain install?

@jbonlinea
Copy link
Author

if I create a Wp-Post, the Civi-Contact is not created

@jbonlinea Do you have a CiviCRM Multi-Domain install?

Hi,
well no, as I'm not doing multidomain, but multi instance...
basically the sites shares plug-in code in wp-content/plugins, but each site has its own civicrm folder and database

@christianwach
Copy link
Owner

multi instance

As the docs suggest, you've got yourself a very complicated system that will almost certainly require custom code.

if I create a Wp-Post, the Civi-Contact is not created

Returning to this, then, I honestly don't know why this is the case for you. Works for me on a test Multisite (and Multi-Network) with a similar configuration. 🤷

@jbonlinea
Copy link
Author

jbonlinea commented Sep 14, 2021

ok ok...

Sometimes men need a kick in the ass, but sometimes it is the machine that really needs it :D

As said, I "added" this plug-in to a wp site that already had a bunch a post of a given post type.

What I did thus is :
created the acf field group
enabled you plug-in
mapped the post type

it didn't work as explaiend above, thus I re-mapped the post-type, turn all plug-in off and on again, then only the mandatory plug-in for this feature... no luck

And I just have re-saved the acf group, and boom it works

so kick your machine not only where it deserve, but everywhere else you may think of ;)

Edit : this is for @christianwach 🥇 plugin 💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants