Forums

[resolved] [Plugin: WP-SpamFree Anti-Spam] Notice: Undefined index: (5 posts)

  1. thetooon
    Member
    Posted 2 years ago #

    Pluging doesn't work on pages, only on entries.

    Notice: Undefined index: form in .../wp-content/plugins/wp-spamfree/wp-spamfree.php on line 716
    Notice: Undefined index: REMOTE_HOST in .../wp-content/plugins/wp-spamfree/wp-spamfree.php on line 1106
    Notice: Undefined variable: ReverseDNS .../wp-content/plugins/wp-spamfree/wp-spamfree.php on line 1107
    Notice: Undefined variable: ReverseDNS in .../spamfree/wp-spamfree.php on line 1107
    Notice: Undefined variable: ReverseDNS in .../spamfree/wp-spamfree.php on line 1107
    Notice: Undefined variable: ReverseDNS in .../spamfree/wp-spamfree.php on line 1107
    Notice: Undefined index: form in .../spamfree/wp-spamfree.php on line 1157

    Any suggestions why?

    http://wordpress.org/extend/plugins/wp-spamfree/

  2. thetooon
    Member
    Posted 2 years ago #

    There is no comment form on pages, only on entries.

  3. thetooon
    Member
    Posted 2 years ago #

    Entries means posts.

  4. thetooon
    Member
    Posted 2 years ago #

    Changed line 665 from
    if ( is_page() && ( !is_home() && !is_feed() && !is_archive() && !is_search() && !is_404() && comments_open()) ) {
    to
    if ( is_page() && ( !is_home() && !is_feed() && !is_archive() && !is_search() && !is_404() && comments_open()) ) {

    and add before 1157 additional check
    $content_new = $content; if (comments_open()) { }

  5. thetooon
    Member
    Posted 2 years ago #

    Well, actually I forgot one more check in line 665 - if ( is_page() && ( !is_home() && !is_feed() && !is_archive() && !is_search() && !is_404() && !is_front_page() && comments_open()) ) {

Topic Closed

This topic has been closed to new replies.

About this Topic