Skip to content

[4.1.0-rc.2] Categories are not displayed any more #10993

Closed

Description

@manooweb

Describe the bug
Categories are not displayed any more because of an error return by the REST API which does not accept any more per_page parameter value with "-1"

To Reproduce

  1. Go to 'Post > All posts'
  2. Click on 'Edit' link on one of the posts
  3. Open chrome developer for seeing what's going wrong
  4. See categories are not displayed
  5. See in the chrome developer tool bar why. See screenshot below with the error message

Expected behavior
Display categories

Screenshots
With Gutenberg 4.1.0-rc.1 version => OK

image

With Gutenberg 4.1.0-rc.2 version => KO with the error message "per_page: "per_page must be between 1 (inclusive) and 100 (inclusive)"

image

Desktop

  • OS: windows 10
  • Browser chrome
  • Version 70

Additional context

  • WordPress 4.9.8
  • Gutenberg 4.1.0-rc.2

Activity

  1. added this to the 4.1 - UI freeze milestone on Oct 24, 2018
  2. danielbachhuber commented on Oct 24, 2018

    @danielbachhuber
    Member

    Hi @manooweb,

    Thanks for the report.

    Categories are not displayed any more because of an error return by the REST API which does not accept any more per_page parameter value with "-1"

    The usage of per_page=-1 was removed in #10762. I tested against a local copy of rc2 with WP 4.9.8 and was unable to reproduce the report.

    Is this a plain WordPress install or do you have other plugins running? Can you try force flushing your browser cache?

  3. added
    [Status] Needs More Info
    on Oct 24, 2018
  4. removed this from the 4.1 - UI freeze milestone on Oct 24, 2018
  5. manooweb commented on Oct 24, 2018

    @manooweb
    ContributorAuthor

    Hi @danielbachhuber,
    It is a plain WordPress 4.9.8 install on my own development machine where I'm doing and testing my developments.
    With chrome developer tool bar the "Disable cache" option in the "Network tab" is always checked.
    I have some plugins activated as ours which we are developing.
    I synchronize Gutenberg plugin directly from Github and build it by myself locally.

    So,

    • I desactivated all the plugins except Gutenberg
    • I emptied the cache manually
    • I closed and reopened chrome
    • I rebuilt correctly Gutenberg in development mode and then in production mode

    That's ok now after rebuilding Gutenberg. Very strange behaviour.
    I'm closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    REST API Interaction[Status] Needs More Info

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions