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.

Files: 
CommentFileSizeAuthor
#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 ]

Comments

Status:Needs review» Needs work

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

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

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

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

Status:Needs review» Fixed

Committed, thanks.

Status:Fixed» Closed (fixed)

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

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