WordPress.org

Ready to get started?Download WordPress

Forums

Plugin causing trouble - the real problem: Trouble plugin is Akismet! (10 posts)

  1. MarsHottentot
    Member
    Posted 2 years ago #

    Alright, I just updated Akismet and the "Warning: Missing argument 2 for wp_widget() in /home/content/b/l/a/blah/html/pushedbuttonsburning-in/wp-includes/widgets.php on line 76" line of death appeared at the top of the blog. Turn Akismet off, the problem rectifies itself. But, obviously, this is not the best solution - Akismet is very, very necessary.

    Line 76 in the widgets.php is:
    "return $new_instance;"

    What do I need to add here to get back in business?

    Thanks in advance.

  2. michael.mariart
    Member
    Posted 2 years ago #

    Check your wp-config.php file and look for

    define('WP_DEBUG', true);

    Change 'true' to 'false' (and don't use the single-quotes around them). This should stop those error messages from being displayed.

  3. MarsHottentot
    Member
    Posted 2 years ago #

    Fantastic! Thank you so much!

  4. MarsHottentot
    Member
    Posted 2 years ago #

    Well, It was already false, so I tried 'true' (without quotes!) and the site disappeared, replaced by:

    Parse error: syntax error, unexpected T_STRING in /home/content/j/a/s/jasonmaris/html/pushedbuttonsburning-in/wp-config.php on line 25

    I changed it back to false, but the site remains locked in this mess.

  5. MarsHottentot
    Member
    Posted 2 years ago #

    Line 25 is blank.

  6. michael.mariart
    Member
    Posted 2 years ago #

    That means that there's an error in the Akismet plugin. You can fix this (hint: it's not at the line that's in that error, but in a different file that's calling the widget). Anything that you change will be over-written by any future updates though.

    I'd suggest that you let the Akismet people know so that they can fix their plugin, or they can tell you what's gone wrong.

  7. MarsHottentot
    Member
    Posted 2 years ago #

    Yeah, will do. Thanks!

  8. MarsHottentot
    Member
    Posted 2 years ago #

    Not being much of a code jockey, I just deleted the Akismet plugin but to no avail. Looks like I'm about to have a radical redesign.

  9. Joseph Scott
    Member
    Posted 2 years ago #

    The other reports that I've seen with this error have all been on hosts using PHP 4. Current versions of WordPress and the Akismet plugin all require PHP 5.2 or higher.

  10. MarsHottentot
    Member
    Posted 2 years ago #

    Joseph - you're absolutely right - I'm not able to update WordPress because my site is PHP4.

Topic Closed

This topic has been closed to new replies.

About this Topic