• There’s an issue in the code that is causing this fatal error. I’ve provided the details here for you to reference for your next release bug fixes:

    Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given in /html/wp-content/plugins/accessibility-checker/accessibility-checker.php:383
    Stack trace:
    #0 /html/wp-content/plugins/accessibility-checker/admin/class-ajax.php(75): edac_summary(202936)
    #1 /html/wp-includes/class-wp-hook.php(324): EDAC\\Admin\\Ajax->summary(\'\')
    #2 /html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(\'\', Array)
    #3 /html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #4 /html/wp-admin/admin-ajax.php(188): do_action(\'wp_ajax_edac_su...\')

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Scott Kingsley Clark

    (@sc0ttkclark)

    I was running 1.8.1 but just updated to 1.10.0 so I’m going to mark this resolved unless I see the error happen again.

    Thread Starter Scott Kingsley Clark

    (@sc0ttkclark)

    Just ran into it again by editing a page in classic editor. This was a page that also uses Page Links To but I don’t think it’s what causes it.

    Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given in /html/wp-content/plugins/accessibility-checker/includes/classes/class-summary-generator.php:255
    Stack trace:
    #0 /html/wp-content/plugins/accessibility-checker/includes/classes/class-summary-generator.php(255): count(\'0,0\')
    #1 /html/wp-content/plugins/accessibility-checker/includes/classes/class-summary-generator.php(83): EDAC\\Inc\\Summary_Generator->update_issue_density(Array)
    #2 /html/wp-content/plugins/accessibility-checker/admin/class-ajax.php(77): EDAC\\Inc\\Summary_Generator->generate_summary()
    #3 /html/wp-includes/class-wp-hook.php(324): EDAC\\Admin\\Ajax->summary(\'\')
    #4 /html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(\'\', Array)
    #5 /html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #6 /html/wp-admin/admin-ajax.php(188): do_action(\'wp_ajax_edac_su...\')
    Plugin Author Steve Jones

    (@stevejonesdev)

    Hi @sc0ttkclark,

    We’ll take a look at this and keep you posted.

    Thanks,

    Steve

    Plugin Author williampatton

    (@williampatton)

    Hey @sc0ttkclark,

    We just released version 1.10.1 that includes a code change that should fix this for you. You may need to update or re-save a post before it calculates the density correctly as seeing this error means that something saved that data incorrectly before.

    If you spot this issue again let us know and we can revisit but I think what was just released should solve this issue for you.

    Thread Starter Scott Kingsley Clark

    (@sc0ttkclark)

    Thanks @williampatton, appreciate the quick resolution and release for that fix.

    As a plugin dev who gets these kinds of reports too, I thought it would be really helpful to provide the stacktrace and info like that. Hope it made it easier to tackle 🙂

    Have a great week!

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