• I sometimes get this error when using the plugin. I think maybe i need to add a issec somewhere on line 180 ? If I refresh the page after getting this error, the problem goes away.

    Notice: Undefined variable: bold_list in /var/www/html/wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefListViews.php on line 180

    wpPubMedReflistViews::bold

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter j4jes

    (@j4jes)

    line 180 is the line that starts with echo:

    /*
    boldface specified strings, e.g. specific authors
    */
    static function bold($text, $formats){
    echo “<br>”.__METHOD__.”<br>

    ".print_r($bold_list, true)."

    <br>”;
    foreach ($bold_list as $bold_item){
    $bold_item = trim($bold_item);
    if($bold_item == ”) continue;
    $text = str_replace(“$bold_item”, “$bold_item“, $text );
    }
    return $text;
    }

    Plugin Author jimhu

    (@jimhu)

    Sorry I missed this ticket until now. The line you highlighted is a debugging statement. I’ll remove it in the next version, which I should push soon.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘bold_list undefined variable on line 180’ is closed to new replies.