Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After module install i get following error meassage:
The entities of type Taxonomy term do not define a valid base path: it will not be possible to translate them.
And not see translation tab on term field and extra taxonomy fields.
Comment | File | Size | Author |
---|---|---|---|
#4 | et_router_args-1587108-4.patch | 1.57 KB | plach |
#3 | Screen Shot 2012-06-01 at 2.04.47 PM.png | 49.89 KB | cossimo |
Comments
Comment #1
plachI tried a fresh install of the latest ET dev without seeing this error. Could you provide more details to help reproduce the problem?
Comment #2
nikosnikos CreditAttribution: nikosnikos commentedI have the same problem after updating from 2012-02-13 dev version to 2012-05-29 dev version.
I tried on a fresh new install of the last drupal 7 with entity translation dev. I enabled taxonomy terms and comments for entity translation and I had the problem for comments :
The entities of type Comment do not define a valid base path: it will not be possible to translate them.
Comment #3
cossimo CreditAttribution: cossimo commentedI get the same error when I install the 2012-05-29 dev version. What sort of details would be helpful for resolving this?
Comment #4
plachI have been able to reproduce this, not on a clean installation though. In my case it turns out that Views is replacing the taxonomy router path with a views-specific one, thus making the test for the base path existence fail. The attached patch seems to fix the issue. Please confirm.
Comment #5
nikosnikos CreditAttribution: nikosnikos commentedYes, it fixes the bug for entities comment error on my fresh new drupal site and for entities taxonomy for my other site using views for the terms page.
Thanks !
Comment #6
plachOk, let's open this to wider testing.
Committed and pushed.
Comment #7
plachComment #9
quiptime CreditAttribution: quiptime commentedThe bug still exists. Drupal 7.14, Entity translation 7.x-1.0-alpha2
See also Entities of type Commerce Coupon do not define a valid base path
I think, the basis of the problem is to configure the Entity translation module.
The configuration will list some of the available entity types. For example:
What is now, when a EntityType is not translatable by Entity translation?
A first consideration is to expand the description of Translatable entity types.
This is obviously not enough for an good information.
Comment #10
plachDid you test the latest dev? Steps to reproduce it?
Comment #11
quiptime CreditAttribution: quiptime commentedI have expanded #9.
Comment #12
quiptime CreditAttribution: quiptime commentedOK, I'll test the dev release.
Comment #13
plachTaxonomy terms are translatable and a valid base path is provided by ET. Hence there is something that is altering either the ET-provided info (see
entity_translation_translation_info()
) or (more likely) the menu items data structure, through an implementation ofhook_menu_alter()
.Comment #14
quiptime CreditAttribution: quiptime commentedCurrently, Taxonomy translation is not the problem.
Other modules produce problems, such as Rules module.
Comment #15
plachWell, this is not a bug then. Simply Rules are problably not integrating correctly with ET. OTOH, I agree that the UI can be improved to be less misleading. To be fixed in a different issue.
Comment #16
quiptime CreditAttribution: quiptime commentedHow other modules implement the correct integration of ET?
Comment #17
plachIt's all documented in the latest dev, see entity_translation.api.php.
See also #1114410: Replace hook_translation_info() with hook_entity_info(). The entity info is not changing but the hook in itself will go away.
Comment #18
quiptime CreditAttribution: quiptime commentedYou are sure that other modules do not have properly integrated ET?
Screenshot
Comment #19
plachNo, I'm not, but this issue is about taxonomy terms and I'm sure they are supposed to work.
Comment #20
quiptime CreditAttribution: quiptime commentedYou're right. There is a problem of other modules.
In the meantime, I found a module with proper ET implementation: Commerce Product
Following code from a DC kickstart installation:
modules/product/commerce_product.module:
modules/product/includes/commerce_product.translation_handler.inc
See screenshot from #18.
Commerce Product is in the list of translatable entity types, but not in the list of base path warnings.
I think, that's it.