Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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