WordPress.org

Ready to get started?Download WordPress

Forums

Posts 2 Posts
[resolved] Update to 1.1.4 causes errors in WP v.3.2.1 (4 posts)

  1. psnepsts
    Member
    Posted 2 years ago #

    I just updated P2P to 1.1.4 and I'm getting the following output before the theme renders:

    Backtrace from warning 'Connection types without a 'name' parameter are deprecated.' at /home/sketchy/public_html/wp-content/plugins/posts-to-posts/core/api.php 59:
    
        /home/sketchy/public_html/wp-content/plugins/posts-to-posts/core/api.php 59 calling trigger_error()
        /home/sketchy/public_html/wp-content/themes/TOsketchfest/functions.php 85 calling p2p_register_connection_type()
        calling my_connection_types()
        /home/sketchy/public_html/wp-includes/plugin.php 405 calling call_user_func_array()
        /home/sketchy/public_html/wp-settings.php 302 calling do_action()
        /home/sketchy/public_html/wp-config.php 93 calling require_once()
        /home/sketchy/public_html/wp-load.php 29 calling require_once()
        /home/sketchy/public_html/wp-admin/admin.php 30 calling require_once()
        /home/sketchy/public_html/wp-admin/plugins.php 10 calling require_once()
    
    Backtrace from warning 'Connection types without a 'name' parameter are deprecated.' at /home/sketchy/public_html/wp-content/plugins/posts-to-posts/core/api.php 59:
    
        /home/sketchy/public_html/wp-content/plugins/posts-to-posts/core/api.php 59 calling trigger_error()
        /home/sketchy/public_html/wp-content/themes/TOsketchfest/functions.php 91 calling p2p_register_connection_type()
        calling my_connection_types()
        /home/sketchy/public_html/wp-includes/plugin.php 405 calling call_user_func_array()
        /home/sketchy/public_html/wp-settings.php 302 calling do_action()
        /home/sketchy/public_html/wp-config.php 93 calling require_once()
        /home/sketchy/public_html/wp-load.php 29 calling require_once()
        /home/sketchy/public_html/wp-admin/admin.php 30 calling require_once()
        /home/sketchy/public_html/wp-admin/plugins.php 10 calling require_once()

    I've had to deactivate the plugin, which has undesirable results. I'm planning on updating to wo3.3, but I'd like to get this working again beforehand if possible.

    Any assistance would be appreciated.

    many thanks in advance.

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

  2. scribu
    Member
    Plugin Author

    Posted 2 years ago #

    You can fix it by adding a 'name' parameter to your p2p_register_connection_type() call, as shown in the wiki:

    https://github.com/scribu/wp-posts-to-posts/wiki/Basic-usage

  3. psnepsts
    Member
    Posted 2 years ago #

    Thanks so much for the lightning-quick reply! Sorted.

    Awesome plugin, Scribu.

  4. sivaprakash@rage-india.com
    Member
    Posted 1 year ago #

    I a using wordpress 3.3.1 and p2p 1.4.2. I am still facing this issue. Any soulutions plz

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic