Title: [Plugin: Posts 2 Posts] Updating posts returns error
Last modified: August 20, 2016

---

# [Plugin: Posts 2 Posts] Updating posts returns error

 *  Resolved [oudein](https://wordpress.org/support/users/oudein/)
 * (@oudein)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-updating-posts-returns-error/)
 * Updated to v1.1.1, and created two post-to-user connections. When I update a 
   post in which any Post2Post relationships are registered the following errors
   get thrown:
 *     ```
       Warning: Invalid argument supplied for foreach() in /wp-content/plugins/posts-to-posts/admin/box-factory.php on line 113
   
       Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/posts-to-posts/admin/box-factory.php:113) in /home/tvr/studiobanana-com/w/wp-includes/pluggable.php on line 934
       ```
   
 * My connection registrations are:
 *     ```
       p2p_register_connection_type( array(
       		'name' => 'multiple_authors',
       		'from' => 'people',
       		'to_object' => 'user',
       /*		'admin_column' => 'any'*/
       	) );
   
       	p2p_register_connection_type( array(
       		'name' => 'studio',
       		'from' => 'places',
       		'to_object' => 'user',
       /*		'admin_column' => 'any'*/
       	) );
       ```
   
 * I commented out the admin_columns but it effected no change. I also checked the
   p2p file referenced in the errors, but it looks fine, and since no one else seems
   to be having the same problem, I suspect it may not be in the plugin files.
 * Am I missing something completely obvious?
 * [http://wordpress.org/extend/plugins/posts-to-posts/](http://wordpress.org/extend/plugins/posts-to-posts/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-updating-posts-returns-error/#post-2438294)
 * This should be fixed in the [development version](http://downloads.wordpress.org/plugin/posts-to-posts.zip)(
   1.1.2-alpha).
 * Thanks for reporting.
 *  Thread Starter [oudein](https://wordpress.org/support/users/oudein/)
 * (@oudein)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-updating-posts-returns-error/#post-2438308)
 * Once again, thanks, scribu, for your responsiveness and dedication.
 * This seems to work perfectly for me. Thanks so much.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Posts 2 Posts] Updating posts returns error’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/posts-to-posts_7a8e9d.svg)
 * [Posts 2 Posts](https://wordpress.org/plugins/posts-to-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/posts-to-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/posts-to-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/posts-to-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/posts-to-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/posts-to-posts/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [oudein](https://wordpress.org/support/users/oudein/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-updating-posts-returns-error/#post-2438308)
 * Status: resolved