Dont work on FF3

It does not work on PC with such configuration:

Windows XP.

Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9) Gecko/2008052906 Firefox/3.0

Adobe Flash Player version 9.0.124.0

I tryed to run demos and some sites working with swfupload, like this one http://www.moo.com/start.php?pid=14

Working in opera 9.26 on the same PC though.

an error..

forgot to say: there are no java-script errors, window for selecting the files just dont appear.

Re FF3

Just for testing, have you redownloaded and reinstalled Flash?

Yes, I have. And still

Yes, I have.

And still cannot make it work on my home PC with windows xp.

Window for selecting the files dont appear on this page:
http://demo.swfupload.org/simpledemo/index.php
There is an JS error: "invalid function name"

On this page
http://demo.swfupload.org/multiinstancedemo/index.php
Swfupload replaces by ordinary form element (input type=file).

On this page

it says "SWFUpload is loading. Please wait a moment... " and then
"SWFUpload is taking a long time to load or the load has failed. Please make sure JavaScript is enabled and that a working version of the Adobe Flash Player is installed". But JS is enbled and Adobe Flash Player version 9.0.124.0 is installed.

On other browsers (opera, IE) there are no such problems.

gyphie's picture

Plugins?

Do you have NoFlash, Adblock, NoScript or some other Flash blocking plugin? SWFUpload has been tested on several OSs with FireFox 3 without issue.

No luck in FireFox 3 for me either :(

I have also tried with FF3 and I cannot get it to work either.
I have tried both moo.com and my own site where I am trying to get it to work. Both places I get a js error in Firebug that says:

uncaught exception: Invalid function name

However, there is no reference to a line number or something like that. The above message is the only output you get :S

I have AdBlock installed but have tried to disable it. Still not working.
NoFlash, NoScript or other Flash blocking plugin is not installed.

I have also tried to disable Firebug but then there is just no selection window or error messages. Just like Last_elf is also experiencing.

gyphie's picture

"Invalid function name" issue

When the Flash Player loads the swfupload_f?.sw the movie initializes several JavaScript functions associated with SWFUpload that allow the browser and Flash to exchange information and execute code.

When a call is made to swfu.selectFiles() the SWFUpload JavaScript library retrieves the Flash Movie node and calls the SelectFiles function attached to the node by Flash.

The JavaScript checks first to see if the function is there and if it cannot find it throws the "Invalid function name" exception.

------
The issue could be:
1. Invalid Flash Installation (I recommend uninstalling and reinstalling the Flash Plugin.
2. Some side effect from upgrading FireFox (try uninstalling FF, deleting the Profile directories and re-installing, this may also require re-installing Flash).
3. Some side effect due to a Firefox add-on (try disabling all addons)

-------

If you want to get into the guts look at swfupload.js starting at line 328 (callFlash function). Line 335 is the check for the function. You might add an alert() preceding that line so you can see what the "typeof" function returns.

Well

Now I've tried to look at the js and I can not get it to work with the work arounds I've tried. Anyway. Then I must just hope that none of our clients use FF3 with an invalid Flash installation or whatever the problem is.

A fix that takes this into account would be highly appreciated, if at all possible.

By the way...

The typeof function at line 335 returns undefined. Does that help in any way? Smiling

Adblock is the cause!

I have discovered that Adblock is the cause.
However it is not enough to use Adblock's own disable feature. You need to use the built in disable option in Firefox to get it to work.
This is not very nice as Adblock then is disabled for all sites that you visit.
In Adblock Plus, however, it is possible to disable it for only the current site and that works.
So a switch from Adblock to Adblock Plus does the trick apparently Smiling

I don't think it's Adblock…

I'm also having the same issue. I think, at least in my case, it has something to do with Prototype and/or Scriptaculous.

I don't have Adblock, but I still get the "Invalid function name" problem. In SWFUpload.prototype.callFlash I added:


for(var i in movieElement) {
alert(i + ' ' + movieElement[i]);
}

None of the functions ever came up (like "SelectFiles" or "StartUpload") -- only the native functions and functions added by Prototype and Scriptaculous.

Re: I don't think it's Adblock…

After some more testing, it doesn't seem to be an issue with Prototype or Scriptaculous.

Oddly, the demos work fine for me, but I can't get this to work on my localhost in FF3 or Safari on OS X.

{Update}
I figured it out -- it had nothing to do with SWFUpload, but some bad mod_rewrite rules that were prevented the SWF movie from loading properly.

mod_rewrite

Hi there!

@luciandipeso:
Could you be more specific about the mod_rewrite issue? I might have the same problem and I'm using some mode rewrite rules. Could you please share what rule caused the problem, how You've investigated it and what was the solution?

Thanks in advance and best regards

Michal

Re: mod_rewrite

@Michal,

Basically, I had a rule routing everything except .js, .css, and image files to a front controller. So, something like:

RewriteRule (^js|jpg|css|ico|gif|png)$ index.php

So when SWFUpload was attempting to load the swf file, it was being directed to load index.php instead, which, obviously, would cause some problems.

I just added swf to the rule:

RewriteRule (^js|jpg|css|ico|gif|png|swf)$ index.php

If you're only having trouble on one browser, I doubt this is what's causing your problem, but if you're seeing the problem across browsers, I would suggest just typing in the URL of the swf file in your browser to see what comes up.