• Hi, recently it became impossible to Edit, Unlink, Recheck or Fix any of the links in the Local [old] list on wp-admin/admin.php?page=blc_local

    The last entry shows in the Source column: “There has been a critical error on this website. Please check your site admin email inbox for instructions,” after which the table is broken off and the page source remains unfinished with missing footer.

    The debug log shows this error occurring:

    [14-Nov-2024 00:01:08 UTC] PHP Fatal error: Uncaught ArgumentCountError: 3 arguments are required, 2 given in /home/xxxxx/public_html/wp-content/plugins/broken-link-checker/legacy/includes/any-post.php:579 Stack trace:
    #0 /home/xxxxx/public_html/wp-content/plugins/broken-link-checker/legacy/includes/any-post.php(579): sprintf()
    #1 /home/xxxxx/public_html/wp-content/plugins/broken-link-checker/legacy/includes/any-post.php(543): blcAnyPostContainer->get_edit_url()
    #2 /home/xxxxx/public_html/wp-content/plugins/broken-link-checker/legacy/includes/instances.php(463): blcAnyPostContainer->ui_get_source()
    #3 /home/xxxxx/public_html/wp-content/plugins/broken-link-checker/legacy/includes/admin/table-printer.php(798): blcLinkInstance->ui_get_source()
    #4 /home/xxxxx/public_html/wp-content/plugins/broken-link-checker/legacy/includes/admin/table-printer.php(490): blcTablePrinter->column_used_in()
    #5 /home/xxxxx/public_html/wp-content/plugins/broken-link-checker/legacy/includes/admin/table-printer.php(147): blcTablePrinter->link_row()
    #6 /home/xxxxx/public_html/wp-content/plugins/broken-link-checker/legacy/core/core.php(1988): blcTablePrinter->print_table()
    #7 /home/xxxxx/public_html/wp-content/plugins/broken-link-checker/app/admin-pages/local-submenu/class-view.php(52): wsBrokenLinkChecker->links_page()
    #8 /home/xxxxx/public_html/wp-content/plugins/broken-link-checker/app/admin-pages/local-submenu/class-controller.php(189): WPMUDEV_BLC\App\Admin_Pages\Local_Submenu\View->render()
    #9 /home/xxxxx/public_html/wp-includes/class-wp-hook.php(324): WPMUDEV_BLC\App\Admin_Pages\Local_Submenu\Controller->output()
    #10 /home/xxxxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #11 /home/xxxxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #12 /home/xxxxx/public_html/wp-admin/admin.php(259): do_action()
    #13 {main} thrown in /home/xxxxx/public_html/wp-content/plugins/broken-link-checker/legacy/includes/any-post.php on line 579

    Hope this can be fixed ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @ravanh,

    Sorry to know that you are experiencing an issue.

    I attempted to replicate this issue using various links on my end but was unsuccessful. Could you please share some of the broken links where you noticed this issue, so we can try to replicate it on our end?

    Additionally, could you confirm if Cloudflare Zero Trust is enabled for this website?

    To rule out any potential conflicts with other plugins or themes, could you also perform a complete conflict test?

    I hope the following article comes in handy: https://wpmudev.com/docs/getting-started/getting-support/#conflict-test

    If the issue is noticed on your live website, please perform the test on a staging website without disturbing the live traffic.

    We look forward to hearing back from you and help you resolve the issue as soon as possible.

    Kind Regards,
    Nebu John

    Thread Starter Rolf Allard van Hagen

    (@ravanh)

    Hi Nebu, thanks for following up ??

    I’ve checked for conflicts beforehand using the Health Check & Troubleshooting plugin.

    There is no such thing as Cloudflare Zero Trust on this website but we do have the Jetpack WAF in standalone mode, so I deactivated the auto_prepend_file while testing.

    I activated Troubleshooting mode, then re-activated only Broken Link Checker and verified the affected broken link list again. The same error occurs.

    This should rule out any conflicts with theme or other plugins, as far as I can tell…

    To investigate further, I needed to find out which link was causing this. This was hard because the error itself prevents the Source column table to show more information and the WP internal search, searching for the link URL did not reveal any results. By a direct MySQL query, I did finally find the URL in the Footer wp_template_part post type…

    Thread Starter Rolf Allard van Hagen

    (@ravanh)

    I should maybe note: the site uses the default Twenty Twenty-Four theme with modified template parts.

    Plugin Support Zafer – WPMU DEV Support

    (@wpmudevsupport15)

    Hi @ravanh,

    I hope you are doing well today!

    Thanks for the update. Please install and switch to one of the not modified WordPress default themes such as Twenty Twenty Three or others then try again.

    If the issue is the same then I suggest performing plugin conflict test in standard way without using Health & Troubleshooting plugin as it might not always give the correct results.

    Please make sure you have recent backups and perform this operation on your dev/staging site if possible.

    To learn more about a conflict test, please see this guide below:
    https://wpmudev.com/docs/getting-started/getting-support/#conflict-test

    Check out this handy flowchart of the troubleshooting process detailed above.
    https://wpmudev.com/wp-content/uploads/2015/09/Support-Process-Support-Process.gif

    Please let us know the results.

    Kind regards,
    Zafer

    Thread Starter Rolf Allard van Hagen

    (@ravanh)

    Resetting the Footer wp_template_part to the theme default did indeed fix the issue. Have you tested a broken link in a block theme template like footer? Apparently, a broken link there can cause the above error…

    Plugin Support Saurabh – WPMU DEV Support

    (@wpmudev-support7)

    Hello @ravanh

    Glad to know that you were able to narrow down the issue and resetting to the theme default did fix the issue for you.

    We test the plugin to the best extent possible, I also see that there are no previous reports of the issue. I have reported it to the plugin developers as a bug since I was able to replicate it on my lab site with a Fresh WP install and the issue appeared by just adding a custom link on the footer template.

    Although at the moment I will not be able to share an exact ETA as to when it will be fixed, subscribing to our roadmap https://wpmudev.com/roadmap/ is a good way to be posted about the upcoming versions once they’re released. It is going to be described in changelog found on https://www.ads-software.com/plugins/broken-link-checker/#developers

    Since the bug was acknowledged, reported and tasked to be fixed, I am marking this as resolved, but feel free to let us know if you have any additional questions.

    Kind Regards,
    Saurabh

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