Skip Navigation

[Resolved] Custom Taxonomy – Missing terms & rearrangement of Parent/Child items in Menu

This support ticket is created 4 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+01:00)

Tagged: 

This topic contains 8 replies, has 2 voices.

Last updated by kellyJ 4 years, 11 months ago.

Assisted by: Nigel.

Author
Posts
#1684895

Please see this thread. https://toolset.com/forums/topic/taxonomies-4/page/3/#post-1684851

New Hosting has also advised ; Other hosting says the same thing.

Here's the verified checklist:
WordPress 4.7–5.4.2 (it’s always a good idea to run the latest and greatest version of WordPress) - this is up to you to manage.
PHP 5.6 and above. Current version is 7.3. PHP v7.4 is also available.
MySQL 5.6 and above. Our servers use MariaDB which is perfectly compatible.
128MB RAM (see WP memory settings). Keep in mind that the required memory for your site depends on your content, theme and all plugins. This is also available.
The eval() PHP function must be enabled. The function is available.
Multibyte String extension (mbstring) must be enabled. This is also available.

Also, I have taken a video of the issue and can forward if you need it.

Please do not say this is a hosting issue until you can tell me what their issue is. This has been an ongoing problem for more than a week with no solution. This is a plugin to create custom taxonomies among other things. It is supposed to make my life easier because I am not a coder. I do not see that happening as of yet and this is a fundamental function. Surely, this is not the first time this has happened. I have done it without any plugins other than Toolset, it does not matter, the problem persists.

#1685069

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Screenshot 2020-07-02 at 11.57.47.png

Please demonstrate to me that it works just with WordPress categories and without Toolset installed on the site.

If that works, then we can investigate why it doesn't work with custom taxonomies created with Toolset.

I'm sure you will appreciate, if it does not work when Toolset is not installed on the site then we cannot be expected to fix it.

If you create a test using more than 100 categories and it works, then I'll be happy to investigate why it doesn't work with Toolset custom taxonomies, and I can bring in a developer to help pin down the issue if required.

To re-iterate what I wrote in the last thread, you can easily generate 100s of test categories with the FakerPress plugin.

- For your test you should start with a clean WP install with no plugins installed.
- Add the FakerPress plugin
- Go to FakerPress > Terms and use the settings you can see in the screenshot to generate 300 dummy categories
- Go to Posts > Add New to add a new post
- Open the Categories dropdown in the sidebar and see how many categories are included

(It would be a good idea before performing the last step to open the Network requests tab of your browser dev tools, which will let you see the requests made, as in the screenshot I shared in the other posts, which shows a single request for the categories when there should be 3, given that there are 300 categories to be retrieved 100 at a time.)

If you need help setting up the test or verifying whether it works or not, let me know and I'll make sure I've got up-to-date site credentials from you and check.

It's important that you perform this test with no plugins installed (except FakerPress, which you can disable once the categories have been generated).

If the test fails, then the only people who can help you are your hosting company, and opening new threads here is not a productive use of your time or ours.

If the test succeeds, and Toolset is required to reproduce the issue, then we'll do whatever is needed to identify the problem.

#1685695
July 2.JPG

Hi Nigel,

Yes, the problem does recreate itself without any plugin at all. I have further researched and I am wondering if this is not some issue with Chrome or Firefox. I am including a screenshot of what my PHP limits currently are to see if you think anything is wrong there. I did sign up with another Host last night and they worked with me to make sure that my set-up met all of the guidelines Toolset in the setup link provided in an earlier response.

With this host, everything works fine but the menu area. I get it, you all all must be as frustrated as I am. I did start to rebuild in a subdomain with the original host as you suggested and did not populate with the plugin as I wanted to match what I was doing. Glutton for punishment. Anyway, not even 100 items before the appearance menu items started to become mixed up again. I don't know what to do. So will keep researching the problem. If anyone there has an idea, please advise. I am not able to create the organization for a website and that leaves me literally nowhere. I have posted to wp and others, hopefully someone will have an answer somewhere.

#1685739

Nigel,

Please see this thread;

hidden link

Do you have any thoughts there. I realize it's a Woocommerce thing but???

#1685775

All I can say right now is shame on WordPress.

Using the thread above; I did this

Step 1) find wp-admin\includes\nav-menu.php

Step 2 - line 337) find text '// Paginate browsing for large numbers of objects.'

next line, $per_page = 50
change to $per_page = 5000 or more

Step 3) line 658 - find // Paginate browsing for large numbers of posts

make the same change.

It fixed the issue all issues in less than a minute. Gutenberg fine, menu fine. I cannot imagine this won't happen again if WordPress doesn't fix this. Not sure how this will effect me in the future but for now it works.

#1685883

Sorry... it didn't fix the Gutenberg aspect. My mistake.

#1688987

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

I read through the WooCommerce and WordPress core tickets you linked to, and they are explicitly about the menu issue, which pre-dates Gutenberg.

The edits you describe making above will be lost whenever WordPress is updated, and it doesn't look like there is any appetite within WordPress to fix the problem. In the core WordPress ticket a contributor shares a plugin solution: https://core.trac.wordpress.org/attachment/ticket/18282/preserve-page-and-taxonomy-hierarchy.php. You can save that code as a plugin and then the changes won't be overwritten by WordPress updates.

When WordPress shifts to using the Gutenberg editor for creating menus it could be that the workaround no longer works, if they shift to REST API calls for the paginated term updates in the same way that they do in the post editor, which is the problem you initially reported.

The workarounds for the menu problem are not going to help that issue.

Does the problem with >100 categories happen with your new server as well?

It's not a problem to report to WP Core, unlike the menu issue, because it only happens on certain servers (your original host, possibly your second host). So it can only be fixed by your host.

To help, I've created an online sandbox site where you can demonstrate to your host that the problem is on their server, with just a basic WordPress installation, and not on other servers, hence they should investigate why.

You can log in to the admin pages using this link: hidden link

If you go to add a new post (or edit an existing post) you will see that all of the 200+ categories are available in the dropdown.

The browser console shows, when opening that dropdown, that the browser makes multiple requests to retrieve the categories in batches of up to 100 at a time (screenshot).

If the problem persists with the new host then you can share these details with them and ask them for a solution.

Please let me know when you've finished with the sandbox site and I can delete it.

#1693377

Hi Nigel, go ahead and delete. I am going to work with new hosting and have it squared away for now. Thanks for your patience!

#1693379

My issue is resolved now. Thank you!