adding ssl broke calendar: incorrect $theme_url in frontend.php
-
Hi,
I have had a problem with the calendar. We just added an ssl to the site and change the site url to https://
The calendar on the site lost all formatting.
I have manually edited frontend.php to get the site loading, but the issue was that the css was not being loaded.
The code at line 167 of frontend.php is
$theme = $this->_registry->get(
‘model.option’
)->get( ‘ai1ec_current_theme’ );a dump of $theme produced
[theme_dir] => /home/sites/SITEURL.co.uk/public_html/wp/wp-content/plugins/all-in-one-event-calendar/public/themes-ai1ec/vortex
[theme_root] => /home/sites/SITEURL.co.uk/public_html/wp/wp-content/plugins/all-in-one-event-calendar/public/themes-ai1ec
[theme_url] => http://SERVER_IP/SITEURL.co.uk/wp/wp-content/plugins/all-in-one-event-calendar/public/themes-ai1ec/vortex
[stylesheet] => vortex
[legacy] =>
Where SITEURL is the website domain, and SERVER_IP is the website IP.
as the site is now on https:// the css file was not being loaded as the url used was (##is the ip address)
//##.##.##.##/SITEURL.co.uk/wp/wp-content/plugins/all-in-one-event-calendar/public/themes-ai1ec/vortex/css/ai1ec_parsed_css.css?ver=3.0.0
and was an ssl certificate mismatch.
Can you suggest what is happening, and how to fix it, as the manual fix i added will obviously break next time there is an update to the plugin.
Thanks
Patch
The page I need help with: [log in to see the link]
The topic ‘adding ssl broke calendar: incorrect $theme_url in frontend.php’ is closed to new replies.