Content List loading xajax under http instead of https

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
MarkWilson
New Member
New Member
Posts: 7
Joined: Fri Apr 16, 2010 1:07 pm

Content List loading xajax under http instead of https

Post 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.
MarkWilson
New Member
New Member
Posts: 7
Joined: Fri Apr 16, 2010 1:07 pm

Re: Content List loading xajax under http instead of https

Post 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.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Content List loading xajax under http instead of https

Post by calguy1000 »

Nope.. it's actually a very minor bug in all versions of CMSMS.

Fixed for the next release.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
MarkWilson
New Member
New Member
Posts: 7
Joined: Fri Apr 16, 2010 1:07 pm

Re: Content List loading xajax under http instead of https

Post by MarkWilson »

OK, thank you.

I will make my fix and wait for next release.

Mark.
Post Reply

Return to “CMSMS Core”