[Plugin: Posts 2 Posts] Notices from core/side.php
-
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?
- The topic ‘[Plugin: Posts 2 Posts] Notices from core/side.php’ is closed to new replies.