WordPress.org

Ready to get started?Download WordPress

Forums

Posts 2 Posts
[resolved] Couple of 0.3 Notes (2 posts)

  1. Derek Perkins
    Member
    Posted 3 years ago #

    Here are a couple of notes on my upgrade experience.
    - Link to your site in the 0.3 changelog goes to a 404 page
    - When automatically upgrading the plugin, it died in the middle of activating because the p2p register functions called from my functions.php file were undefined.

    Is there a way to just delete all of the p2p data from my database and start fresh?

  2. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    - Link to your site in the 0.3 changelog goes to a 404 page

    Fixed.

    - When automatically upgrading the plugin, it died in the middle of activating because the p2p register functions called from my functions.php file were undefined.

    Right, you should first check if the function exists:

    if ( function_exists('p2p_register_connection_type') ) {
    	function my_connection_types() {
    		p2p_register_connection_type('book', 'author');
    	}
    	add_action('init', 'my_connection_types', 100);
    }

    Thanks for reporting.

    Is there a way to just delete all of the p2p data from my database and start fresh?

    Well, you would have to migrate the data first, by going to this URL:

    /wp-admin/?migrate_p2p

    Then, if you really need to delete all the data, you can install the development version (0.4-alpha) and go to this URL:

    /wp-admin/?delete_p2p

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic