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.
Problem:
After clearing the cache and reloading a page like 'node/1' I had different errors about undefined functions. Here are some samples:
Call to undefined function styles_default_styles() in /.../sites/all/modules/styles/contrib/file_styles/file_styles.module on line 200
PHP Fatal error: Call to undefined function token_get_entity_mapping() in /.../sites/all/modules/token/token.tokens.inc on line 767
After some trials and errors the bug seems to be coming from the node_load() called in languagepath.
Comment | File | Size | Author |
---|---|---|---|
#1 | node_load_issue-2177373-1.patch | 649 bytes | idflood |
Comments
Comment #1
idflood CreditAttribution: idflood commentedI'm not sure about this patch. It remove the node_load call in languagepath() and replace it with a db_query.
Since I made this modifications I can't reproduce the fatal errors and the module seems to be working.