Page 1 of 1

Content List loading xajax under http instead of https

Posted: Wed Nov 21, 2012 5:00 pm
by MarkWilson
When I go to Content>Pages in Admin the following error pops up:
The page at https://www.etc.etc says:
Error: the xajax javascript component could not be included. Perhaps the URL is incorrect? URL: http://www.etc.etc/lib/xajax/xajax_js/xajax_core.js
The error only happens if I set the admin_url in config.php to use https.

It appears that the xajax_core.js is being called under http instead of https (see below).
xajax.config.requestURI = "https://www.etc.etc/admin/listcontent.php?_sx_= ... ol=1&page=";

xajax.config.statusMessages = false;
xajax.config.waitCursor = true;
xajax.config.version = "xajax 0.5";
xajax.config.legacy = false;
xajax.config.defaultMode = "asynchronous";
xajax.config.defaultMethod = "POST";
/* ]]> */

</__script>

<__script__ type="text/javascript" src="http://www.etc.etc/lib/xajax/xajax_js/xajax_core.js" charset="UTF-8"></__script>
Why this is happening?

What can I do to fix it?
I am running 1.10.3 "Hyacinthe"

Thanks,
Mark.

Re: Content List loading xajax under http instead of https

Posted: Wed Nov 21, 2012 5:30 pm
by MarkWilson
OK, a little progress.
If I change a line in the core...
the problem goes away.

Is there a way to make this happen without modifying the core file?

Thanks.

Mark.

Re: Content List loading xajax under http instead of https

Posted: Wed Nov 21, 2012 6:19 pm
by calguy1000
Nope.. it's actually a very minor bug in all versions of CMSMS.

Fixed for the next release.

Re: Content List loading xajax under http instead of https

Posted: Thu Nov 22, 2012 8:58 am
by MarkWilson
OK, thank you.

I will make my fix and wait for next release.

Mark.