Hi,
You using Woocommerce Membership for user.
I haven’t yet test with it, so can’t say anything. I’m not promise our plugin compatible with other plugin.
I will transfer your request to our developer team, they will consider check it.
Thanks
Thread Starter
amoras
(@amoras)
Hey,
Thanks for the quick reply.
The guys by Woocommerce sent me the following finding:
To add a little extra context, the error mentioned in your stacktrace is being thrown by Memberships, though it is hooked into a standard WordPress action, so not something directly related to the Memberships functions. The action it is listening for is: ‘wp_insert_post’. According to the developer guide for WordPress, this should provide three arguments, but according to the stack trace, the Essential Real Estate plugin only provided one.
I hope this may be helpful for the developer team.
Thread Starter
amoras
(@amoras)
The plugin file were they are referring to:
/plugins/essential-real-estate/public/partials/property/class-ere-property.php(233): do_action(‘wp_insert_post’, ‘wp_insert_post’)
Can you tell me what i have to do now? Example: copy this code to file….etc to fix your problem.
Or something like that.
To be honest, i don’t know what have to do now.
Hey @g5theme!
Hope you don’t mind me jumping in here, I’m from the SkyVerge support team and I have been working with @amoras on this issue.
From the stack trace that we were sent, it looks like line 233 of the class-ere-property.php class is calling the wp_insert_post action:
#3 /home/deb94557/domains/svamoras.nl/public_html/ghost/wp-content/plugins/essential-real-estate/public/partials/property/class-ere-property.php(233): do_action('wp_insert_post', 'wp_insert_post')
Memberships is following the current WordPress developer guidelines, which state that there should be three arguments for this action.
The wp_insert_post action should be called with three arguments: $post_ID, $post, and $update. In order to resolve this error, could you please make sure you are passing these three arguments when calling do_action ‘wp_insert_post‘?
Cheers!
Simon.
Hi @skyverge thanks for your guide.
I checked and fixed it with latest version 1.9.9
Please update and let me know.
If any help, let me know.
Hope you like my plugin.
Thanks
Thread Starter
amoras
(@amoras)
Hey @g5theme and @skyverge team,
Thanks a lot for the help. The proposed solution from @skyverge fixed the issue.
Soon the plugin will be used on our official site. We think our the students are gonna love the nieuw feature made possible by the plugin from @g5theme.
Thanks a lot!
Hey all,
That’s great news! I’m glad it all worked out in the end. Thanks for getting this sorted so quickly.
Cheers,
Simon.