One link causes critical error
-
Just a note that I was getting an error for a link to a registration page which is otherwise blocked. In the admin for the local side, under the ‘redirects’ section, I was getting “A critical error has occurred.”
Here is my stack trace (some content edited/removed for brevity, though the cut in #6 does exist as-is in my logs — that wasn’t an accidental cut):
2024/03/25 18:49:04 [error] 1007#1007: *41092 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught ArgumentCountError: 3 arguments are required, 2 given in /var/wordpress/wp-content/plugins/broken-link-checker/legacy/includes/any-post.php:579 Stack trace: #0 /var/wordpress/wp-content/plugins/broken-link-checker/legacy/includes/any-post.php(579): sprintf() #1 /var/wordpress/wp-content/plugins/broken-link-checker/legacy/includes/any-post.php(543): blcAnyPostContainer->get_edit_url() #2 /var/wordpress/wp-content/plugins/broken-link-checker/legacy/includes/instances.php(463): blcAnyPostContainer->ui_get_source() #3 /var/wordpress/wp-content/plugins/broken-link-checker/legacy/includes/admin/table-printer.php(798): blcLinkInstance->ui_get_source() #4 /var/wordpress/wp-content/plugins/broken-link-checker/legacy/includes/admin/table-printer.php(490): blcTablePrinter->column_used_in() #5 /var/wordpress/wp-content/plugins/broken-link-checker/legacy/includes/admin/table-printer.php(147): blcTablePrinter->link_row() #6 /var/wordpress/w", request: "GET /wp-admin/admin.php?page=blc_local&filter_id=redirects HTTP/2.0"
I was able to work around it by commenting out:
/wp-content/plugins/broken-link-checker/legacy/includes/admin/table-printer.php line 229 like so:
226 'used-in' => array( 227 'heading' => __( 'Source', 'broken-link-checker' ), 228 'class' => 'column-title', 229 //'content' => array( $this, 'column_used_in' ), 230 ),
That got me to a point where I could take action, otherwise, the entire page was not able to be used. Once fixed, I re-activated that line and it’s working normally. Before that, I tried nuking the links via settings and that worked until it got to the same link, where it blew up again.
This is fixed and I haven’t dug into more on the cause, but thought I’d share. As far as I can tell, it was just this one link that it was getting stuck on.
- The topic ‘One link causes critical error’ is closed to new replies.