Title: Warning: Undefined array key
Last modified: October 9, 2025

---

# Warning: Undefined array key

 *  Resolved [drzraf](https://wordpress.org/support/users/drzraf/)
 * (@drzraf)
 * [7 months, 3 weeks ago](https://wordpress.org/support/topic/warning-undefined-array-key-35/)
 * Warning: Undefined array key “es” in web/app/plugins/duplicate-content-addon-
   for-polylang/duplicate-content-addon-for-polylang.php on line _296_
 * (in the do_meta_boxes() call)
 * Spanish (“es”) is my default language.
 * (`get_bloginfo( 'language' )` == `es`)
 *     ```wp-block-code
       duplicateContentAddon->dupcap_shortcode_text( class WP_Post { public $ID = 60428; public $post_author = '1'; public $post_date = '2025-10-09 14:33:38'; public $post_date_gmt = '0000-00-00 00:00:00'; public $post_content = ''; public $post_title = ''; public $post_excerpt = ''; public $post_status = 'auto-draft'; public $comment_status = 'open'; public $ping_status = 'open'; public $post_password = ''; public $post_name = ''; public $to_ping = ''; public $pinged = ''; public $post_modified = '2025-10-09 14:33:38'; public $post_modified_gmt = '0000-00-00 00:00:00'; public $post_content_filtered = ''; public $post_parent = 0; public $guid = 'https://es.foo.me/?p=60428'; public $menu_order = 0; public $post_type = 'post'; public $post_mime_type = ''; public $comment_count = '0'; public $filter = 'raw' }, ['id' => 'dupcap-meta-box', 'title' => 'Duplicate Content from Original Post', 'callback' => [0 => class duplicateContentAddon { ... }, 1 => 'dupcap_shortcode_text'], 'args' => NULL] )
       ```
   
 * The value from `get_bloginfo()` comes directly from:
 * [https://translate.wordpress.org/projects/wp/6.6.x/es/default/?filters%5Bterm%5D=html_lang_attribute&filters%5Bterm_scope%5D=scope_any&filters%5Bstatus%5D=current_or_waiting_or_fuzzy_or_untranslated&filters%5Buser_login%5D=&filter=Apply+Filters&sort%5Bby%5D=priority&sort%5Bhow%5D=desc](https://translate.wordpress.org/projects/wp/6.6.x/es/default/?filters%5Bterm%5D=html_lang_attribute&filters%5Bterm_scope%5D=scope_any&filters%5Bstatus%5D=current_or_waiting_or_fuzzy_or_untranslated&filters%5Buser_login%5D=&filter=Apply+Filters&sort%5Bby%5D=priority&sort%5Bhow%5D=desc)(**
   es**)
 * [https://translate.wordpress.org/projects/wp/6.6.x/fr/default/?filters%5Bterm%5D=html_lang_attribute&filters%5Bterm_scope%5D=scope_any&filters%5Bstatus%5D=current_or_waiting_or_fuzzy_or_untranslated&filters%5Buser_login%5D=&filter=Apply+Filters&sort%5Bby%5D=priority&sort%5Bhow%5D=desc](https://translate.wordpress.org/projects/wp/6.6.x/fr/default/?filters%5Bterm%5D=html_lang_attribute&filters%5Bterm_scope%5D=scope_any&filters%5Bstatus%5D=current_or_waiting_or_fuzzy_or_untranslated&filters%5Buser_login%5D=&filter=Apply+Filters&sort%5Bby%5D=priority&sort%5Bhow%5D=desc)(**
   fr-FR**)
 * [https://translate.wordpress.org/projects/wp/6.6.x/de/default/?filters%5Bterm%5D=html_lang_attribute&filters%5Bterm_scope%5D=scope_any&filters%5Bstatus%5D=current_or_waiting_or_fuzzy_or_untranslated&filters%5Buser_login%5D=&filter=Apply+Filters&sort%5Bby%5D=priority&sort%5Bhow%5D=desc](https://translate.wordpress.org/projects/wp/6.6.x/de/default/?filters%5Bterm%5D=html_lang_attribute&filters%5Bterm_scope%5D=scope_any&filters%5Bstatus%5D=current_or_waiting_or_fuzzy_or_untranslated&filters%5Buser_login%5D=&filter=Apply+Filters&sort%5Bby%5D=priority&sort%5Bhow%5D=desc)(**
   de**)
    -  This topic was modified 7 months, 3 weeks ago by [drzraf](https://wordpress.org/support/users/drzraf/).
    -  This topic was modified 7 months, 3 weeks ago by [drzraf](https://wordpress.org/support/users/drzraf/).

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

 *  Plugin Support [Aniket Dogra](https://wordpress.org/support/users/aniketji/)
 * (@aniketji)
 * [7 months, 2 weeks ago](https://wordpress.org/support/topic/warning-undefined-array-key-35/#post-18675823)
 * Hi [@drzraf](https://wordpress.org/support/users/drzraf/),
 * Thank you for reporting this issue. We will fix this issue, and the fix will 
   be available in our next update.
 * Thank You.
 *  Thread Starter [drzraf](https://wordpress.org/support/users/drzraf/)
 * (@drzraf)
 * [7 months, 2 weeks ago](https://wordpress.org/support/topic/warning-undefined-array-key-35/#post-18676693)
 * Thank you !
 * _That being said, the plugin was sooooo cluttered that I had no other choice 
   than removing [-1537 useless LoC](https://github.com/drzraf/duplicate-content-addon-for-polylang/commit/9e3953bc86366de675185296f2398c48bb5846eb)(
   and in the end I went with another solution: because useless lines are an important
   matter)_
 *  Plugin Support [Aniket Dogra](https://wordpress.org/support/users/aniketji/)
 * (@aniketji)
 * [6 months, 1 week ago](https://wordpress.org/support/topic/warning-undefined-array-key-35/#post-18723102)
 * Hi [@drzraf](https://wordpress.org/support/users/drzraf/),
 * Thank you for reporting this issue. We’ve fixed the issue described above in 
   our latest update.
   Please update the plugin to the newest version **v1.2.8** 
   to apply the changes.
 * Regarding your previous message, we reviewed the code and removed unused parts.
   The message you mentioned was not intended as promotional content — it was a 
   standard review and plugin deactivation feedback notice used to improve the product
   experience.
 * If you have any other concerns, feel free to let us know. We appreciate your 
   feedback and support! 🙌
 * Thank You.

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

The topic ‘Warning: Undefined array key’ is closed to new replies.

 * ![](https://ps.w.org/duplicate-content-addon-for-polylang/assets/icon-256x256.
   gif?rev=3348871)
 * [Polylang Duplicate Content Addon](https://wordpress.org/plugins/duplicate-content-addon-for-polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duplicate-content-addon-for-polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duplicate-content-addon-for-polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/duplicate-content-addon-for-polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duplicate-content-addon-for-polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duplicate-content-addon-for-polylang/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [Aniket Dogra](https://wordpress.org/support/users/aniketji/)
 * Last activity: [6 months, 1 week ago](https://wordpress.org/support/topic/warning-undefined-array-key-35/#post-18723102)
 * Status: resolved