Support » Plugin: NextScripts: Social Networks Auto-Poster » Critical Problem with version 4.3.8

  • There is a problem with the comments retrieval functionality of the WordPress plugin Nextscripts. Comments are not retrieved because one comment seems to be blocked and is retrieved multiple times (see error log at the bottom of this message).

    I’ve analysed this, and it’s a defect in the plugin “NextScripts: Social Networks Auto-Poster”, specifically here:

    #3 /var/www/xxx.com/news/wp-content/plugins/social-networks-auto-poster-facebook-twitter-g/inc/nxs_functions_wp.php(819): do_action(‘comment_post’, 48489, 1)

    You’ll see there that it calls the action comment_post with only two parameters. In WordPress code, that action is defined as having three parameters. This causes a problem if anything external (such as WP-O) has hooked that action.

    Hoping you can resolved this issue.

    [CRITICAL] : Uncaught ArgumentCountError: Too few arguments to function WPO_Cache_Rules::purge_post_on_comment(), 2 passed in /var/www/focusingonwildlife.com/news/wp-includes/class-wp-hook.php on line 286 and exactly 3 expected in /var/www/focusingonwildlife.com/news/wp-content/plugins/wp-optimize/cache/class-wpo-cache-rules.php:54
    Stack trace:
    #0 /var/www/xxx.com/news/wp-includes/class-wp-hook.php(286): WPO_Cache_Rules->purge_post_on_comment(48489, 1)
    #1 /var/www/xxx.com/news/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #2 /var/www/xxx.com/news/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
    #3 /var/www/xxx.com/news/wp-content/plugins/social-networks-auto-poster-facebook-twitter-g/inc/nxs_functions_wp.php(819): do_action(‘comment_post’, 48489, 1)
    #4 /var/www/xxx.com/news/wp-content/plugins/social-networks-auto-poster-facebook-twitter-g/inc-cl/fb.php(531): nxs_postNewComment(Array, true)
    #5 /var/www/xxx

    • This topic was modified 3 months, 2 weeks ago by supertrooper2.
  • You must be logged in to reply to this topic.