Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wodrpess 4.0 Invalid second parameter. #455

Open
philJohnson opened this issue Sep 8, 2014 · 2 comments
Open

Wodrpess 4.0 Invalid second parameter. #455

philJohnson opened this issue Sep 8, 2014 · 2 comments

Comments

@philJohnson
Copy link

I'm having an issue connecting posts. "Invalid second parameter." error comes up when I attempt to add a new connection.

I'm running wordpress 4.0 and the latest version of the plugin.

@davemac
Copy link

davemac commented Oct 12, 2014

I'm getting the same thing. I have a basic connection connecting two custom post types:

function dmc_connection_types() {
    p2p_register_connection_type( array(
        'name' => 'note_to_policy',
        'from' => 'dmc-edguide',
        'to' => 'dmc-edpol'
    ) );
}
add_action( 'p2p_init', 'dmc_connection_types' );

If I connect a dmc-edpol to a dmc-edguide it works fine, however if I try to connect a dmc-edguide to a dmc-edpol I get the 'Invalid second parameter' error window and the posts do not connect.

@davemac
Copy link

davemac commented Oct 12, 2014

I've worked it out in my case. I was trying to connect to the exact same post.

Maybe the error message could be clearer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants