Title: PHP 7
Last modified: August 30, 2016

---

# PHP 7

 *  Resolved [massimod](https://wordpress.org/support/users/massimod/)
 * (@massimod)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-7-14/)
 * While i use this plugin and i have been supportive to it and the dev, i think
   it is time to fix all those problems, especially with PHP 7.
 * Otherwise, it will die sooner or later.
 * Thanks
 * [https://wordpress.org/plugins/seo-automatic-links/](https://wordpress.org/plugins/seo-automatic-links/)

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/php-7-14/page/2/?output_format=md) [→](https://wordpress.org/support/topic/php-7-14/page/2/?output_format=md)

 *  Thread Starter [massimod](https://wordpress.org/support/users/massimod/)
 * (@massimod)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-7-14/#post-6868750)
 * PHP Deprecated: Methods with the same name as their class will not be constructors
   in a future version of PHP; SEOLinks has a deprecated constructor in /home/wp-
   content/plugins/seo-automatic-links/seo-links.php on line 13
 *  [Pratham](https://wordpress.org/support/users/pratham2003/)
 * (@pratham2003)
 * [10 years ago](https://wordpress.org/support/topic/php-7-14/#post-6868905)
 * More problems with PHP7
 * PHP message: PHP Warning: preg_replace(): The /e modifier is no longer supported,
   use preg_replace_callback instead in /home/??????/public_html/wp-content/plugins/
   seo-smart-links/seo-links.php on line 325″
 *  [augsburgde](https://wordpress.org/support/users/augsburgde/)
 * (@augsburgde)
 * [10 years ago](https://wordpress.org/support/topic/php-7-14/#post-6868907)
 * +1 for preg_replace warning
 *  Thread Starter [massimod](https://wordpress.org/support/users/massimod/)
 * (@massimod)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/php-7-14/#post-6868925)
 * Since the developer doesn’t care to help, isn’t any programmer here to help us
   solve the “preg_replace” problem. Because this is a stopper for PHP 7.
 * It is not a hard thing to do, pitty i’m not a programmer …
 * Maybe we could ask on Stackoverflow ?
 *  [skuntawat](https://wordpress.org/support/users/skuntawat/)
 * (@skuntawat)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/php-7-14/#post-6868926)
 * Hi, I fixed this problem on my sites.
    Because preg_replace deprecated since 
   php 5.4. We can use preg_replace_callback instead of.
 * Change this code in seo-auto-link.php line 76 and 253
 * `$text = preg_replace('%(<h.*?>)(.*?)(</h.*?>)%sie', "'\\1'.SEOAutoInSpecChar('\\
   2').'\\3'", $text);`
 * to
 *     ```
       $text =	preg_replace_callback( '%(<h.*?>)(.*?)(</h.*?>)%si',
       function ($m) {
       	return stripslashes($this->$m[1]) . SEOAutoInSpecChar( stripslashes($this->$m[2]) ) .stripslashes($this->$m[2]);
       },$text);
       ```
   
 * But I’m not sure this working 100%. Wating update from plugins.
 *  Thread Starter [massimod](https://wordpress.org/support/users/massimod/)
 * (@massimod)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/php-7-14/#post-6868927)
 * [@skuntawat](https://wordpress.org/support/users/skuntawat/)
 * There are many places inside the code that preg_replace is used. Not sure your
   code will fix the problems.
 *  [skuntawat](https://wordpress.org/support/users/skuntawat/)
 * (@skuntawat)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/php-7-14/#post-6868928)
 * Sure, Cannot fixed at all. My code still problem on <H> tag.
 * Anyway put this code “AddType application/x-httpd-php-old .php” to .htaccess 
   file for down grade php version.
 *  [gooma2](https://wordpress.org/support/users/gooma2/)
 * (@gooma2)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/php-7-14/#post-6868933)
 * Was anyone else able to figure out a workaround for this issue after upgrading
   to PHP 7?
 * After 2 years, I’m assuming this plugin was abandoned but it works great so hopefully
   we’ll figure out to work it out.
 *  Thread Starter [massimod](https://wordpress.org/support/users/massimod/)
 * (@massimod)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/php-7-14/#post-6868934)
 * [@gooma2](https://wordpress.org/support/users/gooma2/)
 * I have been forced to switch to something else, pitty.
 * Also the installs of the plugin (as shown to the main plugin page) have dropped
   from 100.000+ to 90.000+ and that means something.
 *  [gooma2](https://wordpress.org/support/users/gooma2/)
 * (@gooma2)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/php-7-14/#post-6868935)
 * MassimoD,
 * Which plugin did you switch too?
 * We were able to get all of our other plugins working with PHP7, but this one 
   is oddly tricky to mesh with the changes required with the update.
 * Plus, it’s not been updated in a couple years.
 * Thanks!
 *  Thread Starter [massimod](https://wordpress.org/support/users/massimod/)
 * (@massimod)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-7-14/#post-6868936)
 * [@gooma2](https://wordpress.org/support/users/gooma2/)
 * I switched to
 * [https://wordpress.org/plugins/wp-auto-affiliate-links/](https://wordpress.org/plugins/wp-auto-affiliate-links/)
 * Not exactly the same but covers me 90%. AND the developer is super friendly and
   responsive.
 *  [pako69](https://wordpress.org/support/users/pako69/)
 * (@pako69)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-7-14/#post-8166858)
 * Hi
    I’m using PHP 7.0.10 with this plugin without errors…
 *  Thread Starter [massimod](https://wordpress.org/support/users/massimod/)
 * (@massimod)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/php-7-14/#post-8197812)
 * [@pako69](https://wordpress.org/support/users/pako69/)
 * Apparently you have no idea what you are talking about.
 *  [pako69](https://wordpress.org/support/users/pako69/)
 * (@pako69)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/php-7-14/#post-8209747)
 * [@massimod](https://wordpress.org/support/users/massimod/)
 * Why? Your issue (but maybe I missunderstood you) was not about this plugin and
   PHP 7?
    I this is right, I just said, that I have used this plugin with PHP 7
   and didn’t had any issues.. By the way I’ve found another plugin that better 
   suit my needs to do the job: [https://wordpress.org/plugins/wp-auto-affiliate-links/](https://wordpress.org/plugins/wp-auto-affiliate-links/)
 * PS: “_Apparently you have no idea what you are talking about._” > it’s not as
   polite remark
 *  Thread Starter [massimod](https://wordpress.org/support/users/massimod/)
 * (@massimod)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/php-7-14/#post-8209841)
 * [@pako69](https://wordpress.org/support/users/pako69/)
 * Because you have absolutely no idea what you are talking about and you continue
   that “i didn’t had any issued”.
 * Because that plugin is using discontinued php functions, PERIOD. And ENABLING
   DEBUG (you didn;t apparently), pukes out all the errors.
 * The plugin doesn’t work at all with PHP7, you believe it or not.
 * Sorry but spending time with ignorant people is not good.

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/php-7-14/page/2/?output_format=md) [→](https://wordpress.org/support/topic/php-7-14/page/2/?output_format=md)

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

 * ![](https://s.w.org/plugins/geopattern-icon/seo-automatic-links.svg)
 * [SEO Smart Links](https://wordpress.org/plugins/seo-automatic-links/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/seo-automatic-links/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/seo-automatic-links/)
 * [Active Topics](https://wordpress.org/support/plugin/seo-automatic-links/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/seo-automatic-links/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/seo-automatic-links/reviews/)

## Tags

 * [PHP7](https://wordpress.org/support/topic-tag/php7/)

 * 18 replies
 * 6 participants
 * Last reply from: [pako69](https://wordpress.org/support/users/pako69/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/php-7-14/page/2/#post-8209871)
 * Status: resolved