[ckan-dev] file upload field missing

Carl Lange carl at derilinx.com
Sun Mar 27 21:21:42 UTC 2016


Hi Patrick,

I believe the quickest hack for this is to edit this line of base.html:
https://github.com/ckan/ckan/blob/master/ckan/templates/base.html#L89
and replace the two h.url calls with hardcoded base urls of your site,
making sure you use https.

So eg:

<body{% block bodytag %} data-site-root="https://mysite.com"
data-locale-root="https://mysite.com" {% endblock %}>

I see it's a block - maybe you can override it. Also, this will probably
break i18n.

Sorry I can't give you a better answer right now, I'm not at my own
computer.

Cheers,
Carl


On 27 March 2016 at 21:44, Patrick West <westp at rpi.edu> wrote:

> Doesn’t sound like there is any solution to this problem? Is this a
> problem with all versions of ckan? Or just 2.5?
>
> On Mar 17, 2016, at 3:26 AM, Patrick West <westp at rpi.edu> wrote:
>
> yes we are. And there is one JavaScript error that we get trying to go
> from https to http. Is that the issue?
>
>
> On Mar 16, 2016, at 3:08 PM, Carl Lange <carl at derilinx.com> wrote:
>
> I've seen this before - if I recall correctly, it was a https issue. Are
> you running your site over HTTPS?
>
> On 16 March 2016 at 19:55, Patrick West <westp at rpi.edu> wrote:
>
>> ckan 2.5.1. Ubuntu 14.04. Using Chrome.
>>
>> Trying to enable filestore I get the following screen.
>>
>> <Screen Shot 2016-03-16 at 1.52.17 PM.png>
>>
>> You can’t tell, but there is a file selected. When I click the “Add”
>> button it complains that the URL is empty, like the File field is empty.
>> But if you click to the right of “File:” you can left click and select a
>> file from your local filesystem. Then if you hover over just to the right
>> of “File:” it’ll show the name of the file. But nothing is visible.
>>
>> Anyone see this before?
>>
>> Thanks,
>>
>> -- Patrick West
>> ---- Principal Software Engineer
>> ---- Tetherless World Constellation <http://tw.rpi.edu/>
>> ---- Rensselaer Polytechnic Institute <http://www.rpi.edu/>
>> ---- westp at rpi.edu
>> [image: Facebook] <http://www.facebook.com/groups/48548184040/>[image:
>> Weblog] <http://tw.rpi.edu/weblog/>[image: YouTube]
>> <https://www.youtube.com/user/TetherlessWorld>
>>
>>
>> _______________________________________________
>> ckan-dev mailing list
>> ckan-dev at lists.okfn.org
>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>>
>>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20160327/62a46fb0/attachment-0003.html>


More information about the ckan-dev mailing list