soflyy / breakdance-bugs

Bug reports from Breakdance users.
38 stars 6 forks source link

404 breaks RM 404 monitor #1050

Open bouveng opened 4 months ago

bouveng commented 4 months ago

Breakdance custom 404 page, breaks Rank Math's 404 monitor.

  1. Install Breakdance and Rank Math
  2. Activate RM 404 monitor
  3. Generate some 404's
  4. RM 404 monitor is empty
  5. Disable Breakdance
  6. Generate some 404's
  7. RM 404 monitor is populated

WP 6.4.3 BD 1.7.0 RM 1.0.213

RM is using following to capture 404s:

$this->action( $this->get_hook(), 'capture_404' );

When modifying it to a template_redirect it starts logging.

$this->action('template_redirect', 'capture_404' );

BD does not offer a hook to disable custom 404, as far I know.

RM does not offer a filter to modify how 404 is captured.

Br.

Johan