Select images button does nothing

Forceflow - July 22, 2008 - 23:45
Project:Image FUpload
Version:6.x-0.4-alpha3
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

I know the first thing you're thinking is: files in the wrong place.

I checked and double-checked, they are right. No errors on the status page, either.
The files are in:
drupal/sites/all/modules/image_fupload/swfupload

These files:
swfupload.js
swfupload.queue.js
swfupload_f9.swf

It just seems the flash module doesn't get embedded in the page ...

#1

grandcat - July 23, 2008 - 06:39
Category:bug report» support request
Status:active» active (needs more info)

Perhaps, no JS Files are included in template, did you use garland theme for testing? Please show me a example of generated source code when visting node/add/image .
What browser do you use? Have you read the project page?
In the moment, it’s sporadically not working with IE 7, but this is a bug of swfUpload (Google Code #2044). There are also sporadic problems with other browsers, except Firefox. Perhaps you could help me =)

If the select button does nothing, then this should be a bug of swfUpload, not of this module.

#2

Forceflow - July 23, 2008 - 16:24

Hi there, sorry for the lack of info, I filed the report in a rush yesterday.

I'm using Firefox 3.0.1 on Ubuntu.

This is my image_fupload tree:

~/www/drupal/sites/all/modules/image_fupload$ tree
.
|-- LICENSE.txt
|-- README.txt
|-- image_fupload.admin.inc
|-- image_fupload.info
|-- image_fupload.install
|-- image_fupload.module
|-- swfupload
| |-- fileprogress.js
| |-- handlers.js
| |-- swfupload.js
| |-- swfupload.queue.js
| `-- swfupload_f9.swf
`-- swfupload-settings.tpl.php

I am using a custom theme, however. What do you mean by "the theme does not include any JS files". Does it have to ?

#3

grandcat - July 23, 2008 - 17:27

Please show me the generated source code when visiting node/add/image (important). There should be some entries which include the JS Files (should be generated automatically):

...
<script type="text/javascript" src="/drupal6/sites/default/modules/image_fupload/swfupload/swfupload.js?m"></script>
<script type="text/javascript" src="/drupal6/sites/default/modules/image_fupload/swfupload/swfupload.queue.js?m"></script>
<script type="text/javascript" src="/drupal6/sites/default/modules/image_fupload/swfupload/fileprogress.js?m"></script>
<script type="text/javascript" src="/drupal6/sites/default/modules/image_fupload/swfupload/handlers.js?m">
...
(for example)

But it could be that your theme does not allow adding any JavaScript-files. Is a $header variable set in theme? For testing, you could use "garland" theme. Please inform me whether it works with "garland" theme or not?

Did you install Flash 9.* correctly on your computer?

Another test

Try to upload some data at http://demo.swfupload.org/simpledemo/index.php . Does it work there?

#4

Forceflow - July 23, 2008 - 23:54
Status:active (needs more info)» active

Strangely enough: the simple demo does not work (nothing happens when I hit the upload button), but the multiple instances demo does.

http://demo.swfupload.org/multiinstancedemo/index.php

I made a fresh test install of Drupal, and installed the image and imageFUpload modules.I also re-installed flash 9 using apt-get install flashplugin-nonfree. The Firefox plugins page lists flash 9 r115 as installed, and other Flash applications on the web (games, youtube, ...) work.

Resulting code in /node/add/image. It does NOT work in the Garland theme, neither in my own custom theme.

Relevant sections:

<div id="jsstatus"></div><fieldset class="flash" id="fsUploadProgress"><legend>Images</legend></fieldset>
<div id="divStatus">0 Files uploaded.</div><div><input value="Select Images" onclick="swfu.selectFiles()" type="button"> <input id="btnCancel" value="Cancel All Uploads" onclick="swfu.cancelQueue();" disabled="disabled" type="button"> <input name="op" id="edit-node-create" value="Process queued images" class="form-submit ahah-processed" type="submit">
<input name="op" id="edit-delete-queue" value="Delete queued images" class="form-submit ahah-processed" type="submit">
</div><fieldset class="menu-item-form collapsible collapsed"><legend class="collapse-processed"><a href="#">Menu settings</a></legend><div class="fieldset-wrapper"><div class="form-item" id="edit-menu-link-title-wrapper">
<label for="edit-menu-link-title">Menu link title: </label>

And in the header

<script type="text/javascript" src="/drupal2_testomgeving/misc/jquery.js?E"></script>
<script type="text/javascript" src="/drupal2_testomgeving/misc/drupal.js?E"></script>
<script type="text/javascript" src="/drupal2_testomgeving/modules/date/date_timezone/date_timezone.js?E"></script>
<script type="text/javascript" src="/drupal2_testomgeving/modules/image_fupload/swfupload/swfupload.js?E"></script>
<script type="text/javascript" src="/drupal2_testomgeving/modules/image_fupload/swfupload/swfupload.queue.js?E"></script>
<script type="text/javascript" src="/drupal2_testomgeving/modules/image_fupload/swfupload/fileprogress.js?E"></script>
<script type="text/javascript" src="/drupal2_testomgeving/modules/image_fupload/swfupload/handlers.js?E"></script>
<script type="text/javascript" src="/drupal2_testomgeving/misc/jquery.form.js?E"></script>
<script type="text/javascript" src="/drupal2_testomgeving/misc/ahah.js?E"></script>
<script type="text/javascript" src="/drupal2_testomgeving/misc/progress.js?E"></script>
<script type="text/javascript" src="/drupal2_testomgeving/misc/autocomplete.js?E"></script>
<script type="text/javascript" src="/drupal2_testomgeving/misc/collapse.js?E"></script>
<script type="text/javascript" src="/drupal2_testomgeving/misc/teaser.js?E"></script>
<script type="text/javascript" src="/drupal2_testomgeving/misc/textarea.js?E"></script>

I don't see an actual div in the code with the flash object embedded, like in the demo's ...

Hope this helps !

#5

grandcat - July 24, 2008 - 07:22

Flash object is embed later by JavaScript, so you can't see one in source code. But it sounds very strange to me that the multiple Upload Demo works but the SimpleOne not. I will look for differences between them to provide a better javaScript handling. This will be done in the next few days. Thanks for these information.

#6

Forceflow - July 24, 2008 - 08:15

No problem, thanks for helping out.

I've tested all the demo's, and the only ones working are:

Multiple Instance
v1.0.2 plugin demo

I also did a version test of my Flash Version, and it is 10,0,1,218, LINUX.
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15507

#7

grandcat - July 24, 2008 - 14:18

This version is bad because it should be "9.0.124.0 Linux" or "9.*", "10.*" is not supported yet by swfUpload. Nevertheless I will analyse this case and try to understand why especially "Multiple Instance demo" works, but "Simple Upload Demo" doesn't work.
This could take a few days, of course, patches are welcome.

#8

grandcat - July 27, 2008 - 16:50

Now, myself I tested this case on Ubuntu 8.04, Firefox 3.0.1 & Flash Linux 9.0.124. I tested all demos on swfUpload, but none of them really works. Also the multiupload demo doesn't work, it only pretends that images are uploaded, but nothing will be sent to server. This sounds like a Flash Player or swfUpload bug, I will ask the maintainer of swfUpload for help =)

#9

Forceflow - July 29, 2008 - 07:35

Thanks a bunch for sorting this out!

 
 

Drupal is a registered trademark of Dries Buytaert.