I am having problems uploading images. I am using Drupal 5.7, imagecache 1.5, imagefield 2.1, CCK 1.7, public files download method, write permissions are set. I have set up a field using CCK to add image to a content type.
The problem appears to be an extra slash being added to the URL:
http://www.example.com/files//tmp/image.png
However, in:
http://www.example.com/admin/settings/file-system
I have set the Temporary directory as tmp with no slash. I don’t see why there is an extra slash being added.
Another thing I noticed is that there are two Admin menu items for Imagecache.
http://www.example.com/admin/build/imagecache
which results in an error:
Fatal error: Call to undefined function imagecache_presets() in /home/oneworl1/public_html/sites/all/modules/imagecache/imagecache_ui.module on line 113
http:/www.example.com/admin/settings/imagecache
where I can set the presets.
Any ideas?
Comments
When I had this problem it
When I had this problem it was because I had inserted an extra / when specifying the path for the imagefield field in the content type.
===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime." -- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz
Tested imagefield field path
thanks for the response. I checked the imagefield field path and it is set correctly. The image still is not properly uploaded.
David Comfort
I'm begining to see this
I'm begining to see this problem occur in 6.x version of the module
ditto. Interestingly the
ditto. Interestingly the configuration screen for field_image_cache says, "Optional subdirectory within the "sites/default/files//" directory where files will be stored. Do not include preceding or trailing slashes."
There's a second slash in the system file path in the help text and that's where the extra slash is going in the path when I try to upload an image.
I get this on file
I get this on file uploads...I don't believe it is just ImageCache in my Drupal 6.x case. I've checked all of the file paths a hundred times because it bugs me, but they're all clean. Don't know where this is coming from.