Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author scribu

    (@scribu)

    What version did you upgrade from?

    Also, add this line to your wp-config.php file:

    define( 'WP_DEBUG', true );

    You might see a lot of notices, but some of them might be from P2P.

    Thread Starter MoBlaise

    (@moblaise)

    I’ve updated from 1.1.2
    Where will I see the notices?

    Plugin Author scribu

    (@scribu)

    You should see them at the top of the page, if you have error reporting turned on your server.

    Plugin Author scribu

    (@scribu)

    Alternatively, you could install the Debug Bar plugin and see the notices there.

    Thread Starter MoBlaise

    (@moblaise)

    I did intall the Debug Bar, but with no results i.e no info on p2p appears…

    Plugin Author scribu

    (@scribu)

    Ok, then just paste the code you’re using to register the connection types.

    If it’s rather long, use https://pastebin.com

    Thread Starter MoBlaise

    (@moblaise)

    <?php
    function my_connection_types() {
    // Make sure the Posts 2 Posts plugin is active.
    if ( !function_exists( ‘p2p_register_connection_type’ ) )
    return;

    // Keep a reference to the connection type; we’ll need it later
    global $my_connection_type;

    $my_connection_type = p2p_register_connection_type( array(
    ‘from’ => ‘post’,
    ‘to’ => ‘osobe’,
    ‘fields’ => array(
    ‘uloga’ => ‘uloga:’,
    ‘lik’ => ‘lik:’
    ),
    ‘reciprocal’ => true,
    ‘prevent_duplicates’ => false,

    ));

    $my_connection_type = p2p_register_connection_type( array(
    ‘from’ => ‘osobe’,
    ‘to’ => ‘filmovi’,
    ‘fields’ => array(
    ‘uloga’ => ‘uloga:’,
    ‘lik’ => ‘lik:’
    ),
    ‘reciprocal’ => true,
    ‘prevent_duplicates’ => false,
    ));

    }
    add_action( ‘init’, ‘my_connection_types’, 100 );?>

    Plugin Author scribu

    (@scribu)

    Just below the function my_connection_types() { line, add this:

    var_dump( post_type_exists( 'osobe' ) );
    var_dump( post_type_exists( 'filmovi' ) );
    exit;

    And tell me what you get.

    Thread Starter MoBlaise

    (@moblaise)

    bool(true) bool(true)

    Plugin Author scribu

    (@scribu)

    Strange… the connection boxes show up fine for me.

    Thread Starter MoBlaise

    (@moblaise)

    I see the boxes as well, it’s just that they are empty even for the posts that have been conncted and that display connections on the front end

    Thread Starter MoBlaise

    (@moblaise)

    I see the boxes as well, it’s just that they are empty even for the posts that have been conncted and that display connections on the front end

    Plugin Author scribu

    (@scribu)

    Well, it’s working fine on my install.

    Maybe it’s a plugin conflict or you have some other code in your theme that’s causing the problem.

    Thread Starter MoBlaise

    (@moblaise)

    I’ll try turning other plugins off later on when ther’s less traffic on the site, but everything was working super-fine untill the last update?

    Plugin Author scribu

    (@scribu)

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘[Plugin: Posts 2 Posts] bug in 1.1.3?’ is closed to new replies.