I'm getting the following errors when I try to upload images to the body of my nodes using image assist (within TinyMCE, within WYSIWYG API)

The selected file could not be copied, because no file by that name exists. Please check that you supplied the correct filename. 
warning: Division by zero in ./sites/all/modules/img_assist/img_assist.module on line 883

I can successfully preview the image in the upload dialogue and imagemagik reporrts successful processing of the image but then I get the error above and no image in the content.

Also, the image assist image selection dialogue is not working correctly.
The dialogue knows how many images I've tried to upload but none of the images / thumbnails are there and my ./sites/all/files/images folder is empty. .

Anyone?

Comments

austintnacious’s picture

Version: 6.x-2.0-alpha3 » 6.x-3.x-dev

So, I've upgraded to the latest 3.x-dev version of image assist and to the latest dev version of image.module and I still have the same problem.

Also, I've installed the IMCE WYSIWYG Bridge and activated IMCE for FCKeditor (within WYSIWYG).

I CAN successfully upload images into the body of nodes using IMCE and I would go with this as a solution except that IMCE / FCKeditor have the problem where the "Link" tab does not work.
Whem you're using IMCE and FCKeditor together outside of WYSiWYG there's a patch that fixes this problem but since fckeditor.module is not used in the context of WYSIWYG the patch cannot be applied here. . .

wavydave’s picture

I saw the same errors when the php image library gd2 was not properly installed. Once that was cleaned up those errors went away. I found that testing for the presence and proper functioning of gd2 was more informative outside drupal, using phpinfo(), etc.

austintnacious’s picture

Category: support » bug

I have both GD2 and ImageMagic installed and both appear to be working correctly.
Drupal's status page indicates that everything is OK and phpinfo() returns the config details below. . .

GD Support  enabled  
GD Version  bundled (2.0.34 compatible)  
FreeType Support  enabled  
FreeType Linkage  with freetype  
FreeType Version  2.2.1  
GIF Read Support  enabled  
GIF Create Support  enabled  
JPG Support  enabled  
PNG Support  enabled  
WBMP Support  enabled  
XBM Support  enabled  

I was previously using ImageMagic as the Image API / Image Toolkit.
I changed to GD2 but I still get the errors given in the original post.

Anyone have any further ideas?

austintnacious’s picture

Can anyone point me in the right direction here?

The problem may be with the image module or with core's upload module, since I get the same error when I try to create an image node using Drupal's built in Create content interface. . .

sun’s picture

Status: Active » Closed (duplicate)

Thanks for taking the time to report this issue.

However, marking as duplicate of #478284: Add FCKeditor (Wysiwyg) integration. Please search for existing issues before submitting a new one.
You can follow up on that issue to track its status instead. If any information from this issue is missing in the other issue, please make sure you provide it over there.