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.
Configuration:
Drupal 7.14
Bean 7.x-1.0
To produce bug:
- Go to block/add
- Receive "Call to undefined function entity_language()" fatal error in bean/includes/bean.pages.inc, line 324.
This is because the entity_language() function was added in Drupal 7.15.
It would be great if there was a check for support of the entity_language() function; if not, a note on the project page to require Drupal >=7.15 would be nice.
Thank you!
Comment | File | Size | Author |
---|---|---|---|
#8 | bean-entitylanguagefatalerror-1912444-8.patch | 989 bytes | John Bickar |
#7 | bean-entitylanguagefatalerror-1912444-7.patch | 989 bytes | John Bickar |
#3 | bean-entitylanguagefatalerror-1912444-3.patch | 985 bytes | John Bickar |
#1 | bean-entitylanguagefatalerror-1912444-1.patch | 557 bytes | John Bickar |
Comments
Comment #1
John Bickar CreditAttribution: John Bickar commentedPatchy attachy.
Comment #3
John Bickar CreditAttribution: John Bickar commentedHrm, I don't understand the error message in the failed test, but here's another patch that catches the same error in the validation function.
Comment #4
indytechcook CreditAttribution: indytechcook commentedSetting to needs review so tests can run.
Comment #6
indytechcook CreditAttribution: indytechcook commentedNeed quotes around entity_language in the function_exists calls.
Comment #7
John Bickar CreditAttribution: John Bickar commentedRight. Patching without coffee is a danger to self and others.
Comment #8
John Bickar CreditAttribution: John Bickar commentedWith single quotes if that syntax is preferred.
Comment #9
indytechcook CreditAttribution: indytechcook commentedThanks!
http://drupal.org/commitlog/commit/22232/6545f3be72f1f7cb3c37d3a40300b4b...