Skip to content

Rank Math archive disable causes Breakdance errors #593

@cmidgley

Description

@cmidgley

Problem summary:

Rank Math has a feature to disable archives (date and author). When disabled, these generate a redirect. When editing an archive, if the preview dropdown selects a disabled archive Breakdance will display an AJAX failure (since it got a redirected text/html instead of the expected application/json) and not allow any editing. Date archive is often the first archive in the preview list, so if it is disabled the error is generated anytime the archive template is opened.

Steps to reproduce

  1. Install Rank Math
  2. Disable date archives:
    disable-date-archive
  3. Create / edit a post archive template
  4. Assuming the preview selects a disabled archive, the following should appear:
    rank-error

Work around

Either of the following works:

  1. Don't disable archives with Rank Math (primarily the date archive, as it is the default one)
  2. With archives disabled and an error appearing, select a different non-disabled archive. Editing will work again.

(May be what #62 was unable to reproduce?)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions