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.
| Comment | File | Size | Author |
|---|---|---|---|
| geofield_require_once_path_fix.patch | 564 bytes | cameron prince |
Comments
Comment #1
Brandonian commentedThanks for the patch, @cameronbprince! Committed to 7.x-2.x
http://drupalcode.org/project/geofield.git/commit/906fad5