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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

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
FileSize
295 bytes

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