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

gdunham’s picture

I 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).

_timpatrick’s picture

Thanks - 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.

blainelang’s picture

Browsers often retain a users preference and it may have been previously set to always download.

gdunham’s picture

There 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.

blainelang’s picture

The /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.

gdunham’s picture

Yes. 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.

kirksievers’s picture

I'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

kirksievers’s picture

Component: Miscellaneous » User interface

I 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

_timpatrick’s picture

Glad it's working!

_timpatrick’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

bradjones1’s picture

For 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.

blainelang’s picture

Thanks Brad for noting that. I'll add that to the README.

blainelang’s picture

Title: Uncaught ReferenceError » Loading YUI libraries for SSL support
Issue summary: View changes
kevinsullivan’s picture

Thank you BradJones1 #12. That was the ticket. --Kevin

bhargavgundu’s picture

Hi all,
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

// 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(); })();