Closed (fixed)
Project:
Taxonomy Menu
Version:
8.x-3.x-dev
Component:
User interface
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
12 Oct 2015 at 15:07 UTC
Updated:
29 Mar 2016 at 02:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
fomenkoandrey commentedMain - Control - Structure -- Menu
edit any menu link - the same error (((
UPD:
if i comment 81 line - admin panel works, but no taxonomy menu at my site
Comment #3
fomenkoandrey commentedHow can i delete this module?
i try go to extentions/delete/ select and delet Taxonomy menu
clear cache.
but when i try edit any menu - i have error
Drupal\Component\Plugin\Exception\PluginException: Plugin (taxonomy_menu.menu_link:taxonomy_menu.menu_link.countries.17) instance class "Drupal\taxonomy_menu\Plugin\Menu\TaxonomyMenuMenuLink" does not exist. in Drupal\Component\Plugin\Factory\DefaultFactory::getPluginClass() (line 102 of core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php).Comment #4
nerdsteinCan you please provide some more details?
- What version of Drupal 8 are you using?
- Under what pre-conditions? (e.g. A menu has content, a taxonomy vocabulary has terms)
- What are the steps to reproduce?
Comment #5
nerdsteinPlease note, I have been testing this on RC4 and I do not seem to be having experiencing issues.
Comment #6
nerdsteinComment #7
usrsbn commentedI get the same error message using Drupal 8.0.0, Taxonomy Menu 8.x-3.1
Created taxonomy menu from vocabulary, deleted single term from vocabulary, disabled corresponding taxonomy menu link.
When uninstalling module and cache rebuild, after trying to edit my menus, I get the same error as above.
Comment #8
usrsbn commentedMore info:
I tried to delete my primary links menu -> error
I deleted the menu entry (taxonomy_menu.menu_link: [...]) from table menu_tree -> drush cr -> I can edit my other menus again.
Comment #9
usrsbn commentedI just reproduced this using Drupal 8.0.1.
Step 1: Created taxonomy menu from vocabulary
Step 2: Added taxonomy menu block to region
Step 3: Deleted one term of vocabulary
Step 4: Trying to edit menu via admin/structure/menu produces error
But:
Step 5: Now I can delete the menu
Step 6: After that I can delete the taxonomy menu without producing error no.2
Comment #10
nerdsteinThe following patch fixes the error but demonstrates a larger problem in which stale links exists in the associated menu when you remove a taxonomy term.
Submitting this for review. I'll create a new issue for the stale menu items. When you delete a term, the subsequent menu item should be deleted as well.
Comment #11
nerdsteinNot resolved with a cache clear either.
Comment #12
nerdsteinThis patch is comprehensive. Fixes the error and removes links from menus when taxonomy terms are deleted.
Please test, needs reviewed.
Comment #13
VBN commentedAfter the patch provided in #12, the fatal error goes away.

But when i look at the place where i created the taxonomy menu, there are now Blanco menu links.
Unable to delete...
When i want to edit, it says:
This link is provided by the Taxonomy Menu module. The title and path cannot be edited.
Comment #14
nerdsteinDid you try with a fresh instance? I was not able to reproduce with a brand new taxonomy menu entity (menu / taxonomy vocab). The issue you mentioned would occur on your existing setup.
Comment #15
VBN commentedyes, it was indeed a fresh install v8.0.2
Comment #16
nerdsteinI'll take another look and prep a patch, thanks.
Comment #17
nerdstein@VBN, I have tested this thoroughly and cannot reproduce it. I exhibited this behavior when I had deleted terms from a vocabulary to an existing Taxonomy Menu entity.
Please try this:
1. Add a new menu
2. Add a new vocabulary, add terms
3. Create a new taxonomy menu with the new vocab and menu
4. Remove terms
Following those steps above, there are no blank menu items. If you are using an existing menu that has already been broken, it will likely need to be rebuilt. The patch *does not* clean up old links.
Comment #18
killua99 commentedI'm having the same result as @VBN I'm not able to delete old taxonomy menu, They're white and cannot be deleted.
But patch #12 solve the bug with the callback and label thing.
Comment #19
VBN commented@nerdstein, maybe that is the difference.
I used terms that already existed in my taxonomy, before I added the menu.
Those were just some random terms I added to experience.
After removing this menu and menu module the Blanco's remain.
For the moment i will not reinstall Taxonomy Menu, I decided to manually create links to my menu.
Thank you for looking further into this case,
I'll reinstall the module soon.
Comment #20
Anonymous (not verified) commentedI stuck with the orginal problem and the patch do not work. When I try to uninstall the module I get error message when I am trying to edit a content type or creating a new one:
Drupal\Component\Plugin\Exception\PluginException: Plugin (taxonomy_menu.menu_link:taxonomy_menu.menu_link.moment.88) instance class "Drupal\taxonomy_menu\Plugin\Menu\TaxonomyMenuMenuLink" does not exist. in Drupal\Component\Plugin\Factory\DefaultFactory::getPluginClass() (line 102 of core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php).
If I install the module again I am back at the former error message...
Stuck here.
Comment #21
hansfn commentedI got a similar error:
The patch in #12 removed the fatal error.
Comment #22
nerdsteinI have uploaded one more patch that brings in all of the recent commits from 8.x-3.x.
Just a reminder that all taxonomy menus needs to be deleted and rebuilt for this patch to work properly.
I have again retested all of this and it works just fine with new taxonomy menus. I apologize about having to delete existing taxonomy menus, but it has been resolved now as best as I can tell.
Comment #23
nerdsteinI have merged this into 8.x-3.x because I want to get this in the next release.
I'll address any further changes within this issue and additional patches.