Make WordPress Core

Opened 2 years ago

Closed 21 months ago

Last modified 21 months ago

#45251 closed defect (bug) (invalid)

Taxonomy `lang` not working in custom post with WP version 5.0 beta 2

Reported by: shahalom Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Taxonomy Keywords:
Focuses: javascript, administration Cc:


Just tried to work with WP version 5.0 beta 2 in one of my personal project. When I tried to edit a custom post I notice that one of my custom taxonomy (Name: lang, Title: Language) not working. Neither showing old terms nor able to create new!

When I clicked on "Add new term" in the Language taxonomy box, shows me "The editor has encountered an unexpected error." with three buttons. I have added the screenshot.



When I click the "Copy Error" button and paste it on a text editor, it shows:


Change History (7)

#1 @SergeyBiryukov
2 years ago

  • Component changed from General to Taxonomy
  • Version set to 5.0

#2 @SergeyBiryukov
2 years ago

  • Focuses javascript administration added

#3 follow-up: @pento
23 months ago

  • Keywords reporter-feedback added
  • Milestone changed from Awaiting Review to Future Release

@shahalom: We haven't had any other reports of this, are you still able to reproduce it?

#4 in reply to: ↑ 3 @shahalom
23 months ago

Replying to pento:

@shahalom: We haven't had any other reports of this, are you still able to reproduce it?

Again tried with the new released WP5.0 and no luck. I am still not seeing the lang taxonomies.

Let me describe how I update my dev site -

I have deleted all the files and folder of my dev site except the wp-content folder.

Updated the wp-config.php files with related information like- DB info, table prefix

Browse my dev site and it is ok in the frontend

Login to browse admin. On logged in successfully I got a screen to update my database. I clicked the button and it shows update complete.

Now I tried to edit or create a new custom post called mcq. My topic taxonomy shows all terms hierarchical.

In the lang taxonomy block showing only Add New Language button and when I clicked on it, it allows me to create a new language that does not already exist but not displaying existing terms.



Last edited 23 months ago by shahalom (previous) (diff)

#5 @shahalom
23 months ago

I have created a development/test version of the site. My request is to register at https://dev.mcqacademy.com/ and try to create a new post under MCQ post type https://dev.mcqacademy.com/wp-admin/post-new.php?post_type=mcq.

You will notice that language taxonomy has two terms in classic editor mode while these terms are not available in block mode.

#6 @shahalom
21 months ago

  • Resolution set to invalid
  • Status changed from new to closed

The error was producing from a custom plugin of the website. The plugin set a lower limit value for rest api response i; e, $endpoints['/wp/v2/lang'][0]['args']['per_page']['maximum'] = 10;. I have removed the line and everything is working.

#7 @desrosj
21 months ago

  • Keywords reporter-feedback removed
  • Milestone Future Release deleted
  • Severity changed from major to normal
  • Version 5.0 deleted
Note: See TracTickets for help on using tickets.