Support » Plugin: WP-Optimize - Clean, Compress, Cache. » Critical Problems with Version 3.0.10

  • Resolved supertrooper2

    (@supertrooper2)


    The latest version of WP Optimize is interfering 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.

    I have reverted to the version 2.3.4 and the problem seems to be solved. Within minutes 50 comments were retrieved. i.e. the blockage was resolved!

    Until this problem with version 3.0.10 is resolved I will be forced to stay with the older version 2.3.4.

    Hoping you can resolved this issue.

    The error log is shown below.

    [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

Viewing 1 replies (of 1 total)
  • Plugin Author David Anderson

    (@davidanderson)

    Hi,

    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.

    I’ve added a work-around for our next release to cope with that defect (which will be in our next release when that comes out), but you really ought to report it to the plugin itself so that it gets fixed at source. (There may be many other plugins it triggers a fatal error in in the same way).

    David

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.