Title: [Plugin: Posts 2 Posts] Debug Notice?
Last modified: August 20, 2016

---

# [Plugin: Posts 2 Posts] Debug Notice?

 *  Resolved [aces](https://wordpress.org/support/users/aces/)
 * (@aces)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-debug-notice/)
 * I am using the debug bar plugin on a local dev site.
 * The 2 custom post type archives pages get a notice ending with:
    `\wp-content\
   plugins\posts-to-posts\core\side.php:164 - Undefined property: stdClass::$post_type`
 * Everything seems to work properly so it isn’t critical, but I would like it to
   go away and don’t know where to start?
 * [http://wordpress.org/extend/plugins/posts-to-posts/](http://wordpress.org/extend/plugins/posts-to-posts/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-debug-notice/#post-3024560)
 * Please paste your `p2p_register_connection_type()` call.
 *  Thread Starter [aces](https://wordpress.org/support/users/aces/)
 * (@aces)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-debug-notice/#post-3024579)
 *     ```
       function my_connection_types() {
   
       	p2p_register_connection_type( array(
   
       		'reciprocal' => true,
       		'title' => 'property location',
   
       		'name' => 'property_to_city',
       		'from' => 'properties',
       		'to' => 'locations',
       		'admin_column' => 'any'
   
       	) );
       }
   
       add_action( 'p2p_init', 'my_connection_types' );
       ```
   
 *  Thread Starter [aces](https://wordpress.org/support/users/aces/)
 * (@aces)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-debug-notice/#post-3024607)
 * I think I solved my issue.
 * I had a posts to posts widget on the archive pages which wasn’t necessary.
 * When I disable the widget for those pages I don’t get the debug notice….

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: Posts 2 Posts] Debug Notice?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/posts-to-posts_7a8e9d.svg)
 * [Posts 2 Posts](https://wordpress.org/plugins/posts-to-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/posts-to-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/posts-to-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/posts-to-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/posts-to-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/posts-to-posts/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [aces](https://wordpress.org/support/users/aces/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-debug-notice/#post-3024607)
 * Status: resolved