Title: Warning: htmlspecialchars() expects parameter
Last modified: December 19, 2018

---

# Warning: htmlspecialchars() expects parameter

 *  Resolved [paulamann](https://wordpress.org/support/users/paulamann/)
 * (@paulamann)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/warning-htmlspecialchars-expects-parameter/)
 * Hi,
 * since 2 or 3 days we several warnings occure on sites of different clients:
 * Warning: htmlspecialchars() expects parameter 1 to be string, array given in /
   home/advert72/public_html/wp-content/plugins/redirect-editor/redirect-editor.
   php on line 286
 * Warning: array_key_exists() expects parameter 2 to be array, null given in /home/
   advert72/public_html/wp-content/plugins/redirect-editor/redirect-editor.php on
   line 405
 * Warning: call_user_func_array() expects parameter 1 to be a valid callback, function‘
   airtight_headers’ not found or invalid function name in /home/advert72/public_html/
   wp-includes/class-wp-hook.php on line 286
 * By deactivating your plugin they disappear.
 * Can you check what is going wrong please?
 * thank you
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwarning-htmlspecialchars-expects-parameter%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [zuda](https://wordpress.org/support/users/zuda/)
 * (@zuda)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/warning-htmlspecialchars-expects-parameter/#post-11009398)
 * we made a patch for that and it will be released to everyone for free. Thank 
   you so much for alerting us to this issue, so we can better improve our service
   to all the users of airtight security.
 *  Plugin Author [zuda](https://wordpress.org/support/users/zuda/)
 * (@zuda)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/warning-htmlspecialchars-expects-parameter/#post-11009520)
 * It’s released along with a special thank you to you in the changelog.
    -  This reply was modified 7 years, 5 months ago by [zuda](https://wordpress.org/support/users/zuda/).
 *  Thread Starter [paulamann](https://wordpress.org/support/users/paulamann/)
 * (@paulamann)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/warning-htmlspecialchars-expects-parameter/#post-11010955)
 * thank you very much for your quick response 🙂

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

The topic ‘Warning: htmlspecialchars() expects parameter’ is closed to new replies.

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

 * 3 replies
 * 2 participants
 * Last reply from: [paulamann](https://wordpress.org/support/users/paulamann/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/warning-htmlspecialchars-expects-parameter/#post-11010955)
 * Status: resolved