Title: [Plugin: Posts 2 Posts] Notices from core/side.php
Last modified: August 20, 2016

---

# [Plugin: Posts 2 Posts] Notices from core/side.php

 *  [Mitsugari Yamamoto](https://wordpress.org/support/users/mityama/)
 * (@mityama)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-notices-from-coresidephp/)
 * Hi,
 * I am getting errors on all my pages:
 * Notice: Trying to get property of non-object in C:\xampp\htdocs\wordpress\wp-
   content\plugins\posts-to-posts\core\side.php on line 84
 * and/or:
 * Notice: Trying to get property of non-object in C:\xampp\htdocs\wordpress\wp-
   content\plugins\posts-to-posts\core\side.php on line 80
 * On these lines, P2P tries to retrieve and work with post type labels ($this->
   get_ptype()->labels->name), so these notices might come from me defining connections
   for non-existant post types in my themes. I need to do that for child themes,
   which use only a subset of the post types from the parent theme, though. Would
   it be possible to use a set of standard labels in case $this->get_ptype() returns
   null?
 * [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)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-notices-from-coresidephp/#post-3071305)
 * > these notices might come from me defining connections for non-existant post
   > types in my themes.
 * Yes, a non-existant post type is the most likely cause.
 * But I don’t understand: you’re registering the connection type from the parent
   theme, but the post types are defined in child themes?
 *  Thread Starter [Mitsugari Yamamoto](https://wordpress.org/support/users/mityama/)
 * (@mityama)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-notices-from-coresidephp/#post-3071396)
 * > But I don’t understand: you’re registering the connection type from the parent
   > theme, but the post types are defined in child themes?
 * The scenario is a multi-system videogame database using the parent theme and 
   several sub-sites, which use child themes of the main site theme, but only cover
   a single system.
 * Both connections and post types are defined in the parent theme. Some child themes
   only inherit a subset of these post types, but all connections. This is because
   many of the connections connect and array of both inherited and non-inherited
   post types to another post type.

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

The topic ‘[Plugin: Posts 2 Posts] Notices from core/side.php’ 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: [Mitsugari Yamamoto](https://wordpress.org/support/users/mityama/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-notices-from-coresidephp/#post-3071396)
 * Status: not resolved