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.
The 'require' statement for og.field.inc (at the top of og.module) needs a DRUPAL_ROOT in front of it. Otherwise, trying to run this 'require' when the site is installed in a vhost subfolder fails, with this message:
Fatal error: require(): Failed opening required 'sites/all/modules/contrib/og/includes/og.field.inc' (include_path='.:/usr/share/php:/usr/share/pear') in /path/to/site/sites/all/modules/contrib/og/og.module on line 9
Attached patch fixes this.
Comment | File | Size | Author |
---|---|---|---|
#3 | og_field_inc_drupalroot.patch | 295 bytes | Jaza |
og_field_inc_drupalroot.patch | 291 bytes | Jaza | |
Comments
Comment #2
amitaibuThis is copied from File module, and test is failing here, so not sure it's the correct solution :)
Comment #3
Jaza CreditAttribution: Jaza commentedUpdated patch with 'a/' and 'b/' diff markers (new style). See if this one passes tests.
Comment #4
amitaibuCommitted, thanks.
Comment #6
Jaza CreditAttribution: Jaza commentedNew meta-issue for wider discussion of this issue: #1928072: Bootstrapping Drupal from outside the Drupal root directory