Closed (fixed)
Project:
filedepot
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Apr 2011 at 18:51 UTC
Updated:
17 Apr 2012 at 11:00 UTC
Jump to comment: Most recent file
$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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | uploader_path.patch | 809 bytes | reswild |
Comments
Comment #1
reswild commentedHere is a patch for this.
Comment #2
ldav1s commentedI didn't get the error message, but I applied the patch and it didn't break me.
Comment #3
reswild commentedThis could probably just be ported.
Comment #4
attiks commentedran into the same problem while using open atrium
Comment #5
aaron1234nz commentedI can also verify that the patch in #1 fixes the missing upload button problem in openatrium.
Comment #6
charos commentedStrangely, it didn't fix the issue for me...
Comment #7
reswild commentedDid you make sure to upload the yui_uploader.swf file to the right place?
Comment #8
attiks commentedComment #9
blainelang commentedThanks @reswild, I've committed your patch - http://drupalcode.org/project/filedepot.git/commit/11cbfa3
Comment #11
ludo.rHi,
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.