[EP-tech] secure https site and SetLang

Beaudoin, Mario Mario.Beaudoin at uqtr.ca
Thu Mar 8 16:29:52 GMT 2018


Thank you  
I fix the error just change the call to set_lang like this:
<a href="{$config{https_root}}/cgi/set_lang?lang=fr">FRAN&#199;AIS</a>

All the site is https all the time 
fr template and en template changed

Do you thing this way is correct?


-----Message d'origine-----
De : eprints-tech-bounces at ecs.soton.ac.uk <eprints-tech-bounces at ecs.soton.ac.uk> De la part de Yuri
Envoyé : 8 mars 2018 04:05
À : eprints-tech at ecs.soton.ac.uk
Objet : Re: [EP-tech] secure https site and SetLang

http://wiki.eprints.org/w/Https3#Missing_Images

this can be a way to replace perl_url with securehost when EPrints_secure is yes.

beware that the name get_baseurl is used in Document.pm for baseurl for the document!


Il 07/03/2018 21:41, Beaudoin, Mario ha scritto:
>
> Hi,
>
> On regular http site when we change the language with this code on 
> template
>
> <a href="{$config{perl_url}}/set_lang?lang=fr">FRAN&#199;AIS</a>
>
> Everything work fine
>
> But if we use a https site we got the error
>
> Error. $screen->render should be sub-classed for 
> EPrints::Plugin::Screen::SetLang=HASH(0x55f7dcc88da8).
>
> But next clique on any menu change the language of the site without 
> any error
>
> Any idea how to get rid of this error
>
> Thank
>
>
>
> *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive: http://www.eprints.org/tech.php/
> *** EPrints community wiki: http://wiki.eprints.org/
> *** EPrints developers Forum: http://forum.eprints.org/

*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/



More information about the Eprints-tech mailing list