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.
I get this error when trying to view a node that has a field collection in it: Fatal error: Call to undefined function entity_i18n_string() in PATH/field_collection.module on line 869
(I replaced the actual path with PATH)
The error goes away when I disable the add/edit/delete links, i.e. choose format 'Fields only' under manage display of the node. I assume it will go away as well if you install i18n.
Comment | File | Size | Author |
---|---|---|---|
#10 | 0001-1513406.patch | 1.14 KB | chaskype |
Comments
Comment #1
ro-no-lo CreditAttribution: ro-no-lo commentedCan confirm it. There seem to be a new requirement for field_collection.
Comment #2
ro-no-lo CreditAttribution: ro-no-lo commentedQuickfix, compared versions: (find all 3 places for yourself)
Comment #3
scottrouse CreditAttribution: scottrouse commentedThis is a sneaky one. The recent Field Collection release requires the latest dev version of the Entity API module.
It's a bit hidden in the release notes for Field Collection 7.x-1.0-beta4 and refers to #1446674: make the interface translatable.
I can confirm that updating to the April 2 dev release of Entity API resolves this error message.
Comment #4
Donatoo CreditAttribution: Donatoo commentedI confirm the dev release of Entity API solves the problem.
Comment #5
BTMash CreditAttribution: BTMash commentedI don't know what other changes made it into entityapi for dev (and if it might cause some funky issues). So I made a patch to just get the i18n string in (below is my svn diff).
Comment #6
rooby CreditAttribution: rooby commentedThanks BTMash, I also have lots of entity dependent functionality and patches that mean updating entity required a reasonable amount of time for review of changes and testing, so that helps for the interim.
Comment #7
rgon CreditAttribution: rgon commentedThanks, BTMash. I'm using the patch also.
Comment #8
etibmw CreditAttribution: etibmw commentedGood one BTMash
added the patch (#5) and it is working now
problem solved!
thanks
Comment #9
zorroposada CreditAttribution: zorroposada commentedI was receiving error message from field_collection.
#5 Worked for me too.
Thanks
Comment #10
chaskype CreditAttribution: chaskype commentedSame patch in git
use this command
git apply -v 0001-1513406.patch
Comment #11
DRUPALON CreditAttribution: DRUPALON commentedthanks #5 works fine
Comment #12
bcweaver CreditAttribution: bcweaver commentedIt looks to me like the latest release of Entity API -- 7.x-1.0-rc2 -- fixes this.
Comment #13
30equals CreditAttribution: 30equals commentedGot this error as well, and can confirm that updating to the latest dev version of Entity API fixes this.
Comment #14
jwilson3As this bug renders the recommended version of field_collection module completely *unusable*, when could we expect a new beta release?UPDATE: Oops, I mis-read the above, that the fix is found in the *entity* module, not this module.
Comment #15
rachelf CreditAttribution: rachelf commentedEntity API release 7.x-1.0-rc3 also fixes this.
Comment #16
drupixConfirmed: Entity API release 7.x-1.0-rc3 fixes this.
Comment #17
Sridar CreditAttribution: Sridar commentedIts Working.. Long time issue, Fixed. Thanks for the updated patch @chaskype.