Page 2 of 2
					
				Re: Preview Tab Window Is Blank
				Posted: Tue Oct 14, 2014 1:51 pm
				by KitchM
				Oh, bummer.
Well thanks anyway.
			 
			
					
				Re: Preview Tab Window Is Blank
				Posted: Mon Oct 20, 2014 3:31 pm
				by KitchM
				
			 
			
					
				Re: Preview Tab Window Is Blank
				Posted: Tue Oct 28, 2014 1:54 am
				by rotezecke
				i ran into this again today, and re-established the previously published snippet in config.php:
Code: Select all
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on') {
  $config['root_url'] = $config['ssl_url'];
}
it fixed issues i had with:
- tinyMCE (not loading JS due to mixed protocols)
- GBFilePicker (dito)
- preview tab (not sure - didnt investigate as i usually dont use it)
it does break:
- preview links in backend (now pointing at "https://...")
- canonicals set incorrectly, when frontend pages normally accessed via http are accessed via https.
i ended up editing a core file (bad idea) to prevent the latter, but google somehow ended up indexing https pages (-> duplicate content).
if anyone has an idea how i can add an "i-am-an-admin-page-test" to the above if statement (without hacking core files), please let me know.
 
			
					
				Re: Preview Tab Window Is Blank
				Posted: Tue Oct 28, 2014 3:33 pm
				by KitchM
				YaHooooooooo!  

   You fixed it!
That snippet of code in mydomain/public.html/config.php did the job for both preview and TinyMCE.
Thank you so very much.  It is good to know that someone knows what he's doing.  Most excellent work!!!!
You get an Attaboy and a big thumbs up!
 
			
					
				Re: [Solved]  Preview Tab Window Is Blank
				Posted: Tue Oct 28, 2014 10:36 pm
				by rotezecke
				i changed the if statement to include a test for admin directory:
Code: Select all
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on' && strpos($_SERVER['PHP_SELF'],$config['admin_dir'])!== false) {
  $config['root_url'] = $config['ssl_url']; 
}
 
			
					
				Re: [Solved]  Preview Tab Window Is Blank
				Posted: Wed Oct 29, 2014 1:31 pm
				by KitchM
				I just tested your new code on mine and it still seems to be working great.  Good idea about the additional part.
Thanks very much.