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

fietserwin’s picture

What 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.

smartango’s picture

fietserwin 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)")

fietserwin’s picture

But I see in description of field:
"File may be in the "files/" folder, or relative to the Drupal siteroot."

Ehhm, 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?

smartango’s picture

7.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)

fietserwin’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
Status: Active » Fixed

The 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).

Status: Fixed » Closed (fixed)

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