Need DRUPAL_ROOT in require of og.field.inc
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #1890866. --> Reported by: [Jaza](https://www.drupal.org/user/15277) >>> <p>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:</p> <p><code>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</code></p> <p>Attached patch fixes this.</p>
issue