Tested on Opera and FF3 on Linux.

Versions:

Image 6.x-1.0-alpha4
Image FUpload (image) 6.x-3.0-rc2

I see:

Images
Click the "Select Images" icon on the left below to begin.

But there is no icon to see. It is referenced in the JS within the HTML.

Also, when I relode node/add/image it seems as if the browser tries to display something over the "cancel all uploads" button, but there is only a whie flicker and then no image.

Comments

grandcat’s picture

Category: bug » support
Status: Active » Fixed

This is not a bug.
Perhaps, some files are missing. Please check if you can find a .png file somewhere in the module's directory.
Also check if this is a special apache settings (mod_rewrite) which is causing that.

grandcat’s picture

Status: Fixed » Closed (duplicate)
jericho711’s picture

It is not working for me eaither and I've checked for the png file and mod_rewrite. I have made sure permissions settings are activated....

grandcat’s picture

Have a look at your status page, are there any error messages?

edib’s picture

Thanks!

Image FUpload Missing or wrong files in subdirectory "swfupload"
Some needed files which are not bundled with this module, are missing or out-of-date! This can be either "swfupload.swf", "swfupload.js" or "swfupload.queue.js" which should be located in "sites/all/modules/image_fupload/swfupload/". These files can be downloaded from SWFUploads project page. Note: Version 2.2.0 or higher is needed.

earthday47’s picture

I fixed this, and I had a few problems.

The first was that I mistakenly deleted all the files in the modules/image_fupload/swfupload directory.
I located the error because handlers.js could not be found.

So, I deleted the module folder, untar-ed the install, and then downloaded SWFUpload 2.2.0.1 from Google Code and specifically moved only those three files mentioned in the documentation.

I had to clear my browser cache to make sure it worked.

Another point: I would recommend adding on the project page exactly where the files are in the SWFUpload Core package a la WYSIWYG module's installation documentation.

Hope that helps.

kviaene’s picture

Turning of the Theme Developer module fixed it for me.

joey santiago’s picture

i have those files in my module directory... duble checked and re-uploaded them! :)

i tried to open the page with the firebug extension on my firefox. actually, the Click the swfupload.swf, swfupload.js and swfupload.queue.js files are correctly loaded on the page, at least, it seems... but the select_images.png image is not requested, even though it is in the sites/all/modules/image_fupload/swfupload/ directory...

Can anyone help me out, please?

thanks

sydneyshan’s picture

Thanks kviaene - this fixed it for me, too. Cheers!

resmonde’s picture

Yep, thanks kviaene - turning off Theme developer did it for me also.

supersteph’s picture

Image 6.x-1.0-beta5
Image FUpload 6.x-3.0-rc2

sites/all/modules/image_fupload/swfupload dir contains:
select_images.png
swfupload.js
swfupload.queue.js
swfupload.swf

the node/add/image page provides me with a dropdown to select a gallery, but other than that i have no image options. the select button does not appear, though the directive to click it does.

I'm not using Theme developer.
I have re-uploaded both the module and the swf components.

I'll soon not have any more hair to pull out...help!

grandcat’s picture

Please try using the default garland theme. Does it help?

Big Z’s picture

Hi all,

I had exactly the same problem and traced it to a javascript event handler issue. Image FUpload initialises itself by setting the window.onload handler.

Later in my theme however, I had
<body onload="skiptocontent()">

This effectively replaces the the function set by Image FUpload and hence the "select images" icon does not appear.

I solved this problem by using a great little script by Simon Willison which can be found here.

Hope this helps.

Professional Drupal Development
www.vitalatus.co.uk

jaydj’s picture

@big Z where exactly did you place that javascript code ?

jaydj’s picture

Update: turning off Theme developer and emptying my cache did the trick.

There's a new release of SWFUpload: (v2.5.0 Beta 2 Core)

but I'm sticking to what I just made it work for now. (SWFUpload v2.2.0.1 Core)

supersteph’s picture

i disabled, uninstalled and deleted image and image fupload; deleted the image content type and started from scratch.

now it works. go figure.

Big Z’s picture

Just add the addLoadEvent.js javascript file to the template.php file in your theme. The best way to do this is with the drupal_add_js function. Then replace any assignment of the window.onload handler with a call to addLoadEvent. E.g.

window.onload=skipToContent;

becomes

addLoadEvent(skipToContent);

and

<head>
...
</head>
<body onload="skipToContent()">
...
</body>

becomes

<head>
...
<script type="text/javascript">addLoadEvent(skipToContent);</script>
</head>
<body>
...
</body>

Professional Drupal Development
www.vitalatus.co.uk

agnese.stelce’s picture

Yes, theme developer off helped for me too.

manuel.solis’s picture

You have to install the IMAGE FUpload MODULE properly.
From the readme.txt:

INSTALL
--------------------

1.) Copy this directory to a suitable modules directory,
such as sites/all/modules
2.) Download SWFUpload-Core v2.2.* at http://code.google.com/p/swfupload/ and extract
the following files from the zip file: swfupload.swf, swfupload.js, swfupload.queue.js
Put these files into sites/all/modules/image_fupload/swfupload subdirectory
3.) Activate the module and its submodules (if needed) in the module list.
(dependency: image module or/and imagefield module)
4.) Now, the module is active and can be used at node/add/image,
if image module is used. If imagefield module is used, the widget of one imagefield of
any content type has to be replaced by 'image fupload' widget.
5.) Access Permissions have to be set by using the corresponding configuration pages
of the used modules.

This fixed my problems!

stevenaburton’s picture

I had the same problem and it was caused by the javascript that is required to make external links pop into a new window in an xhtml compliant way with a rel="external" attribute in a tag:

function externalLinks() { if (!document.getElementsByTagName) return; var anchors = document.getElementsByTagName("a"); for (var i=0; i

This script overides the onload event, as Big Z mentioned in #13. Removing the script solved the problem with the upload image icon. We haven't tried the workaround mentioned by Big Z yet.

capellic’s picture

I struggled with this for a long time. Not only was the icon not showing up, none of the Flash embed code for the icon was showing up. I was also having login problems after upgrading to 6.17 and then I realized that the $cookie_domain variable int he settings.php file (sites/default/settings.php) was wrong. I fixed the login problem and a light bulb went off in my head -- Flash is very fussy about "cross domain" stuff.

Most installs don't have the $cookie_domain variable set, but this site did. I changed this:

$cookie_domain = 'domain.com';

to this:

$cookie_domain = '.domain.com';

Then the icon showed up and bulk uploading works!!!

capellic’s picture

Well, I spoke too soon and the $cookie_domain variable may not have anything to do with it. Apparently the icon only appears if I'm editing an existing gallery. If I'm adding a new node, it will not appear. I've used this module on several sites without incident -- baffled by this one.

granttoth’s picture

Status: Closed (duplicate) » Needs review

I fixed this by hacking the swfupload-settings.tpl.php a bit. This is the simplest way I could see.

On line 11 or so I changed window.onload = function() { to just function swfuploadload() {

Then in my body tag of my themes page.tpl.php where my previous onload is I added my new function after a semi colon.

<body onload="insertButtonMp3Players();swfuploadload()">
resmonde’s picture

Thanks Manuel. Working on a new install of Drupal for a new project and your advice about RTFM worked. Hate reading the instructions, but they certainly help!

jjkktr’s picture

Thanks manuel, Now its working for me. May be this issue happening from people those who are missing some steps while installation.

relentlessness’s picture

Just for any fellow noobs, I thought I had a similar problem, the js icon was simply not showing outside of user1. In the end I realised that I didn't update the role profile settings in admin>site config>IMCE

HS’s picture

Status: Needs review » Closed (fixed)
trinsic’s picture

Im having some same trouble with this. I have everything installed correctley as far as I know based on what people have posted here. The problem is im getting some kind of javascript error:

fileQueued is not defined
file_queued_handler : fileQueued,

anyone have any ideas on how i can fix this?

trevorforrest’s picture

Try installing and enabling the Javascript Tools Module. This seemed to solve the problem for me.