After installing this module in D6.4 ...Logged in as Admin - my Upload Video menu item goes to Create Video, but the "upload new file" field under "add attachments" is greyed out.

First: is this where the upload video field should be, as an attachment?
Second: how do I make it active?

thanks in advance!

Comments

ica’s picture

I 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

Michael Beechey’s picture

I 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."

Emad’s picture

I faced the same problem, while swfupload works in my localhost, but when i added it in my live web site it grayed out.

germinal’s picture

I also have this problem... good thing I came straight here otherwise would have taken a long while to notice it's not me...

skilip’s picture

Have you saved settings in the configuration pages?

gagarine’s picture

Same problem.
Yes i save the settings in admin/settings/swfuploads

skilip’s picture

If 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?

maziah’s picture

I 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

You should have SWFUpload.js and SWFUpload.swf stored in the modules/swfupload/swfupload directory. So you'd have:

modules/swfupload/swfupload/SWFUpload.js
modules/swfupload/swfupload/SWFUpload.swf

at http://drupal.org/node/175227 and used that info to solve the problem. Hope that helps.

Stan.Ezersky’s picture

download SWFUpload v2.2.0 Beta 5 Core.zip
copy swfupload.js and swfupload.swf to /sites/all/modules/swfupload/swfupload

maulwuff’s picture

StatusFileSize
new18.41 KB
new13.64 KB

same 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

Nu’s picture

Following 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).

muhleder’s picture

What 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.

dugh’s picture

subscribe

got it working with #1 js renaming (and clearing cache under performance options), but trying to add swfupload.queue.js and other plugins now

chrisfromredfin’s picture

Using 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?

Tracy Dean’s picture

Category: support » bug
Priority: Normal » Critical

I have exactly the same problem with the 30-Dec-2009 dev release and renaming the files as above.

muhleder’s picture

Did 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.

Tracy Dean’s picture

Yes 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.

chrisfromredfin’s picture

Just 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.

Tracy Dean’s picture

Don'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.

danny_joris’s picture

Hi, 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.

danny_joris’s picture

Ok, 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...

WoozyDuck’s picture

I have the same issue
Very confused!

danny_joris’s picture

Hi 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.

Countzero’s picture

For 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.

aaron’s picture

Status: Active » Needs review
StatusFileSize
new7.33 KB

here's a patch for #24. still grayed out for me, but at least it's loading the correct js.

aaron’s picture

Version: 6.x-1.x-dev » 6.x-2.0-beta2
StatusFileSize
new1.46 KB

or rather, against HEAD, which seems to be the most current version? hard to say since there's not a DRUPAL-6--2 branch...

aaron’s picture

re #23: enabling the upload module seems to have no effect one way or another on my installation.

aaron’s picture

i'm getting the same error in #21, looking for a 1?... file

aaron’s picture

Status: Needs review » Needs work

scratch those patches. that's not the issue; jquery_update handles it just fine. @Countzero do you have the jquery update module enabled?

aaron’s picture

however, i am getting "Drupal.tableDrag is undefined":

Drupal.tableDrag is undefined
/sites/all/modules/contrib/swfupload/js/swfupload_widget.js?V
Line 910

aaron’s picture

and it's definitely attempting to load js: /1?V

aaron’s picture

<script type="text/javascript" src="/sites/all/libraries/swfupload/swfupload.js?V"></script>
<script type="text/javascript" src="/1?V"></script>
<script type="text/javascript" src="/sites/all/modules/contrib/swfupload/js/swfupload_widget.js?V"></script>
aaron’s picture

it seems to be drupal_add_library('swfupload', '2.2.0.1') !== FALSE that's doing that; commenting out that if statement stops trying to load 1...

aaron’s picture

the problem is that jqp is attempting to load from the following files:

'swfupload.js' => 'sites/all/libraries/swfupload/swfupload.js',
'changed' => TRUE
aaron’s picture

so 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...

aaron’s picture

i'm using v1.3.2 -- but i disabled jquery update to use the base version installed w/ drupal, and still no dice.

aaron’s picture

multiple 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.

aaron’s picture

Status: Needs work » Needs review
StatusFileSize
new6.63 KB

ok, this fixes the second problem. now, we get a 'Filename' box above the button, but the button is still grayed out... frustrating!

aaron’s picture

now it's getting uncaught exception: Could not find the placeholder element: field_raw_video-swfwrapper

aaron’s picture

the first perms problem, btw, is solved with the patch at #728912: Only a grey button (dependency on upload module)/#5.

aaron’s picture

StatusFileSize
new6.83 KB

this patch fixes the exception.

aaron’s picture

btw, this seems to fix it, except that now uploading a file briefly flashes a 'Server error' in a red progress bar.

aaron’s picture

the 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...

aaron’s picture

ok, 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!

skilip’s picture

@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?).

aaron’s picture

@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.

Countzero’s picture

Yes, I had : 6.x-2.x-dev.

aaron’s picture

Status: Needs review » Fixed

I'm actually not getting the problem in 6.x-2.0-BETA3. Marking this as fixed, since the behaviors may have been redundant...

aaron’s picture

Version: 6.x-2.0-beta2 » 6.x-2.0-beta3
Status: Fixed » Needs review
StatusFileSize
new7.8 KB

spoke too soon. i'm still getting the tabledrag errors IF the upload module is not enabled. this patch fixes that.

aaron’s picture

note 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.

eugenmayer’s picture

Button grey-out could be related to http://drupal.org/node/799838

u412499’s picture

I 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.

ManyNancy’s picture

For me the field is greyed out for User1 but not for anyone else. Yes I know, it's weird.

eugenmayer’s picture

Sounds like a crufty dsm somewhere, which only breaks the button with uid1?

ManyNancy’s picture

Sorry what's dsm?

eugenmayer’s picture

Status: Needs review » Fixed

cannot reproduce this with beta5. please try beta 5 and repopen if it still does not work

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

newToo’s picture

I 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...

mrP’s picture

Version: 6.x-2.0-beta3 » 6.x-2.0-beta7

Just 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.

archnode’s picture

Version: 6.x-2.0-beta7 » 6.x-2.0-beta8

Still the same problem. If I deactivate the devel module, the ui elements show normally and I can upload files.

kmajzlik’s picture

I 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.

shaneonabike’s picture

Status: Closed (fixed) » Needs work

Yes same here is was DEVEL that was causing the issues. Could we *please* put a message in the README about that as a conflict.

vood002’s picture

I'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:

<?php
Uncaught TypeError: Object function (j,s){return new b.fn.init(j,s)} has no method 'cookie'

on tabledrag.js:164
?>

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.

Jenya’s picture

Having the same issues on my Drupal 7.14-dev installation. Did you end up figuring it out?

kmajzlik’s picture

check 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.

janyan’s picture

I 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:

/**
* Implements hook_permission().
*/
function swfupload_permission() {
  return array(
    'upload files with swfupload' => array(
      'title' => t('upload files with swfupload'),
      'description' => t('upload files with swfupload'),
      'restrict access' => TRUE,
    ),
  );
}

applied css overrides in my theme css file (this was critical for me!):

.swfupload_button div.left,
.swfupload_button div.center,
.swfupload_button div.right {
	float: left !important;
}

.swfupload-wrapper object {
	max-width:none !important;
}

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.

Anonymous’s picture

Made 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