Title: PHP 7 incompatibility errors
Last modified: September 7, 2017

---

# PHP 7 incompatibility errors

 *  Resolved [the_webscaper](https://wordpress.org/support/users/the_webscaper/)
 * (@the_webscaper)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/php-7-incompatibility-errors/)
 * Good Day,
 * I saw others posted many months ago about this, but I’m bringing it up again.
   Errors (pasted at bottom) are kicked with both THIS plugin as well as your Constant
   Contact for WordPress plugin (i.e., both the Gravity Forms add-on and the regular
   plugin).
 * Someone stated it was an unused function but even so, this should be cleaned 
   up. I provide maintenance to my clients and when they see these errors in the
   reports I provide they question MY competency.
 * Would it be possible to address this in the next update of both plugins? I will
   also post in the other support forum. Thank you!
 * ERRORS:
    FILE: /home/xxxxxxxx/public_html/wp-content/plugins/gravity-forms-constant-
   contact/api/cc_class.php ————————————————————————————————————- FOUND 2 ERRORS
   AFFECTING 1 LINE ————————————————————————————————————- 82 | ERROR | Function 
   eregi() is deprecated since PHP 5.3 and removed since PHP 7.0; use preg_match
   instead 82 | ERROR | Extension ‘ereg’ is deprecated since PHP 5.3 and removed
   since PHP 7.0 – use pcre instead. ————————————————————————————————————-

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

 *  [Marty](https://wordpress.org/support/users/bozzmedia/)
 * (@bozzmedia)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/php-7-incompatibility-errors/#post-9491295)
 * Same concerns here. An update for PHP 7 compatibility would be most welcome. 
   Thanks!
 *  [Marty](https://wordpress.org/support/users/bozzmedia/)
 * (@bozzmedia)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/php-7-incompatibility-errors/#post-9491300)
 * Looks like the changes are rather trivial. Should be straightforward. More info
   here: [https://stackoverflow.com/questions/13580784/deprecated-function-ereg-is-deprecated](https://stackoverflow.com/questions/13580784/deprecated-function-ereg-is-deprecated)
 *  [fluiditystudio](https://wordpress.org/support/users/fluiditystudio/)
 * (@fluiditystudio)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/php-7-incompatibility-errors/#post-9585533)
 * The code should be fixed by replacing
 * ereg(“^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$”,
   $email);
 * with:
 * preg_match(‘/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})
   $/’, $email);
 *  [Ronald Huereca](https://wordpress.org/support/users/ronalfy/)
 * (@ronalfy)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/php-7-incompatibility-errors/#post-9831800)
 * As [@fluiditystudio](https://wordpress.org/support/users/fluiditystudio/) mentioned,
   the change is trivial. Do you accept PRs?
 * The issue is we’re trying to move to PHP7 and this plugin is one of the road 
   blockers.
 *  [fluiditystudio](https://wordpress.org/support/users/fluiditystudio/)
 * (@fluiditystudio)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/php-7-incompatibility-errors/#post-9835148)
 * [@ronalfy](https://wordpress.org/support/users/ronalfy/) – I think this plugin
   is going to end up abandoned, as it hasn’t been updated in 11 months and the 
   author is not responding to anything in the supports threads. My guess is they
   have given up on this plugin. I have for the time being, changed the code in 
   the plugin to what I stated above. This caused my PHP 7 error to go away.
    -  This reply was modified 8 years, 5 months ago by [fluiditystudio](https://wordpress.org/support/users/fluiditystudio/).
 *  Plugin Contributor [Zack Katz](https://wordpress.org/support/users/katzwebdesign/)
 * (@katzwebdesign)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/php-7-incompatibility-errors/#post-10143076)
 * This is fixed now, thanks!

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

The topic ‘PHP 7 incompatibility errors’ is closed to new replies.

 * ![](https://ps.w.org/gravity-forms-constant-contact/assets/icon-256x256.png?rev
   =1599317)
 * [Gravity Forms Constant Contact](https://wordpress.org/plugins/gravity-forms-constant-contact/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gravity-forms-constant-contact/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gravity-forms-constant-contact/)
 * [Active Topics](https://wordpress.org/support/plugin/gravity-forms-constant-contact/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gravity-forms-constant-contact/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gravity-forms-constant-contact/reviews/)

 * 6 replies
 * 5 participants
 * Last reply from: [Zack Katz](https://wordpress.org/support/users/katzwebdesign/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/php-7-incompatibility-errors/#post-10143076)
 * Status: resolved