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 ...
Comments
Comment #1
grandcat commentedPerhaps, 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.
Comment #2
Forceflow commentedHi 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 ?
Comment #3
grandcat commentedPlease 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):
(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?
Comment #4
Forceflow commentedStrangely 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:
And in the header
I don't see an actual div in the code with the flash object embedded, like in the demo's ...
Hope this helps !
Comment #5
grandcat commentedFlash 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.
Comment #6
Forceflow commentedNo 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
Comment #7
grandcat commentedThis 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.
Comment #8
grandcat commentedNow, 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 =)
Comment #9
Forceflow commentedThanks a bunch for sorting this out!
Comment #10
aibon commentedsame problem here with 6.x-2.0-rc1.
nothing happens clicking on the upload button.
firebug:
the html looks this:
guess there's a problem with this linebreak...
Comment #11
grandcat commentedI don't get this error, please let me know more about your system's configuration, Flash version and so on, otherwise it's difficult to find that problem.
Comment #12
grandcat commentedTry to update to Flash 10 and Image FUpload 2.0.
Because of no activity for so long, I will mark this problem as fixed.
Comment #13
tevih commentedI am having the same issue as above.
I just updated the module to 6.x-2.0-rc3. This had worked a week or two ago when I last used the older version, but now it doesn't work. All required files are in the proper directories (root/modules/image_fupload/swfupload), and are being called properly in the header. I just get a non-functioning "select images" button. When I click it, an error gets thrown. Tried it using FF2 and IE7 and neither work.
Firebug's error is "swfu has no properties onclick(click clientX=0, clientY=0)" in image (line 1)
[edit]
Sorry - I don't know why it says status is fixed. Won't let me change it on edit.
[edit 2 - more info]
There's another error I did not notice, on page load before I click the select images button (from firebug):
"uncaught exception: Could not find the placeholder element: spanUploadButton
Line 0" and there does not seem to be any element name with that ID.
I also see that the js is calling an image which doesn't exist: select_images.png
Comment #14
Flying Drupalist commentedI'm getting the same as #13, also this message in firebug when I try to click select image:
swfu is undefined
onclick()image (line 1)
[Break on this error]
image (line 1)
Comment #15
Holie commentedI'm getting this error in chrome (is doesn't work in ff, ie either):
Extra info:
* Versions: SWFUpload v2.2.0 Beta 4 Core, image_fupload-6.x-2.0-rc3, drupal 6.8, flash 10
* The simple demo on http://demo.swfupload.org/ works for me
* Js on the page:
Edit 1:
After clicking on the "select images" button, i get this:
Comment #16
grandcat commentedI don't know why, but something went wrong in CVS, so a complete rewrite (version 2.1) which is based on devel version, will be published.
Try out version 2.1.
Sorry for the trouble.