No image with Img_assist
jjma - July 26, 2007 - 15:14
I've installed img_assist and ticked inline-image for the filter I am using. THe add image shows, I'm able to add an image and the textarea shows the img_assist code:
[img_assist|nid=446|title=Cat Knap|desc=|link=none|align=left|width=100|height=75]
However if I preview or submit the post I do not see the image. There is a nothing but the title?
Jon

I had this problem also, and
I had this problem also, and as far as I can remember, all I did was switch the input format from Full Text to PHP Script or whatever it's called. Try that and resubmit something (blog entry, forum topic, etc.) with an image in it and change the input format... it may work.
The downside to this is that if you are intending to have outside users create nodes containing images then they will have to change the input format as well. To get around this you'll have to get into the code and mess around to make this change automatic.
Yet another way of doing this is to download the TinyMCE module and create a button specifically for adding images. I can't explain how to do this at the moment, but if this interests you I could probably find time to help you out.
Hope this helps!
-Trevor
PHP Input Filter didn't work
Tried submitting with the php input filter selected but still no image to be seen (checked the source code). Image is being uploaded to the server - very strange. The image didn't show with the default filter and img enabled either.
I have issues if I enable the tinymce module and try to use img_assist. Images are uploaded ok, etc but when I get to the page with press 'insert' and press 'insert' I get the following error:
uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLTextAreaElement.selectionStart]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://www.tntq.com/sites/all/modules/img_assist/img_assist_textarea.js :: insertToEditor :: line 89" data: no]
No a good day for img_Assist....
Jon
For a better diagnosis -
For a better diagnosis
- Look in your files/images directories to see if the file has been really uploaded.
- Also right click in your node, at the place where the image should be, and select "view image" or "properties" to check what URL has been given to the image.
See my last comment above
See my last comment above
I agree this module does not work regardless
I have tried all the suggestions in this thread, including changing .htaccess in the files directory to no avail.
Guess will have to live with the > Attached images for now :(
.htaccess file in "Files"
Edit your (hidden) .htaccess file in your files directory.
Add a "#" in front of each line, commenting everything out. I think this is a security issue, but my images are showing again!!
I found that "image" module
I found that "image" module has some wrong(?) changes in recent release.
I made some changes as below diff.
--- /home/parkhw00/del 2007-09-18 04:55:42.000000000 +0900
+++ sites/all/modules/image/image.module 2007-09-18 04:14:24.000000000 +0900
@@ -847,9 +847,9 @@
*/
function image_get_sizes($size = NULL, $aspect_ratio = NULL) {
$defaults = array(
- IMAGE_ORIGINAL => array('width' => '', 'height' => '', 'label' => t('Original'), 'link' => IMAGE_LINK_SHOWN),
- IMAGE_THUMBNAIL => array('width' => 100, 'height' => 100, 'label' => t('Thumbnail'), 'link' => IMAGE_LINK_SHOWN),
- IMAGE_PREVIEW => array('width' => 640, 'height' => 640, 'label' => t('Preview'), 'link' => IMAGE_LINK_SHOWN),
+ IMAGE_ORIGINAL => array('width' => '', 'height' => '', 'label' => 'original', 'link' => IMAGE_LINK_SHOWN),
+ IMAGE_THUMBNAIL => array('width' => 100, 'height' => 100, 'label' => 'thumbnail', 'link' => IMAGE_LINK_SHOWN),
+ IMAGE_PREVIEW => array('width' => 640, 'height' => 640, 'label' => 'preview', 'link' => IMAGE_LINK_SHOWN),
);
$sizes = array();
after this, delete variable named 'image_sizes'. and, empty 'cache', 'cache_filter' table.
delete from variable where name = 'image_sizes';delete from cache;
delete from cache_filter;
after this, all images are showen.
but, I don't know above diff are correct. is there any one can confirm the diff??
no image displayed/inserted
I'm also having this problem with image assist. I've got a new Drupal installation that I've had up for just over a week now.
No problem uploading with image - I've confirmed the images are in files/images, and the thumbnails display with image assist.
But it just doesn't insert the code with the actual image. For example, if I chose html, there is no src specified, no img tag used. This is an example of what it inserts:
"<span class="inline left"><span class="caption"><b>colonialism panel2 ussf: </b>qqq</span></span>"So I'm just getting the label. It's similar if I use the tag option.
My filtered html input format includes these allowed tags:
a, em, strong, cite, code, ul, ol, li, dl, dt, dd, img, div
The problem is the same whether I am using tinymce or just the plain text editor. I also tried uninstalling img-assist and re-installing and it didn't help. For now I have to use the button in tinymce which doesn't browse the uploaded images, so I have to type in the relative path and exact file name.