WordPress.org

Ready to get started?Download WordPress

Forums

Posts 2 Posts
[resolved] Admin Column for Reciprocal Connection (2 posts)

  1. Joe Banks
    Member
    Posted 1 year ago #

    When I try to display an admin column for a reciprocal connection, an error is thrown:

    Notice: Undefined index: any in C:\wamp\www\test-site\wp-content\plugins\posts-to-posts\admin\column.php on line 48

    Fatal error: Call to a member function item_title() on a non-object in C:\wamp\www\test-site\wp-content\plugins\posts-to-posts\admin\column.php on line 61

    Below is the code I use to register the connection type:

    p2p_register_connection_type( array(
            'name' => 'spouses',
            'from' => 'constituent',
            'to' => 'constituent',
            'reciprocal' => true,
            'cardinality' => 'one-to-one',
            'title' => 'Spouse',
            'admin_column' => 'any',
            'admin_box' => array(
                  'show' => 'any',
                  'context' => 'normal'
            )
    ) );

    http://wordpress.org/extend/plugins/posts-to-posts/

  2. scribu
    Member
    Plugin Author

    Posted 1 year ago #

    Using P2P 1.3.1, I was able to reproduce the notice, but not the fatal error.

    Using P2P 1.4-alpha3, everything seems to work fine.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic