I'm working on a project where I must bootstrap Drupal from an external script. When I do this with geofield installed I get a "Failed opening required 'sites/all/modules/geofield/geofield.widgets.openlayers.inc'" error (notice the partial path). The call inside geofield.widgets.inc is "require_once(drupal_get_path('module', 'geofield') . '/geofield.widgets.openlayers.inc');"

I looked at how ctools does this and followed its example for the attached patch.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Brandonian’s picture

Status: Active » Fixed

Thanks for the patch, @cameronbprince! Committed to 7.x-2.x

http://drupalcode.org/project/geofield.git/commit/906fad5

Status: Fixed » Closed (fixed)

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