SSL Admin Panel does not load non-SSL CSS & JS

12 views
Skip to first unread message

sjf...@gmail.com

unread,
Mar 13, 2014, 3:41:59 PM3/13/14
to myev...@googlegroups.com
Recently our IT department forced the WordPress Admin panel to use SSL. This ended up rendering EventON unusable. When I looked into it, it seems it's because of a mixed content (http vs https) issue. I saw another post on these forums about it, but the issue was not addressed.

Link to other issue:
https://groups.google.com/forum/#!searchin/myeventon/https/myeventon/8-hIXjDH4Hg/gHj6UQARGeoJ

When you view source while in WP Admin you can see it is loading all EventON resources from a http address while all other themes and plugins from https (SSL).

While I haven't done so, I'd imagine if I look, I could find where this is coming from, and fix it. But the problem is going to be when IT updates the plugin, and my changes are lost.

Are there any plans on rectifying this issue?

sjf...@gmail.com

unread,
Mar 13, 2014, 4:20:39 PM3/13/14
to myev...@googlegroups.com, sjf...@gmail.com
I pinpointed the issue. Apparently when referencing the CSS and JS to load, it uses WP_PLUGIN_URL. According to this link...

http://wordpress.org/ideas/topic/wp_plugin_url-doesnt-take-ssl-into-account

... WP_PLUGIN_URL doesn't take SSL into account and this link...

https://core.trac.wordpress.org/ticket/13941

... says that site_url() function should be used instead.

I have found that in eventon.php [line 25] we have:

define( "AJDE_EVCAL_URL", path_join(WP_PLUGIN_URL, basename(dirname(__FILE__))) );

so instead of site_url() I used plugins_url():

define( "AJDE_EVCAL_URL", path_join(plugins_url(), basename(dirname(__FILE__))) );

and it works! Could you please update EventON to include this in future updates to support SSL? Thanks!

myEventON

unread,
Mar 16, 2014, 1:07:00 PM3/16/14
to myev...@googlegroups.com
Thanks for the note I will update this for the next version.
Reply all
Reply to author
Forward
0 new messages