Title: Undefined Errors, Buttons missing text
Last modified: June 13, 2023

---

# Undefined Errors, Buttons missing text

 *  Resolved [Amanda Goodrick](https://wordpress.org/support/users/amandalala123/)
 * (@amandalala123)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/undefined-errors-button-missing-text/)
 * Since upgrading to 6.0.5, we are experiencing some issues on the front end without
   the 6.0 compatibility option enabled. The modal buttons are missing text and 
   are instead just empty. I have switched to the 2023 theme for testing and the
   issues persist.
    - Theme: 2023
 *     ```wp-block-code
       WordPress Environment
   
       WC Version: 7.7.2
       REST API Version: ✔ 7.7.2
       WC Blocks Version: ✔ 10.0.6
       Action Scheduler Version: ✔ 3.5.4
       Log Directory Writable: ✔
       WP Version: 6.2.2
       WP Multisite: –
       WP Memory Limit: 256 MB
       WP Debug Mode: ✔
       WP Cron: ✔
       Language: en_US
       External object cache: –
   
       Server Environment
   
       Server Info: Apache/2.4.54 (Unix) PHP/8.0.26
       PHP Version: 8.0.26
       PHP Post Max Size: 8 MB
       PHP Time Limit: 30
       PHP Max Input Vars: 1000
       cURL Version: 7.86.0
       (SecureTransport) OpenSSL/1.1.1s
       ```
   
 *     ```wp-block-code
       [13-Jun-2023 00:06:02 UTC] PHP Warning:  Undefined array key "add_wrap_message" in wordpress/wp-content/plugins/woocommerce-gift-wrapper/includes/class-wcgwp-strings.php on line 75
       [13-Jun-2023 00:06:02 UTC] PHP Warning:  Undefined array key "add_wrap_prompt" in wordpress/wp-content/plugins/woocommerce-gift-wrapper/includes/class-wcgwp-strings.php on line 76
       [13-Jun-2023 00:06:02 UTC] PHP Warning:  Undefined array key "add_wrap_to_order" in wordpress/wp-content/plugins/woocommerce-gift-wrapper/includes/class-wcgwp-strings.php on line 77
       [13-Jun-2023 00:06:02 UTC] PHP Warning:  Undefined array key "add_wrap_message" in wordpress/wp-content/plugins/woocommerce-gift-wrapper/includes/class-wcgwp-strings.php on line 75
       [13-Jun-2023 00:06:02 UTC] PHP Warning:  Undefined array key "add_wrap_prompt" in wordpress/wp-content/plugins/woocommerce-gift-wrapper/includes/class-wcgwp-strings.php on line 76
       [13-Jun-2023 00:06:02 UTC] PHP Warning:  Undefined array key "add_wrap_to_order" in wordpress/wp-content/plugins/woocommerce-gift-wrapper/includes/class-wcgwp-strings.php on line 77
       [13-Jun-2023 00:06:02 UTC] PHP Warning:  Undefined array key "cancel" in wordpress/wp-content/plugins/woocommerce-gift-wrapper/includes/class-wcgwp-strings.php on line 79
       [13-Jun-2023 00:06:02 UTC] PHP Warning:  Undefined array key "add_wrap_message" in wordpress/wp-content/plugins/woocommerce-gift-wrapper/includes/class-wcgwp-strings.php on line 75
       [13-Jun-2023 00:06:02 UTC] PHP Warning:  Undefined array key "add_wrap_prompt" in wordpress/wp-content/plugins/woocommerce-gift-wrapper/includes/class-wcgwp-strings.php on line 76
       [13-Jun-2023 00:06:02 UTC] PHP Warning:  Undefined array key "add_wrap_to_order" in wordpress/wp-content/plugins/woocommerce-gift-wrapper/includes/class-wcgwp-strings.php on line 77
       [13-Jun-2023 00:06:02 UTC] PHP Warning:  Undefined array key "wrap_details" in wordpress/wp-content/plugins/woocommerce-gift-wrapper/includes/class-wcgwp-strings.php on line 79
       [13-Jun-2023 00:06:02 UTC] PHP Warning:  Undefined array key "add_wrap_message" in wordpress/wp-content/plugins/woocommerce-gift-wrapper/includes/class-wcgwp-strings.php on line 75
       [13-Jun-2023 00:06:02 UTC] PHP Warning:  Undefined array key "add_wrap_prompt" in wordpress/wp-content/plugins/woocommerce-gift-wrapper/includes/class-wcgwp-strings.php on line 76
       [13-Jun-2023 00:06:02 UTC] PHP Warning:  Undefined array key "add_wrap_to_order" in wordpress/wp-content/plugins/woocommerce-gift-wrapper/includes/class-wcgwp-strings.php on line 77
       [13-Jun-2023 00:06:02 UTC] PHP Warning:  Undefined array key "add_wrap_message" in wordpress/wp-content/plugins/woocommerce-gift-wrapper/includes/class-wcgwp-strings.php on line 75
       [13-Jun-2023 00:06:02 UTC] PHP Warning:  Undefined array key "add_wrap_prompt" in wordpress/wp-content/plugins/woocommerce-gift-wrapper/includes/class-wcgwp-strings.php on line 76
       [13-Jun-2023 00:06:02 UTC] PHP Warning:  Undefined array key "add_wrap_to_order" in wordpress/wp-content/plugins/woocommerce-gift-wrapper/includes/class-wcgwp-strings.php on line 77
       ```
   
    -  This topic was modified 2 years, 10 months ago by [Amanda Goodrick](https://wordpress.org/support/users/amandalala123/).

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

 *  [Kostas Vrouvas](https://wordpress.org/support/users/kosvrouvas/)
 * (@kosvrouvas)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/undefined-errors-button-missing-text/#post-16814338)
 * I second this. It seems that Version 6.0.5 is causing errors and causing buttons
   to have missing text. However, downgrading to Version 6.0.4 resolves the problem.
 *  Anonymous User 20287723
 * (@anonymized-20287723)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/undefined-errors-button-missing-text/#post-16815606)
 * Hello [@amandalala123](https://wordpress.org/support/users/amandalala123/) [@kosvrouvas](https://wordpress.org/support/users/kosvrouvas/)
   Thank you for the helpful and friendly topic submission. I released v6.0.6 this
   morning which hopefully addresses the issue you’re seeing. 😊
 *  Thread Starter [Amanda Goodrick](https://wordpress.org/support/users/amandalala123/)
 * (@amandalala123)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/undefined-errors-button-missing-text/#post-16816482)
 * That seems to have fixed it, thanks for getting to it so quickly!
 *  [johannestranan](https://wordpress.org/support/users/johannestranan/)
 * (@johannestranan)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/undefined-errors-button-missing-text/#post-17221172)
 * I’m trying to set up the plugin for my site but can’t get the buttons to work.
   They display no text and it doesn’t seem to be a css issue, because the source
   code shows no text either. My site has a different language, but I also tried
   adding a translation to Cancel using Loco translate, but no change. Also, if 
   I don’t change the prompt text using the hooks, no “Add gift wrap?” text is displayed
   either. Is there a filter hook for the button text?

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

The topic ‘Undefined Errors, Buttons missing text’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-gift-wrapper/assets/icon-256x256.gif?rev=2682739)
 * [Gift Wrapper for WooCommerce](https://wordpress.org/plugins/woocommerce-gift-wrapper/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-gift-wrapper/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-gift-wrapper/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-gift-wrapper/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-gift-wrapper/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-gift-wrapper/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [johannestranan](https://wordpress.org/support/users/johannestranan/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/undefined-errors-button-missing-text/#post-17221172)
 * Status: resolved