- Issue created by @apaderno
- 🇮🇹Italy apaderno Brescia, 🇮🇹
The code causing that error is the following one.
function i18n_taxonomy_term_description($term, $langcode = NULL) { $key = i18n_object_info('taxonomy_term', 'key'); return i18n_taxonomy_vocabulary_mode($term->vid, I18N_MODE_LOCALIZE) ? i18n_string(array('taxonomy', 'term', $term->{$key}, 'description'), $term->description, array('langcode' => $langcode, 'sanitize' => FALSE)) : $term->description; }
I checked the involved functions, but none of them calls
entity_metadata_wrapper()
. It could be one of the involved hooks calls it.Assuming that is an issue just with tests, it should be possible to fix it by declaring the test dependencies with the
_D7_DRUPAL_TEST_DEPENDENCIES
variable (a GitLab CI variable). - Merge request !8Issue #3426814: ests fail because an undefined function (entity_metadata_wrapper()) → (Merged) created by apaderno
- Status changed to Needs review
4 months ago 4:58pm 9 March 2024 - 🇮🇹Italy apaderno Brescia, 🇮🇹
At least, now PHPUnit tests do not fail anymore.
I cannot say that is just an issue with tests or the same errors would be thrown by a site using this project but not the Entity module. In the first case, this MR is sufficient to fix test failures.
-
joseph.olstad →
committed 4b25e070 on 7.x-1.x authored by
apaderno →
Issue #3426814: ests fail because an undefined function (...
-
joseph.olstad →
committed 4b25e070 on 7.x-1.x authored by
apaderno →
- Status changed to Fixed
4 months ago 9:31pm 9 March 2024 - Status changed to Needs work
4 months ago 6:28pm 11 March 2024 - 🇮🇹Italy apaderno Brescia, 🇮🇹
The problem is not with tests, but with the module code that apparently calls
entity_metadata_wrapper()
, but the Entity module is not a dependency of this project. See https://git.drupalcode.org/project/i18n/-/merge_requests/7#note_279871. - 🇮🇹Italy apaderno Brescia, 🇮🇹
The call to
entity_metadata_wrapper()
exists only on that MR. It means that:- The call to
entity_metadata_wrapper()
in that MR must be removed - The change to the .gitlab-ci.yml file done here must be reverted
- The call to
- Status changed to Needs review
4 months ago 7:21pm 11 March 2024 -
joseph.olstad →
committed cca237c9 on 7.x-1.x
Issue #3426814 by apaderno: entity_metadata_wrapper() is called, but the...
-
joseph.olstad →
committed cca237c9 on 7.x-1.x
- Status changed to Fixed
3 months ago 7:14pm 24 March 2024 Automatically closed - issue fixed for 2 weeks with no activity.