Comments cannot be posted when the plugin is enabled
Viewing 2 replies - 1 through 2 (of 2 total)
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.
The topic ‘Comments cannot be posted when the plugin is enabled’ is closed to new replies.
(@bobbysmith007)
10 years, 11 months ago
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.
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/