Title: [Plugin: Posts 2 Posts] Notice : post not defined through an array
Last modified: August 20, 2016

---

# [Plugin: Posts 2 Posts] Notice : post not defined through an array

 *  Resolved [Francois Lamotte](https://wordpress.org/support/users/francoislamotte/)
 * (@francoislamotte)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-posts-2-posts-notice-post-not-defined-through-an-array/)
 * Hi Scribu,
 * I’ve got a notice with WP-Debug :
 * `Notice: Post type 'produit' is not defined. in /Applications/MAMP/htdocs/myproject/
   wp-content/plugins/posts-to-posts/core/type-factory.php on line 51`
 * The relationship is defined through an array :
 * [https://skitch.com/francoislamotte/8wyuf/post-type-is-not-defined](https://skitch.com/francoislamotte/8wyuf/post-type-is-not-defined)
 * or the better [with the code on pastebin](http://pastebin.com/6ZsG1XKT)
 * Every other custom posts are already defined in other relationships, so I guess
   there is a trouble with his array.
 * Do you need more information?
 * [Here is the full P2P declaration ](http://pastebin.com/pSRU7dcw)in functions.
   php
 * [http://wordpress.org/extend/plugins/posts-to-posts/](http://wordpress.org/extend/plugins/posts-to-posts/)

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

 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-posts-2-posts-notice-post-not-defined-through-an-array/#post-2694946)
 * It means the ‘produit’ post type isn’t registered or is registered after the `
   p2p_register_connection_type()` call.
 *  Thread Starter [Francois Lamotte](https://wordpress.org/support/users/francoislamotte/)
 * (@francoislamotte)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-posts-2-posts-notice-post-not-defined-through-an-array/#post-2694979)
 * Thank you.
 * It’s was indeed a mispelling in the slug of that CP. (noobie 🙂
 * F

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

The topic ‘[Plugin: Posts 2 Posts] Notice : post not defined through an array’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [Francois Lamotte](https://wordpress.org/support/users/francoislamotte/)
 * Last activity: [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-posts-2-posts-notice-post-not-defined-through-an-array/#post-2694979)
 * Status: resolved