• Resolved patowins

    (@patowins)


    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

    (@altesin)

    Hello @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

    (@patowins)

    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.