Calendar Won’t load on https
-
Hello, I am currently using the free version of Booking Calendar. I haven’t had any issue with the calendar until I changed my website to secure https. As a result, the calendar won’t load. It just says “calendar loading” and never loads. I revert back to http and it loads. Is there a fix or it or do I need to purchase the pro version?
-
Hello.
1) Its most probably that you are having some JavaScript error at that page. Please recheck your page for any JavaScript errors (usually for see what JavaScript error you have you need to press Ctrl + Shift + J for showing browser console) and try to fix them.
You can also try to deactivate one by one all your active plugins at the WordPress > Plugins menu. Then retest it again.
If its not help, please deactivate your active theme and active the default WordPress theme. And then retest it again. May be there exist some conflict with some active plugin or actual theme and just need to find the reason of that issue.2) Additionally you can make this fix, which will be available in next update of plugin):
Please open this file ../{Booking Calendar Folder}/core/wpbc-js.php
( you can check how to edit files in WordPress menu in this article http://wpbookingcalendar.com/faq/how-edit-file-in-wp-menu/ )
then find this code:
if ( $version !== false ) {if ( version_compare( $version, '1.9.1', '<' ) ) { // load jQuery 1.7.1, if "Theme" load older jQuery //FixIn: 7.0.1.3
wp_deregister_script('jquery');
wp_register_script( 'jquery', 'http://code.jquery.com/jquery-1.9.1.min.js', false, '1.9.1' ); //FixIn: 7.0.1.3
// wp_register_script('jquery', 'http://code.jquery.com/jquery-latest.min.js', false, false);
wp_enqueue_script('jquery');wp_register_script('jquery-migrate', 'http://code.jquery.com/jquery-migrate-1.0.0.js', false, '1.0.0' ); //FixIn: 7.0.1.3
wp_enqueue_script( 'jquery-migrate' ); //FixIn: 7.0.1.3
}////////////////////////////////////////////////////////////////////////
// jQuery Migrate
if ( version_compare( $version, '1.9', '>=' ) ) { // if the jQuery newer then 1.9, then need to load this jquery-migrate-1.0.0 and NOT the jquery-migrate-3.0.0.min.js
wp_register_script('jquery-migrate', 'http://code.jquery.com/jquery-migrate-1.0.0.js', false, '1.0.0' );
wp_enqueue_script( 'jquery-migrate' );
}
} else {
do_action( 'wpbc_jquery_unknown' ); //FixIn: 7.0.1.33 - new hook for sitation, when we can not identificate version of jQuery, sometimes, need manually to load jquery-migrate
}
and replace it to this code:
$schema = is_ssl() ? 'https://' : 'http://'; // set_url_scheme() is not defined yet //FixIn: 7.2.1.4if ( $version !== false ) {
if ( version_compare( $version, '1.9.1', '<' ) ) { // load jQuery 1.7.1, if "Theme" load older jQuery //FixIn: 7.0.1.3
wp_deregister_script('jquery');
wp_register_script( 'jquery', $schema . 'code.jquery.com/jquery-1.9.1.min.js', false, '1.9.1' ); //FixIn: 7.0.1.3
// wp_register_script('jquery', $schema . 'code.jquery.com/jquery-latest.min.js', false, false);
wp_enqueue_script('jquery');wp_register_script('jquery-migrate', $schema . 'code.jquery.com/jquery-migrate-1.0.0.js', false, '1.0.0' ); //FixIn: 7.0.1.3
wp_enqueue_script( 'jquery-migrate' ); //FixIn: 7.0.1.3
}////////////////////////////////////////////////////////////////////////
// jQuery Migrate
if ( version_compare( $version, '1.9', '>=' ) ) { // if the jQuery newer then 1.9, then need to load this jquery-migrate-1.0.0 and NOT the jquery-migrate-3.0.0.min.js
wp_register_script('jquery-migrate', $schema . 'code.jquery.com/jquery-migrate-1.0.0.js', false, '1.0.0' );
wp_enqueue_script( 'jquery-migrate' );
}
} else {
do_action( 'wpbc_jquery_unknown' ); //FixIn: 7.0.1.33 - new hook for sitation, when we can not identificate version of jQuery, sometimes, need manually to load jquery-migrate
}
3) If you still will have this issue, please send the link to the page with booking form, where you are having an issue, I will check it then.
Kind Regards.
The topic ‘Calendar Won’t load on https’ is closed to new replies.