This is kind of the reason I'm not using path_image yet.

To fix this, we need to
a) change the way the image directory is detected
b) change the way the path is detected

As far as part a) is concerned, I've attached an (almost untested) patch.

CommentFileSizeAuthor
path_image.patch1003 bytesairblaster

Comments

Robrecht Jacques’s picture

Status: Needs work » Reviewed & tested by the community

This patch is needed for path_image to work. file_create_path() does exactly what you want by doing this $_SERVER['DOCUMENT_ROOT'] but is much more reliable, eg when installing Drupal in a subdirectory.

Tested it and it works.

Robrecht Jacques’s picture

Status: Reviewed & tested by the community » Fixed

I think both issues are fixed in 5.x-1.x-dev. Please test and if it is not the case, reopen this.

Anonymous’s picture

Status: Fixed » Closed (fixed)