The modules use a mixture of getcwd() and $_SERVER['DOCUMENT_ROOT'] to create full paths to files. I'm not sure about getcwd(), but $_SERVER['DOCUMENT_ROOT'] is not reliable. Eg, on my apache mod_vhost setup it points at /htaccess, not at the actual Drupal installation directory.

This patch defines a function that determines the document root based on the full path to the module file. Note that it applies on top of #514324: patch for SQL Fixes for postgres, missing function name, fixed forms and a stray var_dump.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cafuego’s picture

Sorry, I typo3d. Updated patch is attached.

Shiny’s picture

Status: Needs review » Reviewed & tested by the community

Tested - works as expected in both / and when drupal is in /drupal
used apache2+postgres 8.3

thl’s picture

Assigned: Unassigned » thl
Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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