Title: error on installation
Last modified: August 20, 2016

---

# error on installation

 *  Resolved [willcm](https://wordpress.org/support/users/willcm/)
 * (@willcm)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/error-on-installation-6/)
 * Hi on installation im getting an error code Deprecated: Function ereg_replace()
   is deprecated are you able to update the plugin to get it to work?
 * [http://wordpress.org/extend/plugins/yikes-inc-easy-mailchimp-extender/](http://wordpress.org/extend/plugins/yikes-inc-easy-mailchimp-extender/)

Viewing 1 replies (of 1 total)

 *  [Carlos Zuniga](https://wordpress.org/support/users/hiwhatsup/)
 * (@hiwhatsup)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/error-on-installation-6/#post-3443845)
 * We used preg_replace() and not ereg_replace() in our plugin as ereg_replace()
   was deprecated in PHP version 5.3.
 * When you use both ereg_replace() and preg_replace() at the same time PHP will
   sometimes throw that error. Meaning if you already have another plugin installed
   using ereg_replace() even though its deprecated when installing our plugin you
   will get that error even though our plugin is using the correct function.
 * You have a few possible solutions.
 * First, Update all your themes and plugins as newer version of these add-ons may
   have already corrected the deprecated function. If this doesn’t work look at 
   the error as the message will tell you which file has the deprecated function
   and notify the developer of the deprecated function.
 * Second, if you feel comfortable working in PHP look for the ereg_replace() among
   your other plugins and replace it with preg_replace():
 * Old:
    ereg_replace(“.*\.(.*)$” , “\\1” , “foo.jpg”);
 * New:
    preg_replace(“/.*\.(.*)$/” , “\\1” , “foo.jpg”);
 * Notice the additional delimiters as PHP 5.3 requires the “/” as a delimiter.
 * Third, go to lines 119 and 128 of the file “class.yksemeBase.php file and revert
   back to ereg_replace (not recommended).

Viewing 1 replies (of 1 total)

 The topic ‘error on installation’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/yikes-inc-easy-mailchimp-extender_a1c7e5.
   svg)
 * [Easy Forms for Mailchimp](https://wordpress.org/plugins/yikes-inc-easy-mailchimp-extender/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yikes-inc-easy-mailchimp-extender/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yikes-inc-easy-mailchimp-extender/)
 * [Active Topics](https://wordpress.org/support/plugin/yikes-inc-easy-mailchimp-extender/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yikes-inc-easy-mailchimp-extender/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yikes-inc-easy-mailchimp-extender/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Carlos Zuniga](https://wordpress.org/support/users/hiwhatsup/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/error-on-installation-6/#post-3443845)
 * Status: resolved