PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Function ereg() and split() is deprecated in common.php

  1. PHP Version 5.3.5-1ubuntu7.7
    MySQL Version 5.1.49
    WordPress Version 3.3.1
    Gravity Forms Version 1.6.3.beta1

    Deprecated: Function split() is deprecated in wp-content/plugins/gravityforms/common.php on line 4189
    Deprecated: Function ereg() is deprecated in wp-content/plugins/gravityforms/common.php on line 4192
    Deprecated: Function split() is deprecated in wp-content/plugins/gravityforms/common.php on line 4199

    Posted 13 years ago on Thursday February 16, 2012 | Permalink
  2. Is this being fixed in latest beta?

    Posted 13 years ago on Friday February 17, 2012 | Permalink
  3. It is not, but it will be fixed for the 1.6.3 final release. Thanks for pointing it out.

    Posted 13 years ago on Friday February 17, 2012 | Permalink
  4. In an attempt to fix this while waiting for 1.6.3 final, I changed split() to preg_split(), ereg() to preg_match() and find out that any credit number entered will always result in the "Invalid credit card number".

    Revert those changes back will allow payment to go forward but results in many warning about "Deprecated: Function" which is not good for our paying users.

    Is there any fixes for the time being?

    Posted 13 years ago on Wednesday February 22, 2012 | Permalink