Mixed content generated when load lightbox and page shows blank

Mixed content generated when load lightbox and page shows blank

by Mohammad kabir -
Number of replies: 6

Moodle 3.2.1.

Parent theme:  Bootstrapbase: 2.3.0

Child Theme: custom made theme. 


I have custom menu: RESSURSER->Maskinetest

 menu url:  /local/clientcheck        ( in theme settings , )

The page loading on lightbox( through Iframe ) and https turned to http. Thus generate mixed content.

If page loading in new page, instead of lightbox then it works well.

If anybody has idea whats happening?? Thanx in advance.


Attachment : empty lightbox and console error




Attachment maschineTest1.png
Attachment maschineTest2.png
Average of ratings: -
In reply to Mohammad kabir

Re: Mixed content generated when load lightbox and page shows blank

by Ken Task -
Picture of Particularly helpful Moodlers

Guess ...

make  menu url:  /local/clientcheck        ( in theme settings , )

https://site/local/clientcheck - Full url not relative ...

or via code by concactating the $CFG->wwwroot variable in front of path to local/clientcheck/

$CFG->wwwroot should have https in it.

'spirit of sharing', Ken


In reply to Ken Task

Re: Mixed content generated when load lightbox and page shows blank

by Mohammad kabir -

Hi Ken,

I did exactly what you said. But the result is same, empty lightbox.

 See the attachment. Firefox giving little better description. Firefox saying url is changing somehow, even though  I change it to https through theme settings or code.

In my localhost its working, but in linux server its not working. So is it  some server side configuration..?? Don't know.. If anybody has .. welcome smile


FYI:

     clienttest1.png:  chrome

      clienttest2.png:  firefox

Attachment clienttest1.png
Attachment clienttest2.png
In reply to Mohammad kabir

Re: Mixed content generated when load lightbox and page shows blank

by Ken Task -
Picture of Particularly helpful Moodlers

Make sure you clear server caches ... mooldeata/localcache is where theme stuff is cached, I think.

The other things ... due to the apache error saying moved is a re-write rule that could be in main config of apache (00-default site), the virtual host config, or an .htaccess file.   The latter is heirarchial ... or supposed to be ... so look for more than one .htaccess file.

What does the drop down menu item look like?   Any errant characters in defining the URL?

When saving the drop down menu, do you have the entry box stretched out so that each menu item is on a single line, or are you letting it word-wrap?  Just tried this and saving a new menu item failed with box un-stretched.

'spirit of sharing', Ken

In reply to Ken Task

Re: Mixed content generated when load lightbox and page shows blank

by Mohammad kabir -

Hi Ken, Thanks for nice answer.

We are using hitch (SSL proxy) that might be the problem. 

Same settings and code localhost(PC) is working.

In reply to Mohammad kabir

Re: Mixed content generated when load lightbox and page shows blank

by Ken Task -
Picture of Particularly helpful Moodlers

Uhhh .... thinking outloud .... seems to me that 'localhost' (PC or Mac or Linux) would mean site is accessed using a web browser *on* the machine ... 127.0.0.1 ... so there's no networking involved in access even if proxy is configured.

Haven't used / dunno about 'hitch SSL proxy' but have you seen/read:

https://docs.moodle.org/31/en/Reverse_proxy_frontend

which is the highest version of Moodle for which there is any docs on proxy.

'spirit of sharing', Ken


In reply to Ken Task

Re: Mixed content generated when load lightbox and page shows blank

by Mohammad kabir -

Hi,

This is works if it opens in a new tab, instead of a lightbox. Is there anything I can do with moodle lightbox?  


Server side config, apache, virtual host  everything looks good.