Download & Extend

Editing view wysiwyg_imageupload_by_node, field 'Wysiwyg image upload: Images' breaks file name

Project:WYSIWYG image upload - Inline images for your WYSIWYG
Version:6.x-2.9
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

When I edit view wysiwyg_imageupload_by_node and change in field 'Wysiwyg image upload: Images', change field 'Use this imagecache preset' - the image dissapears because the file name is wrong (note %252F):

<img src="http://hobbyblob.com/sites/default/files/imagecache/wysiwyg_imageupload_preview/wysiwyg_imageupload/1/arbuz.jpg"

<img src="http://hobbyblob.com/sites/default/files/imagecache/%252Fwysiwyg_imageupload/1/arbuz.jpg"

Comments

#1

Found it, last line in wysiwyg_imageupload/views/wysiwyg_imageupload_handler_field_images.inc
should be changed from:

return theme('imagecache', $this->options['preset'], $img_obj->filepath, NULL, $img_obj->title);
to
return theme('imagecache', $this->options['wui_preset'], $img_obj->filepath, NULL, $img_obj->title);

#2

Are you using 3.0, if not please upgrade. This has been fixed there

#3

Thanks Eugen, do you mean 6.x-3.0-rc2? Is there anything else why I need to upgrade? I prefer not to use rc.

#4

That rc is rather very stable and will be released as stable. And yes, there are quiet a number of fixes.

#5

I tried rc3, before update get errors :

User warning: Duplicate entry &#039;sites/all/modules/wysiwyg_imageupload/modules/wysiwyg_imageuploa&#039; for key 1 query: INSERT INTO system (name, info, type, filename, status, throttle, bootstrap) VALUES (&#039;wysiwyg_imageupload_colorbox&#039;, &#039;a:10:{s:4:\&quot;name\&quot;;s:43:\&quot;WYSIWYG Image upload - Colorbox integration\&quot;;s:11:\&quot;description\&quot;;s:36:\&quot;Image fullscreen popup with Colorbox\&quot;;s:12:\&quot;dependencies\&quot;;a:2:{i:0;s:19:\&quot;wysiwyg_imageupload\&quot;;i:1;s:8:\&quot;colorbox\&quot;;}s:7:\&quot;package\&quot;;s:11:\&quot;Drupal Wiki\&quot;;s:4:\&quot;core\&quot;;s:3:\&quot;6.x\&quot;;s:7:\&quot;project\&quot;;s:19:\&quot;wysiwyg_imageupload\&quot;;s:7:\&quot;version\&quot;;s:11:\&quot;6.x-3.0-rc2\&quot;;s:9:\&quot;datestamp\&quot;;s:10:\&quot;1307015816\&quot;;s:10:\&quot;dependents\&quot;;a:0:{}s:3:\&quot;php\&quot;;s:5:\&quot;4.3.5\&quot;;}&#039;, &#039;module&#039;, &#039;sites/all/modules/wysiwyg_imageupload/modules/wysiwyg_imageupload_colorbox/wysiwyg_imageupload_colorbox.module&#039;, 0, 0, 0) in _db_query() (line 147 of /home/hobbyblo/public_html/includes/database.mysqli.inc).

And after:

The following queries were executed
wysiwyg_imageupload module
Update #6202
No queries