$variables['yui_uploader_url'] = libraries_get_path('yui_uploader.swf');

Has to be changed to

$variables['yui_uploader_url'] = base_path() . libraries_get_path('yui_uploader.swf');

In order to work with organic groups or whenever called from a path different then the base path.

CommentFileSizeAuthor
#1 uploader_path.patch809 bytesreswild

Comments

reswild’s picture

StatusFileSize
new809 bytes

Here is a patch for this.

ldav1s’s picture

I didn't get the error message, but I applied the patch and it didn't break me.

reswild’s picture

Status: Active » Needs review

This could probably just be ported.

attiks’s picture

Status: Needs review » Reviewed & tested by the community

ran into the same problem while using open atrium

aaron1234nz’s picture

I can also verify that the patch in #1 fixes the missing upload button problem in openatrium.

charos’s picture

Strangely, it didn't fix the issue for me...

reswild’s picture

Did you make sure to upload the yui_uploader.swf file to the right place?

attiks’s picture

Title: 'yui_uploader.swf file not founf » 'yui_uploader.swf file not found
blainelang’s picture

Status: Reviewed & tested by the community » Fixed

Thanks @reswild, I've committed your patch - http://drupalcode.org/project/filedepot.git/commit/11cbfa3

Status: Fixed » Closed (fixed)

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

ludo.r’s picture

Hi,

Is this fix applied to 6.x-dev version?
When do you plan to make a new stable release?

I just met this problem, it seems it this fixed in the dev version.

FYI, you can do libraries_get_path('yui_uploader.swf', TRUE); : the second parameter (TRUE) will add the base path itself.