Fatal error: Call to a member function connect() on a non-object in …
-
I’ve used P2P with Formidable for a few years now without a problem. With the new release of Formidable Forms 2.0.11 and above I get this error when attempting to connect the post created by a form and another post that already exists.
Fatal error: Call to a member function connect() on a non-object in ...
Here is the code I am using:
p2p_type( 'dogs_to_cats' )->connect( $form_id, $parent_post_id, array('date' => current_time('mysql')) );
both
$form_id
and$parent_post_id
return the proper id respectively. Anyone have a thought on why I would all the sudden get this error? This is where it fires (which has worked fine until recently.add_filter('frm_after_create_entry', 'create_object_connections', 50, 2);
- The topic ‘Fatal error: Call to a member function connect() on a non-object in …’ is closed to new replies.