Title: PHP Warning: Undefined array key
Last modified: July 2, 2025

---

# PHP Warning: Undefined array key

 *  Resolved [patowins](https://wordpress.org/support/users/patowins/)
 * (@patowins)
 * [11 months, 1 week ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-26/)
 * Hi,
 * I’m getting the following PHP warning on my WordPress site when using the Strong
   Testimonials plugin:
 * `[02-Jul-2025 06:24:45 UTC] PHP Warning: Undefined array key "color" in /wp-content/
   plugins/strong-testimonials/includes/class-strong-view.php on line 479`
 * It looks like the plugin is trying to access the `'color'` key in an array that
   may not always have it defined. To avoid this warning, I recommend using `isset()`
   or the null coalescing operator (`??`) to check if the key exists before accessing
   it.
 * WordPress version 6.8.1.
 * PHP version 8.1
 * Thank you for your support and for the great plugin!
 * Best regards,

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

 *  Plugin Author [Teo Alex](https://wordpress.org/support/users/altesin/)
 * (@altesin)
 * [10 months, 3 weeks ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-26/#post-18557606)
 * Hello [@patowins](https://wordpress.org/support/users/patowins/) ,
 * Thank you for your report!
   We’ve successfully reproduced, identified, and fixed
   the issue. The fix will most likely be included in the next plugin update.
 * The issue occurs when no background preset is selected in the view display settings.
 * Warm regards,
   Teo
 *  Thread Starter [patowins](https://wordpress.org/support/users/patowins/)
 * (@patowins)
 * [10 months, 3 weeks ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-26/#post-18563391)
 * Thank you very much for responding and sponsoring a solution to the problem.

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

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

 * ![](https://ps.w.org/strong-testimonials/assets/icon-256x256.png?rev=3134855)
 * [Strong Testimonials](https://wordpress.org/plugins/strong-testimonials/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/strong-testimonials/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/strong-testimonials/)
 * [Active Topics](https://wordpress.org/support/plugin/strong-testimonials/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/strong-testimonials/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/strong-testimonials/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [patowins](https://wordpress.org/support/users/patowins/)
 * Last activity: [10 months, 3 weeks ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-26/#post-18563391)
 * Status: resolved