• 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=&quot;nofollow&quot;\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)
  • Plugin Author Arjan Olsder

    (@arjanolsder)

    @angelcosta, we just pushed out version 1.3. We replaced line 36 also to support special characters. Please take a look if your issue is resolved. If not, we’ll take a deep dive into this.

    Where is the 1.3 download available at?

    Thread Starter Angel Costa

    (@angelcosta)

    It’s the current one…

    peakdistrictseo

    (@peakdistrictseo)

    I have a similar error, but I’m no coder, where do i begin?

    Warning: Declaration of SEO_Auto_Linker_Front::get_meta($post, $key) should be compatible with SEO_Auto_Linker_Base::get_meta($key, $default = ”) in /home/sites/3b/4/402c7fb616/public_html/wp-content/plugins/seo-auto-linker/inc/front.php on line 439

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP error on nofollow’ is closed to new replies.