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.
When installing Reverse Node Reference via an installation profile, PHP complains about
Fatal error: Call to undefined function db_version() in reverse_node_reference.install
This happens because the full Drupal API is not available in that case, as described in hook_requirements().
Comment | File | Size | Author |
---|---|---|---|
#2 | install_profile-1274072-2.patch | 1.03 KB | Anonymous (not verified) |
Comments
Comment #1
thsutton CreditAttribution: thsutton commentedI encountered this problem too. As oswajas said, hook_requirements() is called before the database details have been entered during installation.
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedThis patch removes HOOK_requirements() so that this module can be installed within an install profile. The intention is for this patch to be applied by drush make.
Comment #3
sblommers CreditAttribution: sblommers commentedMadness, fix the module instead