I've used Image Assist in Drupal 4.6.x without any difficulties. Since upgrading to 5.x, I seem to be having intermittent problems with this module not working as intended.
If I insert an image into a post, I see the tag, but I will not see a picture, thumbnail, or preview sized image on previewing of the post or after submitting it. The image tag line disappears, but no image replaces it. Both filtered HMTL and full HTML have the "Images can be added to this post." I have tried using filtered HTML & full HTML, and neither has been sucessful yet. Here is what an example tag line reads: [img_assist|nid=2810|title=|alt=false|desc=|link=node|align=left|width=101|height=95]
If I look at old posts that were created in 4.6.x, images are still inserted into file, but they display as full images instead of thumbnails. Here is what an example tag line reads: [img_assist|fid=954|thumb=1|alt=CharProfiler-Addon]
If I edit the 4.6.x tag to [img_assist|fid=954|thumb=1|alt=CharProfiler-Addon|width=101|height=95], it displays as a sized down image. If I edit the 5.x tag to read [img_assist|fid=2810|thumb=1|alt=false|width=101|height=95], I get the following error: "warning: getimagesize() [function.getimagesize]: Read error! in /home/mysite/public_html/modules/img_assist/img_assist-broke/img_assist.module on line 1657.", and the alt tag shows as a link.
Now, I do believe I had image assist working properly at one point, but I have been messing with WYSIWYG editors. I have installed module available to date, and I have turned off everyone currently, being dissatisfied with all of them. I'm not sure if that broke the image_assist module somewhere along the line.
Any ideas? Making 4.6.x images thumbnail properly is a low priority for me.
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | img_assist_strtolower.patch.txt | 51 bytes | tatien |
| #4 | drupal-posts.jpg | 32.99 KB | rjr |
Comments
Comment #1
ryooki commentedAlright, I did a little more experimenting. If I select "HTML code" as opposed to Filter Tag, I get "
<span class="inline left"><a href="/node/989"></a></span>" inserted. I don't see an img tag there at all before submitting the post. I have tried using both the full HTML format & the filtered HTML format with the same result.The other modules I have installed are: Administation Menu, Audio, Development, Event, Image, Subscriptions, Read More Tweak, Masquerade, Menu Per Role, Signature, Taxonomy Access Control, Taxonomy Theme, Views, WoWRoster Integration.
Comment #2
Nick Brown commentedI have exactly the same problem and have no idea how to debug it further. I'm using the most recent development snapshop of the module as of today. I see the same
<span class="inline left"><a href="/node/123"></a></span>html code with no image tag in it, and yet there are no errors/warnings in the drupal logs.Comment #3
rjr commentedi too am interested in the html-code.
I have just got the "filter-tag" going, by changing the input format and enable the inline image.
But unfortunatly this doesn't work for html-code.
btw: how do we edit our answer
Comment #4
rjr commentedhmm, got it.
i have created another input format ("test-insert-image") with just inline image and URL-filter enabled. Then use test-insert-image as input format when you add image.
One thing: it screws up the posts. That is the footer of each post is not at the same place (just try a big image). I guess we need
somewhere???
Comment #5
yuit commentedI had the same problem, and it took me hours to sort it out. I haven't found it anywhere in the documentation, but you need to go to the Content Types admin menu, select image and enable attachments for this type of content.
At least, it did the trick for me. You will see that all the versions of an image (preview, thumbnail, etc) now appear as attachments to the related image node. From that point on, img_assist started to work for me. In case this was the issue generally speaking, it may be desirable to add a sentence in the INSTALL.TXT file of the module package to point out to people that this configuration step has to be performed.
Good luck !
Comment #6
Nick Brown commentedComment #5 does not relate to this issue, as it covers attaching images to nodes not inlining them with a filter.
The problem is when you place a img_assist filter in a node it does not produce an image and looking at the source html of the mode it contains html similar to
<span class="inline left"><a href="/node/123"></a></span>which appears to be missing the image itself.Similarly if you simply use the img_assist module to produce raw html, the html it produces for copy/pasting is the same html missing the image tags.
Comment #7
gaele commentedI'm using:
- 5.x-1.4
- insert mode "HTML code"
- Filtered HTML with <img> and <span> allowed
- TinyMCE
and inline images are working correctly.
Maybe this has been fixed in 5.x-1.4?
Comment #8
ryooki commentedI just tried the solution of comment #5, and it doesn't work for me. I still get
[img_assist|nid=2892|title=|alt=false|desc=|link=node|align=left|width=101|height=81], but on preview, all that is removed and no image appears.Comment #9
ryooki commentedI just updated to the 1.4 version per comment #7. I double checked the filtered html tags that are allowed, and I added span (img was already there). The tags wouldn't matter with full html anyway. Still, it was a no go. :(
Interestingly enough, I enable Image Attach to the posts as well, and that also doesn't seem to work. Something must be taking out the image tags somewhere.
Comment #10
pknag commentedI can confirm that this same issue exists with me. All I see are the tags. On a related note I cannot get IMCE to work either. I wonder if there is any relation between these two problems.
Comment #11
ryooki commentedI got it to work again, but not exactly sure which step did it. I deleted my Img_Assist folder under modules, and re-uploaded it. Then, I deleted a few other modules that I had installed, but had unactivated: FCKeditor, & IMCE. I'm going to guess that either completely deleting Img_assist & re-uploaded it, or deleting IMCE did the trick. I hope this helps someone else.
Comment #12
pknag commentedFor me nothing seems to correct the problem. I have uninstalled TinyMCE, IMCE and upgraded/downgraded to various versions of image and img_assist. All I get is the img_assist or the tag and no image. Any other ideas as to how to get this working?
Comment #13
Nick Brown commentedI still have this problem. As no errors or warnings displayed or logged I've no idea where to even begin looking.
I'm having another similar problem, where the gmap filter appears to drop the gmap when inserting it into a node, though this only for a large filter. I wonder if its perhaps related and indicates a general problem with filters?
Comment #14
tatien commentedI have digged in the code from img_assist.module and I found where the problem was coming from. The issue seems to be that the img_assist_display() function returns an empty string, thus resulting in no image.
The problematic code is:
I found out that $node->images['preview'] did exist but that somehow $label was set to 'Preview' (with capital 'P') thus resulting in the problem. A quick fix is to add a
I included a small patch here. However, this is just a hack IMHO: we need to figure out WHY the label starts with a capital letter.
Comment #15
jtjones23 commentedI'm having the same problem as everyone else. No image is displayed with the inline filter but the Title and the Body fields are displayed. This is not really a problem for me (I've added img tags by hand on a couple of pages) but my users are not so resourceful. I'm using version 1.4 and will be really glad when image assist module is working again.
Comment #16
jaredwiltshire commentedIs this a duplicate of http://drupal.org/node/156246 or is it something different? What version of the image module are you using?
If you are using image 5.x-1.3 then see this issue: http://drupal.org/node/156246
@tatien
You must be using image 5.x-1.3
Basically 1.3 changed the _image_get_sizes() function and it returns an array where the 'label' is now capitalized (eg Original, Preview, Thumbnail) and the array key is now what the 'label' used to be (eg _original, preview, thumbnail)...
Anyway I didn't explain that very well... See the patch in the above issue I linked to.
Comment #17
luperry commentedthe issue seems to be that, the size parameters in the new image module are replaced from strings('thumbnail', 'preview', '_original'), to constants(IMAGE_THUMBNAIL, IMAGE_PREVIEW, IMAGE_ORIGINAL). when img_assist_display function passes these size paramters to theme_image_display function, they are not recognized. it's hell of a mess to clean up.
@jaredwiltshire
yes, I think this is a dup of 156246.
Comment #18
drewish commentedYeah, this is all a result of changes I made to the image module in 1.3. It's a dupe of http://drupal.org/node/156246 which has a good start on the patch. I'm going go review it.