Title: [Plugin: Posts 2 Posts] Still missing data after 1.4.1
Last modified: August 20, 2016

---

# [Plugin: Posts 2 Posts] Still missing data after 1.4.1

 *  Resolved [Francois Lamotte](https://wordpress.org/support/users/francoislamotte/)
 * (@francoislamotte)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-still-missing-data-after-141/)
 * Hello,
 * After the latest update 1.4.1, the back-end is recovered.
 * But there is strange behavior on the front-end where many fields coming from 
   objects are not rendered anymore.
 * [The template is here :](http://dev2.pointben.net/formation/iphoto-debutant)
 * If you look on the the left side (dark menu) it will open => the menu displays
   an empty list : it counts well the objects … but nothing is displayed.
 * In the center of the page, it displays different objets (image, title, …) but
   no others (video, … ) who are missing.
 * In the array of the connected_item ([that is display above on the page](http://dev2.pointben.net/formation/iphoto-debutant)),
   it looks to a year 2525 …
 *  `YEAR(wp_posts.post_date)='2525'`
 * Frankly I don’t understand why (and where this figure is coming).
 * Does anyone has a clue or a way to investigate on this case?
 * Thank you for your support
 * [http://wordpress.org/extend/plugins/posts-to-posts/](http://wordpress.org/extend/plugins/posts-to-posts/)

Viewing 15 replies - 1 through 15 (of 30 total)

1 [2](https://wordpress.org/support/topic/plugin-posts-2-posts-still-missing-data-after-141/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-posts-2-posts-still-missing-data-after-141/page/2/?output_format=md)

 *  Thread Starter [Francois Lamotte](https://wordpress.org/support/users/francoislamotte/)
 * (@francoislamotte)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-still-missing-data-after-141/#post-2983003)
 * In enabling
 * `define('WP_DEBUG', true)`
 * `Warning: Could not find direction(s). in /home/dev2pointben/webpublishing/membres/
   wp-content/plugins/posts-to-posts/core/query-post.php on line 16`
 *  [econofast](https://wordpress.org/support/users/econofast/)
 * (@econofast)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-still-missing-data-after-141/#post-2983004)
 * I am seeing the same problem – I haven’t checked with debug on, but rolling back
   to 1.3 shows all of my connections on front end and admin, while 1.4/1.4.1 both
   only show them on the admin side.
 *  Thread Starter [Francois Lamotte](https://wordpress.org/support/users/francoislamotte/)
 * (@francoislamotte)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-still-missing-data-after-141/#post-2983006)
 * Oh good idea … i’ve searched on my computer and found back an 1.3.1 version.
 * Previously I was rolling back with 1.2… but without success.
 * I’ll wait until the 1.4.1 is updated 🙂
 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-still-missing-data-after-141/#post-2983007)
 * Francois, showing us the rendered template doesn’t help much. Show us the PHP
   code behind it (using pastebin and preferably trimmed of the irrelevant parts).
 *  Thread Starter [Francois Lamotte](https://wordpress.org/support/users/francoislamotte/)
 * (@francoislamotte)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-still-missing-data-after-141/#post-2983009)
 * Hi Scribu,
 * Thank you for your comment :
 * [The body part (trimmed) is here.](http://pastebin.com/ehtyZHdz)
 * Tell me if you want a version without that indentation (it is difficult to read
   it online).
 * [The sidebar part is here](http://pastebin.com/4DQWmkY2)
 * If you need more details or anything else don’t hesitate to ask it.
 * Regards,
 * François
 *  [nnelson](https://wordpress.org/support/users/nnelson/)
 * (@nnelson)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-still-missing-data-after-141/#post-2983040)
 * I was getting this error as well with 1.4.1, and it turned out that the connected_type
   name was wrong or missing.
 *  Thread Starter [Francois Lamotte](https://wordpress.org/support/users/francoislamotte/)
 * (@francoislamotte)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-still-missing-data-after-141/#post-2983076)
 * Another strange behavior that I can’t explain, from the rollback from 1.4.1 to
   1.3.1, is that the newest posts have a strange behavior.
 * Here is an “old” post : where connexion are displayed on 2 templates (sidebar
   + page)
 * [http://dev2.pointben.net/membres/formation/iphoto-debutant](http://dev2.pointben.net/membres/formation/iphoto-debutant)
 * And here is a “new” post (created after the update/roll-back) :
 * [http://dev2.pointben.net/membres/formation/apercu](http://dev2.pointben.net/membres/formation/apercu)
 * On that page only the sidebar display the connexion, but the core of the page
   doesn’t show up anything.
 * This is the same code, the same kind of connexion in the backend, …
 *  Thread Starter [Francois Lamotte](https://wordpress.org/support/users/francoislamotte/)
 * (@francoislamotte)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-still-missing-data-after-141/#post-2983090)
 * Hi Scribu,
 * I know that you already giving a lot of free support. I’m stuck here with my 
   problem above and I don’t know how to handle it. Just a little bit stressed because
   that part of the site needs to be delivered next week.
 * How could I track / debug that kind of error?
 * Thank you very much for your answer.
 * Regards
 * F
 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-still-missing-data-after-141/#post-2983093)
 * Francois, as always, I’m also going to need the `p2p_register_connection_type()`
   calls.
 *  Thread Starter [Francois Lamotte](https://wordpress.org/support/users/francoislamotte/)
 * (@francoislamotte)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-still-missing-data-after-141/#post-2983094)
 * Hello Scribu,
 * Here [they are on pastebin](http://pastebin.com/sdmZScs8)
 *  Thread Starter [Francois Lamotte](https://wordpress.org/support/users/francoislamotte/)
 * (@francoislamotte)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-still-missing-data-after-141/#post-2983095)
 * in that template I use
 * formations_to_chapitres
 * lecons_to_chapitres
 * videos_to_lecons
 *     ```
       p2p_register_connection_type( array(
                               'name' => 'videos_to_lecons',
                               'from' => 'video',
                               'to' => 'lecon',
                               'reciprocal' => true, // the relation has no hierarchy
                       ) );
       ```
   
 *     ```
       p2p_register_connection_type( array(
                       'name' => 'lecons_to_chapitres',
                       'from' => 'lecon',
                       'to' => 'chapitre',
                       'reciprocal' => true, // the relation has no hierarchy
                       'sortable' => 'any',
               ) );
       ```
   
 *     ```
       p2p_register_connection_type( array(
                       'name' => 'formations_to_chapitres',
                       'from' => 'formation',
                       'to' => 'chapitre',
                       'reciprocal' => true, // the relation has no hierarchy
                       'sortable' => 'any'
               ) );
       ```
   
 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-still-missing-data-after-141/#post-2983096)
 * Right; what about `get_queried_object()`?
 * Does it return a post object, something else or `null`?
 * Add `var_dump( get_queried_object() );` before the WP_Query calls.
 *  Thread Starter [Francois Lamotte](https://wordpress.org/support/users/francoislamotte/)
 * (@francoislamotte)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-still-missing-data-after-141/#post-2983097)
 * You could see it here :
 * [http://dev2.pointben.net/membres/formation/apercu](http://dev2.pointben.net/membres/formation/apercu)
 * `object(stdClass)#4716 (25) { ["ID"]=> int(332) ["post_author"]=> string(1) "
   4" ["post_date"]=> string(19) "2012-08-20 12:20:14" ["post_date_gmt"]=> string(
   19) "2012-08-20 12:20:14" ["post_content"]=> string(0) "" ["post_title"]=> string(
   13) "Apercu (Lion)" ["post_excerpt"]=> string(144) "Un petit outils très pratique
   pour voir vos images, pour lire vos documents PDF ou autre, mais également pour
   les annoter, transformer, signer" ["post_status"]=> string(7) "publish" ["comment_status"]
   => string(4) "open" ["ping_status"]=> string(4) "open" ["post_password"]=> string(
   0) "" ["post_name"]=> string(6) "apercu" ["to_ping"]=> string(0) "" ["pinged"]
   => string(0) "" ["post_modified"]=> string(19) "2012-08-21 10:03:00" ["post_modified_gmt"]
   => string(19) "2012-08-21 10:03:00" ["post_content_filtered"]=> string(0) "" ["
   post_parent"]=> int(0) ["guid"]=> string(49) "http://dev2.pointben.net/membres/
   formation/apercu" ["menu_order"]=> int(0) ["post_type"]=> string(9) "formation"["
   post_mime_type"]=> string(0) "" ["comment_count"]=> string(1) "0" ["ancestors"]
   => array(0) { } ["filter"]=> string(3) "raw" }`
 *  Thread Starter [Francois Lamotte](https://wordpress.org/support/users/francoislamotte/)
 * (@francoislamotte)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-still-missing-data-after-141/#post-2983098)
 * Do I have to add it for every query? As I use 3 queries?
 *  Thread Starter [Francois Lamotte](https://wordpress.org/support/users/francoislamotte/)
 * (@francoislamotte)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-still-missing-data-after-141/#post-2983099)
 * Ok I’ve pasted it 3 times.
 * `object(stdClass)#4712 (25) { ["ID"]=> int(332) ["post_author"]=> string(1) "
   4" ["post_date"]=> string(19) "2012-08-20 12:20:14" ["post_date_gmt"]=> string(
   19) "2012-08-20 12:20:14" ["post_content"]=> string(0) "" ["post_title"]=> string(
   13) "Apercu (Lion)" ["post_excerpt"]=> string(144) "Un petit outils très pratique
   pour voir vos images, pour lire vos documents PDF ou autre, mais également pour
   les annoter, transformer, signer" ["post_status"]=> string(7) "publish" ["comment_status"]
   => string(4) "open" ["ping_status"]=> string(4) "open" ["post_password"]=> string(
   0) "" ["post_name"]=> string(6) "apercu" ["to_ping"]=> string(0) "" ["pinged"]
   => string(0) "" ["post_modified"]=> string(19) "2012-08-21 10:03:00" ["post_modified_gmt"]
   => string(19) "2012-08-21 10:03:00" ["post_content_filtered"]=> string(0) "" ["
   post_parent"]=> int(0) ["guid"]=> string(49) "http://dev2.pointben.net/membres/
   formation/apercu" ["menu_order"]=> int(0) ["post_type"]=> string(9) "formation"["
   post_mime_type"]=> string(0) "" ["comment_count"]=> string(1) "0" ["ancestors"]
   => array(0) { } ["filter"]=> string(3) "raw" } object(stdClass)#4712 (25) { ["
   ID"]=> int(332) ["post_author"]=> string(1) "4" ["post_date"]=> string(19) "2012-
   08-20 12:20:14" ["post_date_gmt"]=> string(19) "2012-08-20 12:20:14" ["post_content"]
   => string(0) "" ["post_title"]=> string(13) "Apercu (Lion)" ["post_excerpt"]=
   > string(144) "Un petit outils très pratique pour voir vos images, pour lire 
   vos documents PDF ou autre, mais également pour les annoter, transformer, signer"["
   post_status"]=> string(7) "publish" ["comment_status"]=> string(4) "open" ["ping_status"]
   => string(4) "open" ["post_password"]=> string(0) "" ["post_name"]=> string(6)"
   apercu" ["to_ping"]=> string(0) "" ["pinged"]=> string(0) "" ["post_modified"]
   => string(19) "2012-08-21 10:03:00" ["post_modified_gmt"]=> string(19) "2012-
   08-21 10:03:00" ["post_content_filtered"]=> string(0) "" ["post_parent"]=> int(
   0) ["guid"]=> string(49) "http://dev2.pointben.net/membres/formation/apercu" ["
   menu_order"]=> int(0) ["post_type"]=> string(9) "formation" ["post_mime_type"]
   => string(0) "" ["comment_count"]=> string(1) "0" ["ancestors"]=> array(0) { }["
   filter"]=> string(3) "raw" } object(stdClass)#4712 (25) { ["ID"]=> int(332) ["
   post_author"]=> string(1) "4" ["post_date"]=> string(19) "2012-08-20 12:20:14"["
   post_date_gmt"]=> string(19) "2012-08-20 12:20:14" ["post_content"]=> string(
   0) "" ["post_title"]=> string(13) "Apercu (Lion)" ["post_excerpt"]=> string(144)"
   Un petit outils très pratique pour voir vos images, pour lire vos documents PDF
   ou autre, mais également pour les annoter, transformer, signer" ["post_status"]
   => string(7) "publish" ["comment_status"]=> string(4) "open" ["ping_status"]=
   > string(4) "open" ["post_password"]=> string(0) "" ["post_name"]=> string(6)"
   apercu" ["to_ping"]=> string(0) "" ["pinged"]=> string(0) "" ["post_modified"]
   => string(19) "2012-08-21 10:03:00" ["post_modified_gmt"]=> string(19) "2012-
   08-21 10:03:00" ["post_content_filtered"]=> string(0) "" ["post_parent"]=> int(
   0) ["guid"]=> string(49) "http://dev2.pointben.net/membres/formation/apercu" ["
   menu_order"]=> int(0) ["post_type"]=> string(9) "formation" ["post_mime_type"]
   => string(0) "" ["comment_count"]=> string(1) "0" ["ancestors"]=> array(0) { }["
   filter"]=> string(3) "raw" }`

Viewing 15 replies - 1 through 15 (of 30 total)

1 [2](https://wordpress.org/support/topic/plugin-posts-2-posts-still-missing-data-after-141/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-posts-2-posts-still-missing-data-after-141/page/2/?output_format=md)

The topic ‘[Plugin: Posts 2 Posts] Still missing data after 1.4.1’ 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/)

 * 30 replies
 * 6 participants
 * Last reply from: [seocadiz](https://wordpress.org/support/users/seocadiz/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-still-missing-data-after-141/page/2/#post-2983146)
 * Status: resolved