• Resolved datschge

    (@datschge)


    We are occasionally getting following fatal error (which doesn’t seem to affect everyday usage):

    PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function NgSurvey_Options::restore_revisions(), 1 passed in /var/www/html/wp-includes/class-wp-hook.php on line 309 and exactly 2 expected in /var/www/html/wp-content/plugins/ngsurvey/includes/init/class-ngsurvey-options.php:248
    Stack trace:
    #0 /var/www/html/wp-includes/class-wp-hook.php(309): NgSurvey_Options->restore_revisions(124346)
    #1 /var/www/html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
    #2 /var/www/html/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
    #3 /var/www/html/wp-includes/revision.php(437): do_action('wp_restore_post...', 124346, 199991)
    #4 /var/www/html/wp-admin/revision.php(70): wp_restore_post_revision(199991)
    #5 {main}
      thrown in /var/www/html/wp-content/plugins/ngsurvey/includes/init/class-ngsurvey-options.php on line 248
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author NgIdeas

    (@ngideas)

    [Deleted earlier reply]

    Found the bug and fixed it. Thanks for reporting.
    This bug fix will be available in 1.1.2

    • This reply was modified 2 years, 9 months ago by NgIdeas.
    Thread Starter datschge

    (@datschge)

    Excellent! Thank you for the quick reply, fix and update!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Fatal Error: Uncaught ArgumentCountError’ is closed to new replies.