Title: Doesn&#039;t work with PHP7
Last modified: August 31, 2016

---

# Doesn't work with PHP7

 *  [windracer](https://wordpress.org/support/users/windracer/)
 * (@windracer)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/doesnt-work-with-php7-1/)
 * This plugin (just like the original Link Indicator) doesn’t work with PHP7. The
   problem is this:
 * `PHP Fatal error: Uncaught Error: Call to undefined function eregi_replace() 
   in /var/www/public/blog/wp-content/plugins/extlnk/extlnk.php:2177`
 * eregi_replace() was removed in PHP7:
 * [https://secure.php.net/manual/en/function.eregi-replace.php](https://secure.php.net/manual/en/function.eregi-replace.php)
 * I tried just using preg_replace, but that didn’t work either.
 * [https://wordpress.org/plugins/extlnk/](https://wordpress.org/plugins/extlnk/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [windracer](https://wordpress.org/support/users/windracer/)
 * (@windracer)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/doesnt-work-with-php7-1/#post-7300515)
 * I got the plugin working by changing this line:
 * `$final_stuff = eregi_replace('[:space:](http://codex.wordpress.org/:space:)+','',
   $final_stuff);`
 * to this:
 * `$final_stuff = preg_replace('/[:space:](http://codex.wordpress.org/:space:)+/','',
   $final_stuff);`

Viewing 1 replies (of 1 total)

The topic ‘Doesn't work with PHP7’ is closed to new replies.

 * ![](https://ps.w.org/extlnk/assets/icon-256x256.png?rev=1366255)
 * [extLnk](https://wordpress.org/plugins/extlnk/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/extlnk/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/extlnk/)
 * [Active Topics](https://wordpress.org/support/plugin/extlnk/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/extlnk/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/extlnk/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [windracer](https://wordpress.org/support/users/windracer/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/doesnt-work-with-php7-1/#post-7300515)
 * Status: not resolved