[Plugin: Posts 2 Posts] Still missing data after 1.4.1
-
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.
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), 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
-
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 16I 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.
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 🙂
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).
Hi Scribu,
Thank you for your comment :
The body part (trimmed) is here.
Tell me if you want a version without that indentation (it is difficult to read it online).
If you need more details or anything else don’t hesitate to ask it.
Regards,
François
I was getting this error as well with 1.4.1, and it turned out that the connected_type name was wrong or missing.
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
And here is a “new” post (created after the update/roll-back) :
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, …
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
Francois, as always, I’m also going to need the
p2p_register_connection_type()calls.Hello Scribu,
Here they are on pastebin
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' ) );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.You could see it here :
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" }Do I have to add it for every query? As I use 3 queries?
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" }
The topic ‘[Plugin: Posts 2 Posts] Still missing data after 1.4.1’ is closed to new replies.