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/
thetooon
Member
Posted 2 years ago #
There is no comment form on pages, only on entries.
thetooon
Member
Posted 2 years ago #
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()) { }
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()) ) {