I just noticed that the module doesn't behave correctly in my Italian/English website. Italian is my default language: if I'm not using imagacache the icon is fine in Italian, when I switch to English it disappears. In fact its path in the style is wrong, a slash between "en" and "sites" is missing: url("http://www.mysite.com/ensites/default/files/block_icons/icon_0.png")
When I'm using imagecache the icon is still fine in Italian and broken in English, but for different reasons.
The path in the style is correct: url("http://www.mysite.com/en/sites/default/files/imagecache/block_icon/block...")
But width and height are missing (the image is displayed if I tweak the css) and a warning says: "is_file() [function.is-file]: open_basedir restriction in effect. File(/sites/default/files/imagecache/block_icon/block_icons/icon_0.png) is not within the allowed path(s): (/usr/local/psa/home/vhosts/mysite.com/httpdocs:/tmp) in /usr/local/psa/home/vhosts/mysite.com/httpdocs/includes/image.inc on line 118."
Comments
Comment #1
tito.brasolin commentedI tried and used "file_create_url" instead of "url" and "file_create_path" instead of "_block_icons_get_relative_path": it looks like everything is working fine now.
Comment #2
Anonymous (not verified) commented