Closed (fixed)
Project:
ImageCache Actions
Version:
7.x-1.x-dev
Component:
Canvas Actions Module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Jul 2012 at 13:48 UTC
Updated:
8 Dec 2012 at 18:30 UTC
warning when hosting has open_basedir setted:
Warning: file_exists(): open_basedir restriction in effect. File(/overlay/ingrandisci.png) is not within the allowed path(s): (C:\PATHTOHOST\;C:\Windows\Temp\) in canvasactions_file2canvas_image() (linea 639 di C:\PATHTOHOST\test\sites\all\modules\imagecache_actions\canvasactions\canvasactions.inc
This warning is on create new style image (caching a new image) with that style.
something it could be related to is http://drupal.org/node/5961
Comments
Comment #1
fietserwinWhat is the error? To me, it seems that everything is functioning as expected. If you want to use an overlay file, you must place it in a directory that may be accessed by the web server.
Tip: did you use one of the file schemes like private://, public://, module://{module}/{component}, or temporary://? If not the file name will be taken as is (and thus /overlay/ingrandisci.png will be taken as an absolute path.
Comment #2
smartango commentedfietserwin you are right.
I just reported without testing personally (leaded by advice to look at open_basedir problem).
It happens that if i indicate a relative path it works.
But I see in description of field:
"File may be in the "files/" folder, or relative to the Drupal siteroot."
that not correct I think. It should be stated: "Use a scheme like ...
.. because it could be done, right?
(talking about canvas action "Overlay (watermark)")
Comment #3
fietserwinEhhm, I don't see this description. With me, the description of the field states: File is either a file with one of the valid schemes (e.g. private://, public://, module://{module}/{component}, temporary://), or an absolute or relative path (relative to the current directory, probably the Drupal site root).. Where do yo see that (old) description?
Comment #4
smartango commented7.x-1.x-dev .. which version is hard to say after 6 p.m.
It has different description strings in windows server?
(I'll know answer tomorrow)
Comment #5
fietserwinThe description has been changed, so should not appear anymore in the dev version and official versions as of 7.x-1.1 (to be released yet).