I am working with Filedepot on a SSL secured site. Everything works in Firefox 20, Internet Explorer 9, Opera 12 and Safari on a Mac (don't know version). It all works fine. But on Chrome, it will not show the filedepot interface. I'm getting:
[blocked] The page at https://private.habitatyukon.org/filedepot ran insecure content from http://yui.yahooapis.com/2.7.0/build/yuiloader/yuiloader.js.
Uncaught ReferenceError: YAHOO is not defined
js_L1Mn9pLzKBYzo-ZZzEYyWFVwQeKham2fmx8CztTHxvM.js:558
(anonymous function) js_L1Mn9pLzKBYzo-ZZzEYyWFVwQeKham2fmx8CztTHxvM.js:558
Uncaught TypeError: Object function (j,s){return new b.fn.init(j,s)} has no method 'blockUI' filedepot:143 (anonymous function) filedepot:143
Which led me to https://drupal.org/node/1089118 which is for Drupal 6.
Do you have a solution for Drupal 7 on a SSL secure site? Do I just put the yui/build directory in the sites/all/libraries/yui/build directory and point to that?
Comments
Comment #1
gdunham CreditAttribution: gdunham commentedI believe I did fix it. I downloaded the yui/build directory from yahoo; put it in the sites/all/libraries/yui/ directory and pointed to it. That cleared up the insecure content problem and works across browsers.
Now, I have another problem. When I use the download arrow in filedepot with Chrome, it downloads the file but does not give me the option to open it with the appropriate application. It works on the other browsers - but not Chrome. It works as expected on the filedepot folder content pages in Chrome (and other browsers).
Comment #2
_timpatrick CreditAttribution: _timpatrick commentedThanks - glad the first issue is fixed.
Regarding the second issue - it sounds like something with chrome and not related to Filedepot. Both links to download the file go to the same location.
Comment #3
blainelang CreditAttribution: blainelang commentedBrowsers often retain a users preference and it may have been previously set to always download.
Comment #4
gdunham CreditAttribution: gdunham commentedThere must be a configuration problem on my site. The link from within filedepot points to /filedepot_download/3/6
But on the content folder page it points to /system/files/filedepot/1/group.pdf
Those URLs are the same on all browsers.
Comment #5
blainelang CreditAttribution: blainelang commentedThe /system/files/filedepot/1/group.pdf path or URL is the drupal generated URL outside of filedepot. Can you confirm that's where you are seeing that URL.
Comment #6
gdunham CreditAttribution: gdunham commentedYes. I get that URL from the /content/sample#overlay-context=filedepot/folder/2 page - the filedepot folder content page that's created when you create a new folder.
Comment #7
kirksievers CreditAttribution: kirksievers commentedI'm experiencing this issue as well. I am using SSL for my entire site.
I'm analyzing the code now to try and identify the issue. Any assistance would be helpful.
Additional information.
My development site and dev workstation do not have access to the internet. In this isolated environment, filedepot comes up just fine.
Kirk
Comment #8
kirksievers CreditAttribution: kirksievers commentedI was able to resolve my issue by ensuring that the Base URL include https.
If you are experiencing the same issue I recommend that you carefully review your base review. If you are like me, I set the base URL back before I enabled ssl across the site.
-- Kirk
Comment #9
_timpatrick CreditAttribution: _timpatrick commentedGlad it's working!
Comment #10
_timpatrick CreditAttribution: _timpatrick commentedComment #12
bradjones1For anyone else running across this; changing the base URL protocol to https doesn't appear to be enough; you must also change the hostname to yui-s.yahooapis.com.
Comment #13
blainelang CreditAttribution: blainelang commentedThanks Brad for noting that. I'll add that to the README.
Comment #14
blainelang CreditAttribution: blainelang commentedComment #15
kevinsullivan CreditAttribution: kevinsullivan commentedThank you BradJones1 #12. That was the ticket. --Kevin
Comment #16
bhargavgundu CreditAttribution: bhargavgundu commentedHi all,
// Instantiate and configure YUI Loader: (function() { var loader = new YAHOO.util.YUILoader({ base: "http://ajax.googleapis.com/ajax/libs/yui/2.6.0/build/", require: ["datatable"], onSuccess: function() { //instantiate your DataTable here... } }); // Load the files using the insert() method. loader.insert(); })();I have the same issue with one of my projects and facing the same SSL issue i.e. browser blocking the mixed content .
I tried doing the below given workaround but still facing the issue, can someone please help