Title: Deprecated: Optional parameter $commentdata declared before required parameter $
Last modified: November 5, 2025

---

# Deprecated: Optional parameter $commentdata declared before required parameter $

 *  [exchangetheatre](https://wordpress.org/support/users/exchangetheatre/)
 * (@exchangetheatre)
 * [6 months, 3 weeks ago](https://wordpress.org/support/topic/deprecated-optional-parameter-commentdata-declared-before-required-parameter/)
 * Hi,
   I’m no webmaster, and i currently don’t have one for my company.I have this
   message on all pages and a lot of links are broken: **Deprecated**: Optional 
   parameter $commentdata declared before required parameter $error is implicitly
   treated as a required parameter in **/home/allowdig/exchangetheatre.com/wp-content/
   plugins/wp-spamshield/wp-spamshield.php** on line **4658**Can anybody hep ?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdeprecated-optional-parameter-commentdata-declared-before-required-parameter%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Nicholas Garofalo](https://wordpress.org/support/users/eidolonnight/)
 * (@eidolonnight)
 * [6 months, 3 weeks ago](https://wordpress.org/support/topic/deprecated-optional-parameter-commentdata-declared-before-required-parameter/#post-18708067)
 * That message is related to the [wp-spamshield plugin](https://wordpress.org/plugins/wp-spamshield/),
   which was closed in October of 2017. Given that the plugin is no longer supported,
   I suggest disabling it and replacing it with something that is currently maintained,
   such as [Akismet Anti-spam](https://wordpress.org/plugins/akismet/).
 *  Thread Starter [exchangetheatre](https://wordpress.org/support/users/exchangetheatre/)
 * (@exchangetheatre)
 * [6 months, 3 weeks ago](https://wordpress.org/support/topic/deprecated-optional-parameter-commentdata-declared-before-required-parameter/#post-18708084)
 * Thank you so much. 
   I hadn’t noticed other similar messages. this one is everywhere:**
   Warning**: Trying to access array offset on false in **/home/allowdig/exchangetheatre.
   com/wp-content/plugins/wp-word-count/public/class-wpwc-public.php** on line **
   123**And this one:**Notice**: ob_end_flush(): Failed to send buffer of zlib output
   compression (1) in **/home/allowdig/exchangetheatre.com/wp-includes/functions.
   php** on line **5420**Thanks a lot for your time
 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [6 months, 3 weeks ago](https://wordpress.org/support/topic/deprecated-optional-parameter-commentdata-declared-before-required-parameter/#post-18708092)
 * The former comes from a plugin called “wp-word-count” which has not been in the
   WordPress repository since 2024 for security reasons. I would recommend removing
   the plugin.
 * The last message cannot be clearly attributed. This can be caused by various 
   plugins. Clarify the first two cases first, and then perhaps this will also be
   resolved.
 *  Thread Starter [exchangetheatre](https://wordpress.org/support/users/exchangetheatre/)
 * (@exchangetheatre)
 * [6 months, 3 weeks ago](https://wordpress.org/support/topic/deprecated-optional-parameter-commentdata-declared-before-required-parameter/#post-18708104)
 * Thanks again, both of you,
   The only left now is **Notice**: ob_end_flush(): Failed
   to send buffer of zlib output compression (1) in **/home/allowdig/exchangetheatre.
   com/wp-includes/functions.php** on line **5420**It appears under every box for
   an embedded page (for examples I have a timeline with clickable previews-boxes
   of other pages on the same website)
 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [6 months, 3 weeks ago](https://wordpress.org/support/topic/deprecated-optional-parameter-commentdata-declared-before-required-parameter/#post-18708569)
 * This may be caused by another plugin you have activated. Or even your theme.
 * Deactivate all plugins to test. If it is still there, switch to a standard theme.
 * If you are unsure about this, create a backup of the project beforehand.

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

The topic ‘Deprecated: Optional parameter $commentdata declared before required 
parameter $’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [threadi](https://wordpress.org/support/users/threadi/)
 * Last activity: [6 months, 3 weeks ago](https://wordpress.org/support/topic/deprecated-optional-parameter-commentdata-declared-before-required-parameter/#post-18708569)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
