kaschioudi / ojs3-markup

markup plugin for OJS3
8 stars 15 forks source link

Unable to fetch citation styles #65

Open Jirrka opened 6 years ago

Jirrka commented 6 years ago

Hi, this topic is already here as a closed issue, I have the same problem, but I think that the reason is different. So the problem is that I get message "Unable to fetch citation styles" when I open the OTS Settings. In my browser log there is an error "blocked:mixed-content". I run the web www.envigogika.cuni.cz which has only https access, but the link in Settings page is http:// . I havent found where to change it.

Jirrka commented 6 years ago

Additional information - I managed to enable "mixed content" allowed mode in Google Chrome and the plugin started to work

axfelix commented 6 years ago

Thanks for this. The code that makes this request is in https://github.com/kaschioudi/ojs3-markup/blob/master/js/MarkupSettingsFormHandler.js#L57, and I don't see any hardcoding of HTTP vs. HTTPS, so it should be a server-side configuration issue, but if you think that request can be improved, I'm open to it.

Jirrka commented 6 years ago

Well, I have only very basic knowledge of programming - maybe printscreen of the situation could help you. ots_psc

Jirrka commented 6 years ago

I found the problem - it was just on the setup page of the plugin - there is the line "Open Typesetting Stack URL:" and there https:// must be used. It would be nice to use the https as default. I think two files have to be changed. I will make pull request.