Title: Contact form module throws errors when using WP CLI
Last modified: August 21, 2016

---

# Contact form module throws errors when using WP CLI

 *  Resolved [Andrew Ryno](https://wordpress.org/support/users/andrewryno/)
 * (@andrewryno)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/contact-form-module-throws-errors-when-using-wp-cli/)
 * Line 101 of [http://plugins.svn.wordpress.org/jetpack/tags/2.2.2/modules/contact-form/grunion-contact-form.php](http://plugins.svn.wordpress.org/jetpack/tags/2.2.2/modules/contact-form/grunion-contact-form.php)
   checks for REQUEST_METHOD, which isn’t set using WP CLI (probably depending on
   the server).
 * Rather than using `isset()` to check if it exists, what should be done is the
   check for the `REQUEST_METHOD` should be last within the if statement. That way
   if it’s not a submission for the contact form, it doesn’t even get to the `REQUEST_METHOD`
   check.
 * [http://wordpress.org/extend/plugins/jetpack/](http://wordpress.org/extend/plugins/jetpack/)

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

 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [13 years, 1 month ago](https://wordpress.org/support/topic/contact-form-module-throws-errors-when-using-wp-cli/#post-3642657)
 * Thanks for the report! I opened a trac ticket ([#1690-plugins](http://plugins.trac.wordpress.org/ticket/1690)),
   and we’ll have a look at it.
 *  Plugin Contributor [Tim Moore](https://wordpress.org/support/users/tmoorewp/)
 * (@tmoorewp)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/contact-form-module-throws-errors-when-using-wp-cli/#post-3642678)
 * Fixed in [http://plugins.trac.wordpress.org/changeset/695389](http://plugins.trac.wordpress.org/changeset/695389).
 *  Thread Starter [Andrew Ryno](https://wordpress.org/support/users/andrewryno/)
 * (@andrewryno)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/contact-form-module-throws-errors-when-using-wp-cli/#post-3642682)
 * Looks good. Thanks!

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

The topic ‘Contact form module throws errors when using WP CLI’ is closed to new
replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Andrew Ryno](https://wordpress.org/support/users/andrewryno/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/contact-form-module-throws-errors-when-using-wp-cli/#post-3642682)
 * Status: resolved