Needs work
Project:
SWFUpload
Version:
6.x-2.0-beta8
Component:
User interface
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Dec 2008 at 18:55 UTC
Updated:
29 Sep 2012 at 13:18 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ica commentedI also confirm the 'greyed out' inactive-non working button for other attachments aswell
could it be with the required jQuery plugins not being minified?
The module gives errors when required jQuery plugin TableDnD and jQuery plugin cssPNGFix is not minified -expects "jquery.csspngfix.min.js" and "jquery.tablednd.min.js"
however js's downloaded from
http://www.isocra.com/2008/02/table-drag-and-drop-jquery-plugin
http://plugins.jquery.com/project/cssPNGFix
are:
jquery.csspngfix.src.js
jquery.tablednd_0_5.js
I changed this names to
jquery.csspngfix.min.js
jquery.tablednd.min.js
there errors are gone but the upload button is still 'grayed out/passive
Comment #2
Michael Beechey commentedI also posted on the SWFupload forum:
http://www.swfupload.org/forum/generaldiscussion
"We don't support the SWFUpload Drupal Module. Maybe someone here will be able to help. But you might check at the Drupal's site to see if the module has a support area."
"It depends on the version and the application.
In v2.2.0 it may mean that the Button_Disabled setting is true.
In older versions that is just an HTML button and probably means that SWFUpload failed to load and the code that enables the button has not been executed."
Comment #3
Emad commentedI faced the same problem, while swfupload works in my localhost, but when i added it in my live web site it grayed out.
Comment #4
germinal commentedI also have this problem... good thing I came straight here otherwise would have taken a long while to notice it's not me...
Comment #5
skilip commentedHave you saved settings in the configuration pages?
Comment #6
gagarine commentedSame problem.
Yes i save the settings in admin/settings/swfuploads
Comment #7
skilip commentedIf the button is grayed out, this means you either haven't got access to upload files (which is a configuration at the settings page), or there's a javascript error. Can you find something about an error? Oh, and can you add a screenshot of it?
Comment #8
maziah commentedI know the answer because I had same problem. It's unique to drupal 6. You need files from http://code.google.com/p/swfupload/downloads/list
Get: SWFUpload v2.2.0 Beta 5 Core.zip
It has to be unpacked in very specific way or it will not work, and no error message so very hard to debug. i can only figure it out because when I was messing with Drupal "5" there IS an error message - "You must install the minimalistic SWFUpload library to sites/all/modules/swfupload/swfupload."
So after googleing that error message I found this reply
at http://drupal.org/node/175227 and used that info to solve the problem. Hope that helps.
Comment #9
Stan.Ezersky commenteddownload SWFUpload v2.2.0 Beta 5 Core.zip
copy swfupload.js and swfupload.swf to /sites/all/modules/swfupload/swfupload
Comment #10
maulwuff commentedsame for me like #3:
works on localhost, but not when i copy everything to my live site.
My version is SWFUpload v2.2.0 Core
I've attached 2 screenshots
Comment #11
Nu commentedFollowing the instructions in comment #8 above worked for me, but once I did that, I still can't upload large files. I've set all the parameters to 100MB or larger, but I get Error #2038 for files larger than 10 MB. This might be because I'm using Godaddy's "Deluxe" hosting, though I'm at a loss to see what setting I should change (if any).
Comment #12
muhleder commentedWhat I found was that I had to disable my browser cache after renaming the js files as in #1. Just doing a page reload wasn't enough to get the renamed files to load for some reason.
Comment #13
dugh commentedsubscribe
got it working with #1 js renaming (and clearing cache under performance options), but trying to add swfupload.queue.js and other plugins now
Comment #14
chrisfromredfinUsing the -dev snapshot from Dec 29, 2009. I have followed all the instructions in the README.TXT, and I've renamed the downloaded jquery plugins to include the .min so that they're found. I've copied the .swf and the .js from SWFUpload 2.2.0.1 Core.zip into sites/all/modules/swfupload/swfupload.
I've got upload enabled, I've got the permissions set right (and I'm user 1). I've set the max uploads per node to 50 (I tried 0 thinking that meant "unlimited;" neither works).
Still greyed out for me. Are their other instructions I'm missing?
Comment #15
Tracy Dean commentedI have exactly the same problem with the 30-Dec-2009 dev release and renaming the files as above.
Comment #16
muhleder commentedDid you do a full clear of your browser cache? The js files are loaded dynamically so you won't get the latest version with a simple page refresh.
Comment #17
Tracy Dean commentedYes muhleder, I even tried clearing the browser's cache - though as the js files hadn't been loaded before or changed, this should not have been necessary.
Comment #18
chrisfromredfinJust throwin' this out there.. MY problem happened to be my fault. I had the max MB per node to 0. So as a sanity check, check that setting.
Comment #19
Tracy Dean commentedDon't knock yourself out cwells, a 0 default limit suggests no limit to me. This isn't my problem though, mine are set to 30MB.
Comment #20
danny_joris commentedHi, I had the same problem with the latest version (D6.x-2.0-beta2) My image upload button was greyed out.
My problem was that the path of my swf-library was not set correctly in the 'javascript libraries' module. I had to set it to sites/all/libraries/swfupload/swfupload.js to make it work.
It might not help all of you, but it might help some, as I first thought my issue was the same as described in this thread.
Comment #21
danny_joris commentedOk, now I am confused: after making these changes of #20 yesterday, I was able to upload a few images to some nodes using swfupload. Now one day later, the button is grayed out again, while the settings in the 'javascript libraries' module are still good.
When I load an edit page, I receive a 'page not found' error in my error log. The referrer is the normal add or edit page, but the location it tries to open is always: 'http://example.com/1?G' and the message is '1'.
No idea what that means.
Edit: another error gave me 'http://example.com/1?W' now...
Comment #22
WoozyDuck commentedI have the same issue
Very confused!
Comment #23
danny_joris commentedHi WoozyDuck,
SWFupload requires you to enable the core 'upload module' , though it is not included in the readme.tx file, documentation or .info file as a dependency.
Comment #24
Countzero commentedFor what it's worth, I had the 'greyed out field problem' too.
It happened to be a compatibility bug with the latest jquery_update.
Long story short, I ended up changing line 248 in swfupload.module from :
drupal_add_js('misc/tabledrag.js');to :
drupal_add_js('sites/all/modules/jquery_update/replace/tabledrag.js');Otherwise, the required setting Drupal.tabledrag is not created correctly and the init fails with a javascript error.
Hope it helps.
Comment #25
aaron commentedhere's a patch for #24. still grayed out for me, but at least it's loading the correct js.
Comment #26
aaron commentedor rather, against HEAD, which seems to be the most current version? hard to say since there's not a DRUPAL-6--2 branch...
Comment #27
aaron commentedre #23: enabling the upload module seems to have no effect one way or another on my installation.
Comment #28
aaron commentedi'm getting the same error in #21, looking for a 1?... file
Comment #29
aaron commentedscratch those patches. that's not the issue; jquery_update handles it just fine. @Countzero do you have the jquery update module enabled?
Comment #30
aaron commentedhowever, i am getting "Drupal.tableDrag is undefined":
Drupal.tableDrag is undefined
/sites/all/modules/contrib/swfupload/js/swfupload_widget.js?V
Line 910
Comment #31
aaron commentedand it's definitely attempting to load js: /1?V
Comment #32
aaron commentedComment #33
aaron commentedit seems to be
drupal_add_library('swfupload', '2.2.0.1') !== FALSEthat's doing that; commenting out that if statement stops trying to load 1...Comment #34
aaron commentedthe problem is that jqp is attempting to load from the following files:
Comment #35
aaron commentedso whatever is causing that issue is NOT going to cause the button to gray out. it's entirely unrelated. and a minor 404 error for attempting to load nothing instead.
maybe it has to do w/ the version of jquery? looking at that now...
Comment #36
aaron commentedi'm using v1.3.2 -- but i disabled jquery update to use the base version installed w/ drupal, and still no dice.
Comment #37
aaron commentedmultiple problems here; patch coming up:
1) It DOES incorrectly require upload module, and the 'upload files' permission.
2) the function at the end never gets called, because Drupal.settings.swfupload_settings doesn't initially exist.
fixing those two problems gets things working finally.
Comment #38
aaron commentedok, this fixes the second problem. now, we get a 'Filename' box above the button, but the button is still grayed out... frustrating!
Comment #39
aaron commentednow it's getting
uncaught exception: Could not find the placeholder element: field_raw_video-swfwrapperComment #40
aaron commentedthe first perms problem, btw, is solved with the patch at #728912: Only a grey button (dependency on upload module)/#5.
Comment #41
aaron commentedthis patch fixes the exception.
Comment #42
aaron commentedbtw, this seems to fix it, except that now uploading a file briefly flashes a 'Server error' in a red progress bar.
Comment #43
aaron commentedthe server error seems to be because of -200 (HTTP ERROR), of 401 (access denied). however, my net tab doesn't show any http behavior for uploading. very troubling...
Comment #44
aaron commentedok, my problem is probably because it's sitting on an apache protected server. the patch should work for others; set to RTBC if it does, please!
Comment #45
skilip commented@aaron can be please tell me more about the way you fixed the exception? Do we need a behavior for it? (why did the exception error stop occurring after adding the behavior?).
Comment #46
aaron commented@skilip: i used a behavior, because the function was being called before Drupal.settings was initialized. then i would get an exception because it was being called multiple times, so i added the -processed class to fix that. it could be done up slightly better, checking against context, but this worked for me.
Comment #47
Countzero commentedYes, I had : 6.x-2.x-dev.
Comment #48
aaron commentedI'm actually not getting the problem in 6.x-2.0-BETA3. Marking this as fixed, since the behaviors may have been redundant...
Comment #49
aaron commentedspoke too soon. i'm still getting the tabledrag errors IF the upload module is not enabled. this patch fixes that.
Comment #50
aaron commentednote you don't get the error if the upload module is enabled and the specific user has the upload files permission. note this is NOT the same as #728912: Only a grey button (dependency on upload module), as i'm using BETA-3, where that patch has already been applied.
Comment #51
eugenmayer commentedButton grey-out could be related to http://drupal.org/node/799838
Comment #52
u412499 commentedI am running Drupal 6.16 with swfupload-6.x-2.0-beta3 and I think I have followed all the suggestions in the above posts.
When I create content for a content type assigned to File and swfupload, I see a greyed out button which does not do anything when I click on it.
I am getting this problem in IE8, IE7 and FF3.5.
I am running the following as an add-on in my IE8 browser.
Name: Shockwave Flash Object
Publisher: Adobe Systems Incorporated
Type: ActiveX Control
Version: 10.0.32.18
File date:
Date last accessed: 30 May 2010, 17:30
Class ID: {D27CDB6E-AE6D-11CF-96B8-444553540000}
Use count: 280617
Block count: 272
File: Flash10c.ocx
Folder: I:\WINDOWS\system32\Macromed\Flash
and have active scripting enabled in my browser.
I have followed the instructions given in the README.txt file downloaded with swfupload-6.x-2.0-beta3 and the additional instructions given in http://www.drupalme.no/content/multiple-image-upload.
I get the same problem when I repeat the above steps using two separate Drupal Acquia installations which use 2 different themes on 2 separate PC's.
So far my attempts to download multiple files by any means which avoids the need for FTP have failed. This is regardless of whether I create a content type using "swfupload" or "image fupload" (after I enable the "image fupload" module).
Does anyone know what I am missing here? I apologise if I have missed the obvious.
Comment #53
ManyNancy commentedFor me the field is greyed out for User1 but not for anyone else. Yes I know, it's weird.
Comment #54
eugenmayer commentedSounds like a crufty dsm somewhere, which only breaks the button with uid1?
Comment #55
ManyNancy commentedSorry what's dsm?
Comment #56
eugenmayer commentedcannot reproduce this with beta5. please try beta 5 and repopen if it still does not work
Comment #58
newToo commentedI went through all of the suggestions and still had a non functioning image button and no image upload form. But, I found that when I deactivated DEVEL it magically began to work...
Comment #59
mrP commentedJust as an FYI to anyone still having this problem as of beta7, I was getting '500 internal server errors' when trying to load example.com/swfupload with jquery_update-6.x-2.0-alpha1 enabled. Error occurred at http://www.example.com/sites/all/modules/jquery_update/replace/jquery.mi....
Don't know if this helps anyone but in my case these errors were related to resource over-usage on my VPS.
Comment #60
archnode commentedStill the same problem. If I deactivate the devel module, the ui elements show normally and I can upload files.
Comment #61
kmajzlik commentedI was searching a problem last hours. I tried almost everything...
#58 was my solution!tnx.
I was trying some more option: enabling Devel 1.26 is ok but i have NOT to use Display page timer, Display memory usage at Devel settings. And more, they sent off the Performance module from Devel.
If i enable at least one of them then SWFUpload is down.
Maybe this can help to make these two thing compatible.
Comment #62
shaneonabike commentedYes same here is was DEVEL that was causing the issues. Could we *please* put a message in the README about that as a conflict.
Comment #63
vood002 commentedI'm using the new 7.x.dev version with Drupal 7.14 and I'm currently experiencing the 'grayed-out' bug.
I'm getting a javascript error on pages with the SWFUpload widget:
Based on recommendations in this thread I've disabled Devel, tried installing jQuery update, and tried aggregating js files...none of these had any effect.
Also, it appears that in the 7.x version it looks for swfupload.swf in sites/all/libraries/swfupload/Flash rather than just sites/all/libraries/swfupload...I've tried it in both locations, still grayed out either way.
Comment #64
Jenya commentedHaving the same issues on my Drupal 7.14-dev installation. Did you end up figuring it out?
Comment #65
kmajzlik commentedcheck ALL swfupload issues for 7.x version
there are more potential problems: locale, ob_clean etc which i reported(with solution) when dev release was published and can cause grayed button.
Comment #66
janyan commentedI got this working!!!
I'm using Drupal 7.15, and the 7.x.dev version.
Here's what I did:
added ob_clean(); to swfupload.admin.inc line 102;
added the jquery.cookie.js contents to the bottom of tabledrag.js. This is obviously not the correct fix, but I couldn't figure out any other way to get rid of the tabldrag cookie problem;
applied the patch to swfupload.module to allow coexistence with tokens;
disabled the jQuery Update module: can't figure out why these two can't co-exist;
changed permissions hook in swfupload.module:
applied css overrides in my theme css file (this was critical for me!):
Note: I'm not using the Locale or Devel modules, so not sure about fixes for those.
optional:
to get debug info about the flash module, add 'debug' => true, at line 140 in swfupload_widget.inc;
change dblclick to click at line 413 of swfupload_widget.js;
change alt and title to textareas in swfupload.module line 163;
reverse order of title and alt, and rename headings in swfupload.module line 159.
Comment #67
Anonymous (not verified) commentedMade a follow up issue for D7 in http://drupal.org/node/1798784 (Hard to find this, selecting on D7 issues)
@ janyan: is it possible to make a patch (or dev release)
Thanks