Support » Plugin: The Events Calendar » wp-admin SSL loads resources http

  • Resolved EastDevonAlliance

    (@eastdevonalliance)


    Just started to implement SSL for our admin pages and I get warnings about mixed mode content in wp-admin including the-event-calendar for the following files:

    /wp-content/plugins/the-events-calendar/common/src/resources/css/dependency.min.css?ver=4.3.1
    /wp-content/plugins/the-events-calendar/common/src/resources/css/bumpdown.min.css?ver=4.3.1
    /wp-content/plugins/the-events-calendar/common/src/resources/css/tribe-common-admin.min.css?ver=4.3.1
    /wp-content/plugins/the-events-calendar/common/vendor/jquery/ui.theme.css?ver=4.3.1
    /wp-content/plugins/the-events-calendar/common/vendor/jquery/ui.datepicker.css?ver=4.3.1
    /wp-content/plugins/the-events-calendar/common/src/resources/js/dependency.min.js?ver=4.3.1
    /wp-content/plugins/the-events-calendar/common/src/resources/js/pue-notices.min.js?ver=4.3.1
    /wp-content/plugins/the-events-calendar/common/vendor/clipboard/clipboard.min.js?ver=4.3.1
    /wp-content/plugins/the-events-calendar/common/src/resources/js/tribe-common.min.js?ver=4.3.1
    /wp-content/plugins/the-events-calendar/src/resources/js/aggregator-facebook-login.min.js?ver=4.3.1.1

    Knowing that support time is limited, I will try to find the time to read the code and see if I can work out what the fix should be.

    Thx.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Apologies – but this is a known issue with WordPress not an issue with this plugin.

    I installed a new plugin to fix this and it sorted it.

    How did you fix this? What plugin did you use? I just recently started getting this issue with The Events Calendar (no other plugin is loading http) after the last update.

    SSL Insecure Content Fixer

    This happens when you force admin SSL, but not SSL on the front end. I had the same problem. It is because they changed the way they generate the asset URLs.

    They now use the WP_CONTENT_URL constant, which interestingly enough, the codex say explicitly not to use (probably for reasons like this). See: https://codex.wordpress.org/Determining_Plugin_and_Content_Directories

    Fortunately there is a filter on the return of the tribe_resource_url() function, so you can fix it like this:

    add_filter( 'tribe_resource_url', 'fix_tribe_resource_url', 10, 2 );
    function fix_tribe_resource_url( $url, $resource ) {
    	if ( is_ssl() ) {
    		$url = str_replace( 'http', 'https', $url );
    	}
    	return $url;
    }
    Plugin Contributor Clifford Paulick

    (@cliffpaulick)

    William, I’ve passed that information along to our developers; thank you for it.

    Everyone else, this is a known bug that our developers will address.

    If you set both your Home URL and Site URL to HTTPS, you shouldn’t be affected by this bug.

    Thank you for using our plugin.

    Plugin Contributor ggwicz

    (@ggwicz)

    Hello!

    I wanted to inform you that we’ve just published a series of updates to our products that fixes a number of issues.

    These updates should include fixes for the problems reported here, where our plugins’ scripts and stylesheets were being served over HTTP when they should’ve been served over HTTPS, or vice versa.

    Learn more about this release—version 4.3.3—in the official release notes here → https://theeventscalendar.com/maintenance-release-events-calendar-4-3-3-event-tickets-4-3-3-premium-plugins/

    Thanks for your patience in waiting for a fix!
    George

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘wp-admin SSL loads resources http’ is closed to new replies.