PHP 7
-
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
-
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
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″
+1 for preg_replace warning
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 ?
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.
There are many places inside the code that preg_replace is used. Not sure your code will fix the problems.
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.
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.
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.
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!
I switched to
https://wordpress.org/plugins/wp-auto-affiliate-links/
Not exactly the same but covers me 90%. AND the developer is super friendly and responsive.
Hi
I’m using PHP 7.0.10 with this plugin without errors…Apparently you have no idea what you are talking about.
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/PS: “Apparently you have no idea what you are talking about.” > it’s not as polite remark
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.
The topic ‘PHP 7’ is closed to new replies.