Title: Compatibility issue with Duplicate Post plugin
Last modified: February 20, 2019

---

# Compatibility issue with Duplicate Post plugin

 *  [Česlav Przywara](https://wordpress.org/support/users/chesio/)
 * (@chesio)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/compatibility-issue-with-duplicate-post-plugin/)
 * Hi Takayuki,
 * I have a small bugfix request. I have a website with both Contact Form 7 and 
   [Duplicate Post](https://wordpress.org/plugins/duplicate-post/) plugin installed
   and every time I visit Contact Forms page in backend, I got PHP notices in debug
   log generated by Duplicate Post.
 * I digged into Duplicate Post code and found out that the notices are triggered,
   because `$_GET['post']` is set, but is empty in the same time. I wondered how
   is that even possible, because there is no `post=` argument in query string of
   backend URL. Then I found out that Contact Form 7 manipulates `$_GET` array and
   insert this key – in current version (5.1.1) of Contact Form 7, this happens 
   at line 325 in `admin/admin.php`:
 *     ```
       $_GET['post'] = isset( $_GET['post'] ) ? $_GET['post'] : '';
       ```
   
 * As a developer myself, I consider adding new items to `$_GET` array programmaticaly
   a bad practice, therefore I’m kindly asking you, not Enrico Battocchi (Duplicate
   Post author), to fix it. As far as I have seen related Contact Form 7 code, the
   assignment to `$_GET['post']` can be easily avoided.
 * I believe by fixing this, you will improve compatibility not only with Duplicate
   Post but potentially more plugins that expect `$_GET['post']` to be non-empty
   if present.

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

 *  Thread Starter [Česlav Przywara](https://wordpress.org/support/users/chesio/)
 * (@chesio)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/compatibility-issue-with-duplicate-post-plugin/#post-11226086)
 * Btw. I noticed that quite a lot of users of both Contact Form 7 and Duplicate
   Post is experiencing this issue (not surprising, as both are extremely popular
   plugins):
    1. [https://wordpress.org/support/topic/please-suppress-notices-for-unset-parameters/](https://wordpress.org/support/topic/please-suppress-notices-for-unset-parameters/)
    2. [https://wordpress.org/support/topic/error-trying-to-get-property-post_type-of-non-object/](https://wordpress.org/support/topic/error-trying-to-get-property-post_type-of-non-object/)
    3. [https://wordpress.org/support/topic/trying-to-get-property-of-non-object-56/](https://wordpress.org/support/topic/trying-to-get-property-of-non-object-56/)
 * The last thread is already half a year old and there has been no fix from Enrico
   yet, so I’m kindly reiterating my request for a fix on Contact Form 7 side.
 * Thank you,
    Česlav
 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/compatibility-issue-with-duplicate-post-plugin/#post-11230015)
 * Right, the line you mentioned is very old one, and now there is no reason to 
   overwrite $_GET variable. I’ll fix it in the next update. Thanks for reporting.

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

The topic ‘Compatibility issue with Duplicate Post plugin’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

## Tags

 * [compatibility](https://wordpress.org/support/topic-tag/compatibility/)

 * 2 replies
 * 2 participants
 * Last reply from: [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/compatibility-issue-with-duplicate-post-plugin/#post-11230015)
 * Status: not a support question