Title: Consider avoid undefined array key error
Last modified: September 30, 2025

---

# Consider avoid undefined array key error

 *  Resolved [Brandon Zhang](https://wordpress.org/support/users/heybran/)
 * (@heybran)
 * [8 months, 1 week ago](https://wordpress.org/support/topic/consider-avoid-undefined-array-key-error/)
 * Hi there,
 * This is not a request for support, I’m opening the issue hoping that plugin authors
   might consider in future versions, to update codes to avoid **undefined array
   key** error.
 *     ```wp-block-code
       FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "ne" in /plugins/newsletter/subscription/subscription.php on line 667
       ```
   
 * While reviewing the error logs on one of our sites, we saw quite a long list 
   of this errors being printed into the log, it was caused by attacker trying to
   send a POST request like `/?action=tnp&na=sa HTTP/1.0` , and this line of code
   in the plugin `$data->email = $posted['ne'];` will generate the undefined array
   key error.
 * It would be great to have this improved in upcoming release of the plugins.

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

 *  Plugin Author [Stefano Lissa](https://wordpress.org/support/users/satollo/)
 * (@satollo)
 * [8 months, 1 week ago](https://wordpress.org/support/topic/consider-avoid-undefined-array-key-error/#post-18661823)
 * Hi, thank you for reporting I’ll add the ?? operator on next version. BTW the‘
   ne’ parameter should not be missing on the posted values. If it is no present
   an error should be triggered during the data validation.
 *  Thread Starter [Brandon Zhang](https://wordpress.org/support/users/heybran/)
 * (@heybran)
 * [8 months, 1 week ago](https://wordpress.org/support/topic/consider-avoid-undefined-array-key-error/#post-18662176)
 * Hi Stefano,
 * Thanks for getting back to me so quick. The error was found in our server logs
   while we’re reviewing an ongoing attacks on the website.
 * Sounds lovely, we’ll update the plugin as soon as the new version is out.

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

The topic ‘Consider avoid undefined array key error’ is closed to new replies.

 * ![](https://ps.w.org/newsletter/assets/icon-256x256.png?rev=1052028)
 * [Newsletter - Send awesome emails from WordPress](https://wordpress.org/plugins/newsletter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/newsletter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/newsletter/)
 * [Active Topics](https://wordpress.org/support/plugin/newsletter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/newsletter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/newsletter/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Brandon Zhang](https://wordpress.org/support/users/heybran/)
 * Last activity: [8 months, 1 week ago](https://wordpress.org/support/topic/consider-avoid-undefined-array-key-error/#post-18662176)
 * Status: resolved