Title: Error when attempting to duplicate
Last modified: August 30, 2016

---

# Error when attempting to duplicate

 *  [Gerry](https://wordpress.org/support/users/gpseymour/)
 * (@gpseymour)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/error-when-attempting-to-duplicate/)
 * When I use the duplication links, I get the following errors (both at the same
   time):
 * > Warning: Missing argument 3 for wvpd_create_duplicate(), called in /home/gerrysey/
   > staging/1/wp-content/plugins/wp-vi-duplicate-posts/wvpd-admin.php on line 153
   > and defined in /home/gerrysey/staging/1/wp-content/plugins/wp-vi-duplicate-
   > posts/wvpd-admin.php on line 344
   > Warning: Cannot modify header information – headers already sent by (output
   > started at /home/gerrysey/staging/1/wp-content/plugins/simple-aweber-integration/
   > simple-aweber-integration.php:585) in /home/gerrysey/staging/1/wp-includes/
   > pluggable.php
 * [https://wordpress.org/plugins/wp-vi-duplicate-posts/](https://wordpress.org/plugins/wp-vi-duplicate-posts/)

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

 *  Plugin Author [Team Startbit](https://wordpress.org/support/users/vivacityinfotechjaipur/)
 * (@vivacityinfotechjaipur)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/error-when-attempting-to-duplicate/#post-6375180)
 * Hi Gerry,
    Greetings !!
 * Thanks for using our plugin.
 * I have checked your plugin and found no issue in it. The issue you are facing
   this may be due to any plugin conflict. So you need to check all plugins by uninstall
   them one by one.
 * Please Let us know if you need more help. We are happy to help you out!.
 * Thanks & Regards
    Team Vivacity
 *  [miceno](https://wordpress.org/support/users/miceno/)
 * (@miceno)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/error-when-attempting-to-duplicate/#post-6375182)
 * Hi,
 * I have the same issue and I should say the code is buggy 🙁
 * In line 153, there is this code:
 *     ```
       $new_id = wvpd_create_duplicate($post, $status);
       ```
   
 * and the definition of function wvpd_create_duplicate in line 344 says:
 *     ```
       function wvpd_create_duplicate($post, $status = '',$newpostype , $parent_id = '' ) {
       ```
   
 * The issue is that $newpostype is not assigned a default value and the call at
   line 153 requires 3 parameters, but only 2 are present.
 * I am not an expert on PHP, and it might be also related to the version of PHP,
   I am running PHP 5.5.29.
 * Would you update the code or confirm it is a PHP version issue, please?
 * Anyway, to solve it, just add an empty array on the call in line 153 like this:
 *     ```
       $new_id = wvpd_create_duplicate($post, $status, array());
       ```
   
 *  Plugin Author [Team Startbit](https://wordpress.org/support/users/vivacityinfotechjaipur/)
 * (@vivacityinfotechjaipur)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/error-when-attempting-to-duplicate/#post-6375184)
 * Hi miceno,
    Greetings !!
 * Thanks for using our plugin.
 * We have checked our plugin and found a issue in it regarding this function ( 
   wvpd_create_duplicate($post, $status)). So we will resolved this issue in our
   plugin’s next version asap.
 * Please let us know if you need more help. We are happy to help you out!.
 * Thanks & Regards
    Team Vivacity

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

The topic ‘Error when attempting to duplicate’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-vi-duplicate-posts.svg)
 * [WP VI Post Duplicator](https://wordpress.org/plugins/wp-vi-duplicate-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-vi-duplicate-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-vi-duplicate-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-vi-duplicate-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-vi-duplicate-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-vi-duplicate-posts/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Team Startbit](https://wordpress.org/support/users/vivacityinfotechjaipur/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/error-when-attempting-to-duplicate/#post-6375184)
 * Status: not resolved