[Plugin: Posts 2 Posts] 1.1.6 update p2p_type value in DB are wrong.
-
hi scribu
I have been using your plugin for a long time now and I never had any big problem with it. However i upgraded from 1.1.5 to 1.1.6 and now my OLD connections wont show neither in the admin when editing my CPT nor in my templates when trying to call connections.
My DB wp_p2p table, p2p_type field shows a wrong value ‘be5621a6d82960cdeb69d7b5338aa2d4’ instead of ‘sets2model’. Only the one connection i created after the 1.1.6 update is shown correctly. BTW all other fields are correct.
this is the code i am using
$connected = new WP_Query( array( 'connected_type' => 'sets2model', 'connected_items' => $post->ID, ) ); if ( $connected->have_posts() ) : while( $connected->have_posts() ) : $connected->the_post(); the_title(); endwhile; endif;
which gives me this: Warning: Invalid argument supplied for foreach() in /home/…../wp-content/plugins/posts-to-posts/core/query.php on line 95
I also tried this with the same result.
All connections were register as in here
I noticed some other people were having this issue as well, I hope this info helps to figure out the problem.
I know i can fix this manually in my DB, but i rather wait for you to say what will be the future of this issue for later releases.
Thanks in Advance.
- The topic ‘[Plugin: Posts 2 Posts] 1.1.6 update p2p_type value in DB are wrong.’ is closed to new replies.