Forums

most wanted plugin error (5 posts)

  1. hbalagh
    Member
    Posted 6 years ago #

    i get the following error after activating this plug in

    parse error: parse error, unexpected T_VARIABLE in /home/heather/public_html/pro/wp-content/plugins/mostwanted.php on line 141

    line 141 code here

    function mostwanted($top_n=5, $curtail=0, $showviews=false, $show_views_in_tt=true, $duration="", $pre="
    <li>", $post="</li>
    ", $method="ip"){

  2. Mark (podz)
    Support Maven
    Posted 6 years ago #

    From what tiny tiny php knowledge I have, try putting a ; after the last rounded ) like this:

    ", $method="ip"); {

  3. jalenack
    Member
    Posted 6 years ago #

    First of all, podz has it wrong this time. No ';' needed.

    Well, I added a function to my site with the code in your error message, and it worked fine for me. Beats me...

  4. Mark (podz)
    Support Maven
    Posted 6 years ago #

    Oops ... a tiny knowledge is a dangerous thing :)

  5. Try redownloading it? And also check the lines before. They are often the culprit (missing ; or " or whatever).

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.