I have CCK 5.x-1.7, ImageField 5.x-2.1, and permissions are probably fine since the older ImageField uploaded fine.

When I try to upload an image to a classified ad content type, I get a long error message and once I click ok on the error message, it returns to the classified ad creation page with the "choose file" button for the image upload missing. I've attached a screenshot of the error.

Any ideas?

CommentFileSizeAuthor
error.png142.05 KBskatepark123

Comments

MPiccinato’s picture

I would get this error sometimes. To fix it I would go to the modules, deactivate the image field, save and then re-enable it.

skatepark123’s picture

That worked perfectly, thanks.

Do you happen to know how to use the delete checkboxes that show up next to the images? I can check them off, but getting them to actually delete an image does not seem possible.

MPiccinato’s picture

Do you hit 'submit' for the node after you check the boxes?

dopry’s picture

Status: Active » Postponed (maintainer needs more info)

and are you using devel.module?

skatepark123’s picture

I'm not sure if clicking submit will delete the photo because now the imagefield module just plain doesn't attach the image to the node. I just noticed this now, so I can't say for sure, but I'm pretty sure this started after upgrading to 5.x-2.1 from 5.x-1.2-rc1.

I know that the image.module is not compatible with imagefield, so I have deactivated image.module and imagefield still refuses to attach the image to the node. What can else can I do?

Also, I do not have the devel.module installed.

skatepark123’s picture

I found how to get imagefield to display the images in nodes from a different thread. To fix it I had to go to display settings for imagefield, change the display setting, click save, then change the display setting back to the desired setting and click save.

And clicking submit does delete images that have the "delete" box checked.

Thanks for the help you two, I really appreciate it.

francoud’s picture

I also had this "long error messag" with the 5.x-2.1 version only; and also, in the report, I've found a "page not found" error, with this offending url:

http://(my website here)/imagefield/js

And - true: disabling and re-enabling the imagefield solved the problem. I found that it happened only with the "admin" user: all other users seem not having the error. Strange thing :)

beautifulmind’s picture

There is a special char in your one or more modules.

Check the same using opera, the special char will be displayed as a square.
If you are using Unix/Linux. you can check the suspected module using "less" command.
If you are also using fckeditor, it could be the suspicious candidate.

Thank you.

reed.richards’s picture

Had a similar one, read about it on http://drupal.org/node/264961 What it all boiled down to was some restrictions accessing certain content that caused a AJAX error when uploading the image. Once I turned of those restrictions everything went back to normal.

dopry’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

okay.. so sounds like a menu problem.. we'll call this issue closed since the original reporter seems to be in good shape.