The 'require' statement for (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/' (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.

#3 og_field_inc_drupalroot.patch295 bytesJaza
PASSED: [[SimpleTest]]: [MySQL] 745 pass(es). View
og_field_inc_drupalroot.patch291 bytesJaza
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch og_field_inc_drupalroot.patch. Unable to apply patch. See the log in the details link for more information. View
Members fund testing for the Drupal project. Drupal Association Learn more


Status: Needs review » Needs work

The last submitted patch, og_field_inc_drupalroot.patch, failed testing.

amitaibu’s picture

This is copied from File module, and test is failing here, so not sure it's the correct solution :)

Jaza’s picture

Status: Needs work » Needs review
295 bytes
PASSED: [[SimpleTest]]: [MySQL] 745 pass(es). View

Updated patch with 'a/' and 'b/' diff markers (new style). See if this one passes tests.

amitaibu’s picture

Status: Needs review » Fixed

Committed, thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Jaza’s picture

New meta-issue for wider discussion of this issue: #1928072: Bootstrapping Drupal from outside the Drupal root directory