The javascript alert error "Unspecified error" occurs on upload of files and images using the cck fields - but not the mediafields for video and audio files, and it happens using firefox (2.0.0.14 - on a mac) and not with Safari.

however, the upload seems to work anyway. after clicking off the alert, the page reloads and file is attached to the node.

i located the piece of code that produces the error: its in misc/drupal.js -- it comes because the call to parseJson(response) at line 68 returns an error. from what i can tell, the response is an empty string.

it looks like this might be related to http://drupal.org/node/59038 or http://drupal.org/node/253258 or http://drupal.org/node/55518

but i don't know how to track this down any further. i'm tempted to comment out the error line so it will be ignored.

These are the details of my install:

Drupal 5.7
audiofield_display 5.x-1.0-dev
Backup and Migrate 5.x-1.0
Content Construction Kit (CCK) 5.x-1.7
Content Templates (Contemplate) 5.x-2.02
Custom Pagers 5.x-1.9
Date 5.x-1.8
FCKeditor - WYSIWYG HTML editor 5.x-2.1
Transliterate filenames 5.x-1.0
FileField 5.x-2.3-rc3
getID3() 5.x-1.1
Global Redirect 5.x-1.2
Image 5.x-2.0-alpha1
ImageCache 5.x-1.5
ImageField 5.x-2.1
jQuery Update 5.x-1.0
Lightbox2 5.x-2.6
Link 5.x-2.1
Media Field 5.x-1.x-dev (2007-Jun-18)
MimeDetect 5.x-1.0-beta
Mime Mail 5.x-1.0
Meta tags 5.x-1.8
Panels 5.x-2.0-beta3
Pathauto 5.x-2.2
Printer-friendly Pages 5.x-3.5
Simplenews 5.x-1.3
Suggested Terms 5.x-1.1
Tagadelic 5.x-1.0
Taxonomy Batch Operations 5.x-1.0
Taxonomy hide 5.x-1.x-dev (2007-Aug-03)
Token 5.x-1.11
Update Status 5.x-2.2
videofield_display 5.x-1.0-dev
Views 5.x-1.6
XML Sitemap 5.x-1.6

Comments

ChristieLuv’s picture

Hi, maybe this thread will help you out, people are saying Wolfmarks fix does it. I'm still waiting for a response from him though.

http://drupal.org/node/248146

blb’s picture

Category: support » bug

Thank you christie. that was exactly it.

the problem is caused by having FCK + upload module on the same page.

the thread under FCK http://drupal.org/node/248146 identifies the problem, its cause, how to reproduce it, and its fix by a patch to /misc/drupal.js.

i hope this is the correct thing to do: i changed this to a bug -- in the hope that the fix could be put into drupal core since that is where the problem seems to be rather than FCK.

b

jdsaward’s picture

I was having the same problem (javascript alert error "Unspecified error" occurs on upload of files) on a 5.10 site, and eventually isolated it to a call by reference in the blockregion module. I've reported it as an issue with that module, at http://drupal.org/node/311063.

bradweikel’s picture

Status: Active » Closed (duplicate)

This is pretty clearly a duplicate of #248146: File upload throws error on attach only when FCKeditor is on page and, while that issue seems to have died from inactivity, future discussion should pick up there rather than here.