Hello, I am testing the latest dev version with an error doing the following:
1. Create a Taxonomy Vocab.
2. Add a Term to the Vocab in above.
3. Try to delete the above Term and get the following error message:
Notice: Undefined index: vid in domain_taxonomy_form_alter() (line 101 of C:\xampp\htdocs\sites\all\modules\1230710-7.x-1.x-c54f531\domain_taxonomy.module).
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 178 of C:\xampp\htdocs\includes\entity.inc).
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->cacheGet() (line 354 of C:\xampp\htdocs\includes\entity.inc).
Notice: Trying to get property of non-object in domain_taxonomy_form_alter() (line 104 of C:\xampp\htdocs\sites\all\modules\1230710-7.x-1.x-c54f531\domain_taxonomy.module).
Thanks!
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 1286814-6.patch | 635 bytes | Vyoma |
Comments
Comment #1
Tim Jones Toronto commentedIf you disable Domain Taxonomy, you can delete it fine.
Comment #2
Tim Jones Toronto commentedComment #3
Vyoma commentedLet me see if I can replicate this on my development box.
Update: I have been able to replicate this on my development box.
Comment #4
Vyoma commentedComment #5
Vyoma commentedGot a quick fix for this.
Seems like it is trying to 'form_alter' for taxonomy editing forms, but when the term is being deleted, there is no vid (vocabulary id).
The fix is to skip the form_altering if 'vid' is not set.
Comment #6
Vyoma commentedHere is the patch attached. Pushed this to the sandbox project.
Please apply patch or checkout from sandbox, and let me know if this works as expected.
Comment #7
Tim Jones Toronto commentedPatch works fine - thank you!
I am pushing this module to test multiple sites and is working very well so far. It even works using Taxonomy Menu – and drop down menu support e.g. Nice Menu on per-site basis. Very cool!
Thanks, Tim.
Comment #8
Vyoma commentedGood - so the patch works.
I am trying to get co-maintainer access #1230706: Offering to co-maintain Domain Taxonomy so that I can push this to the "official" project as a branch.
Comment #9
Tim Jones Toronto commentedGreat. I would like to start promoting the D7 version over on Domain Access when you have this sorted out.