PHP error on nofollow
-
I have a HUGE log with this error on it:
[05-Feb-2019 14:04:39 UTC] PHP Warning: preg_replace_callback(): Requires argument 2, '<a rel="nofollow"\1', to be a valid callback in /home/indicovc/public_html/wp-content/plugins/wpa-seo-auto-linker/wpa-seo-auto-linker-functions.php on line 36
And line 36 is this:
if ($options['nofolo']) { $result = preg_replace_callback( '%<a(\s+.*?href=\S(?!' . $host . '))%i', '<a rel="nofollow"\\1', $result); $result = preg_replace_callback( '%<a(\s+.*?href=\S(?!' . $host . '))%i', function($m) { return '<a rel="nofollow"'.$m[1]; }, $result); }
The problem seems to be the first preg_replace_callback. What am I missing?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘PHP error on nofollow’ is closed to new replies.