• As soon as I enable it, my error_log is being spammed:

    php[error] [16-Feb-2017 01:08:09 UTC] PHP Notice:  Undefined offset: 1 in /data/wp-content/plugins/wp-links/wp-links.php on line 175
    php[error] [16-Feb-2017 01:08:09 UTC] PHP Notice:  Undefined variable: wplinks_image in /data/wp-content/plugins/wp-links/wp-links.php on line 149

    I hope you can fix this. Thanks.

Viewing 1 replies (of 1 total)
  • You should get rid of these error messages if you add
    $wplinks_image = isset($value[1]) ? $value[1] : null;
    in line 148 of wp-links.php
    right before the line
    if ( WPLINKS_NOFOLLOW == 'on' && !in_array($url_top_level, $WPLINKS_WHITELIST_ARRAY) ) return '<a href="'.$url.'" '.$wplinks_open.' rel="external nofollow" '.$wplinks_title.' '.$style.'>' . $matches[5] . '</a>'.$wplinks_image;

    and if you replace line 175
    if ($results[1]) return true;
    with
    if(isset($results[1]) ? $results[1] : null) return true;

    • This reply was modified 7 years, 3 months ago by cinematic.
Viewing 1 replies (of 1 total)
  • The topic ‘Incompatible with PHP 7?’ is closed to new replies.