Closed (fixed)
Project:
Thumb
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Aug 2009 at 05:23 UTC
Updated:
5 Sep 2009 at 06:50 UTC
When thumb.pages.inc > _thumb tries to create a new file, it does not take the folder drupal is installed to into account. It seems like the code assumes that Drupal is installed to a domain.
I added the following code to make this work:
$folder = url(NULL, array('absolute' => FALSE));
$dir = $root . $folder . ''. file_directory_path() .'/thumb/'. $presetname .'/'. $pathinfo['dirname'];
Comments
Comment #1
davyvdb commentedDo you have the same issue with the imagecache module?
Comment #2
davyvdb commentedI'm using the following code to get the directory :
Can you debug this and see what goes wrong in your situation?
Comment #3
davyvdb commentedfixed this with base_path
$dir = $root . base_path() . file_directory_path() .'/thumb/'. $presetname .'/'. $pathinfo['dirname'];