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 running drush up I get fatal error:
PHP Fatal error: Call to undefined function languagefield_property_info_callback() in /*****/sites/all/modules/entity/modules/field.info.inc on line 30
Comments
Comment #2
m42 CreditAttribution: m42 commented+1, even though it seems to be just "cosmetic" (the module works well after the drush up, no fatal error or whatever).
Comment #3
trotsak CreditAttribution: trotsak as a volunteer commented@hbemtec, in my situation it is not "cosmetic" - site does not work until i replaced module by old version one's.
Comment #4
m42 CreditAttribution: m42 commentedHave you tried drush rr ?
Comment #5
trotsak CreditAttribution: trotsak as a volunteer commentedno, i dont want make experiments at live site.
Comment #6
m42 CreditAttribution: m42 commentedDo it on your local copy.
Comment #7
johnvDid you run the page update.php. that's best practise.
Comment #8
trotsak CreditAttribution: trotsak as a volunteer commentedI run drush up, drush cc all but the error is remain.
Comment #9
Alan D. CreditAttribution: Alan D. commenteddarn caching and changing APIs... likely related #1312374: Fatal error: Call to undefined function link_field_property_info_callback() in field.info.inc on line 30
Comment #10
zhinio CreditAttribution: zhinio commented+1, It completely broke the site. I used drush dl languagefield-7.x-1.4 -y to revert to old version. drush updb -d also creates the same error.
Comment #11
Alan D. CreditAttribution: Alan D. commentedThe cause is this line from http://cgit.drupalcode.org/languagefield/commit/?id=092e5ee
For the countries module I created a wrapper function to use the stale cached function to call the new function.
In this case, maybe returning an empty array will bypass the fatal error as types switch over from TEXT to TOKEN.
Comment #12
Alan D. CreditAttribution: Alan D. commentedReason for the need. (other than that the maintainers of Entity API don't care to fix)
Early in the boot, the system goes what whats the props of x?
Entity API gets the cached info, and tries to run languagefield_property_info_callback()
IF it get past this point, the languagefield_field_info() would be called and the reference to languagefield_property_info_callback would be removed and all is happy.
Comment #14
johnvPlease test the new dev - version.
Thanks Alan.
Comment #15
zhinio CreditAttribution: zhinio commentedThank you johnv. #13 solved the problem.
Comment #16
roball CreditAttribution: roball as a volunteer commentedI think releasing the current Language Field dev as 7.x-1.6 would be reasonable now.
Sites still running the 7.x-1.5 version could solve the WSOD by running this SQL query:
TRUNCATE TABLE `cache_field`
Comment #17
johnvComment #19
BramDriesenAfter half a year still no updated version of the module with this fix...
Comment #20
attiks CreditAttribution: attiks at Attiks commented#19 Responding in a closed issues is probably not going to solve it either, best to create a new issue to ask for a new release. Or use the dev version.