i have a error while connecting 2 posts by hook...
toolset_connect_posts( 'product-participant', $product_id, $New_participant_id,true) ;
it used to work .
the error in log code isÇ
2021/07/06 11:34:59 [error] 11458#0: *243513 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught InvalidArgumentException: The intermediary post must be null, a post ID or a WP_Post instance. in /home/beoryih8/domains/beor.co.il/public_html/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/inc/public_api/m2m.php:550