Title: Solution to: &#8220;Uncaught Error: Call to undefined function ereg_replace()&#8221;
Last modified: October 6, 2016

---

# Solution to: “Uncaught Error: Call to undefined function ereg_replace()”

 *  Resolved [Sjoerd Blom](https://wordpress.org/support/users/vertizio/)
 * (@vertizio)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/solution-to-uncaught-error-call-to-undefined-function-ereg_replace/)
 * When you run into the following error:
 *     ```
       Fatal error: Uncaught Error: Call to undefined function ereg_replace() in /wwwroot/mydomain.com/tng/admin_login.php:71 Stack trace: #0 {main} thrown in /wwwroot/mydomain.com/tng/admin_login.php on line 71
       ```
   
 * …downgrade to a lower version of PHP. You apparently use PHP7, which is not supported(
   yet).
 * [@mark](https://wordpress.org/support/users/mark/)@barnes: please make this plugin
   PHP7-ready. Thanks for the nice job.

Viewing 1 replies (of 1 total)

 *  Plugin Author [theKiwi](https://wordpress.org/support/users/thekiwi/)
 * (@thekiwi)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/solution-to-uncaught-error-call-to-undefined-function-ereg_replace/#post-8838009)
 * Sjoerd
 * An update I posted today replaces ereg_replace with preg_replace so should not
   display this error with PHP 7
 * Roger

Viewing 1 replies (of 1 total)

The topic ‘Solution to: “Uncaught Error: Call to undefined function ereg_replace()”’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/tng-wordpress-plugin.svg)
 * [TNG Wordpress Integration](https://wordpress.org/plugins/tng-wordpress-plugin/)
 * [Support Threads](https://wordpress.org/support/plugin/tng-wordpress-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/tng-wordpress-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tng-wordpress-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tng-wordpress-plugin/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [theKiwi](https://wordpress.org/support/users/thekiwi/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/solution-to-uncaught-error-call-to-undefined-function-ereg_replace/#post-8838009)
 * Status: resolved