• Resolved bobbysmith007

    (@bobbysmith007)


    Comments cannot be posted with the plugin enabled (as was mentioned a year ago).

    The problem is caused because the filter added in adsense-plugin.php does not return the content passed to it. Since the content is the comment_post_id, no comments can be posted.

    From here:
    add_filter( ‘comment_id_fields’, array( $adsns_plugin, ‘adsns_end_comment_ad’ ) ); /* Adding ad after comment form */

    adsense-plugin.class.php – Line 29
    Function should accept and return content as shown below instead of being void / returning nothing.

    /* Show ads after comment form */
    function adsns_end_comment_ad($content) {
      ...
      return $content;
    }

    Old thread:
    https://ww.wp.xz.cn/support/topic/users-can-not-write-a-comment-when-plugin-enable?replies=4

    Hope this helps resolve this issue.

    https://ww.wp.xz.cn/plugins/adsense-plugin/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    We have received your query and it is now being processed. We will get back to you on this forum as soon as we can.

    Regards,
    BestWebSoft Support Team

    Hi,

    We will investigate the plugin, and if this issue will happen again, then we will fix it in the next plugin update.

    Regards,
    BestWebSoft Support Team

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Comments cannot be posted when the plugin is enabled’ is closed to new replies.