Page 1 of 2
					
				[Solved]  Preview Tab Window Is Blank
				Posted: Tue Jul 15, 2014 4:57 pm
				by KitchM
				While I don't always use it, preferring to see the whole web site as it is, sometimes it is nice to use the Preview tab when editing a page.
However, I have  notice recently that this tab window is always blank now.  I cannot figure out how to turn it back on.
I am using version 1.11.10, with PHP 5.3.3 and Apache 2.2.15.
			 
			
					
				Re: Preview Tab Window Is Blank
				Posted: Wed Jul 16, 2014 4:05 pm
				by KitchM
				It might be also useful to note that there is no WYSYWYG display either.  I removed MicroTiny and installed TinyMCE.  (I did this after the problem developed, and would rather have that editor anyway.)  There was no change.
			 
			
					
				Re: Preview Tab Window Is Blank
				Posted: Wed Jul 16, 2014 4:07 pm
				by KitchM
				By the way, here's my system info:
----------------------------------------------
Cms Version: 1.11.10
Installed Modules:
    CMSMailer: 5.2.2
    CMSPrinting: 1.0.5
    FileManager: 1.4.4
    MenuManager: 1.8.5
    TinyMCE: 2.9.12
    ModuleManager: 1.5.5
    News: 2.14.2
    Search: 1.7.11
    ThemeManager: 1.1.8
    Gallery: 2.0
    CGExtensions: 1.39
    SiteMapMadeSimple: 1.2.8
    Glossary: 1.0
    ExtendedTools: 1.3.3
    CGCalendar: 1.14.3
    FrontEndUsers: 1.23.5
    CustomContent: 1.10
    SelfRegistration: 1.8.2
    Captcha: 0.4.6
    AceEditor: 1.0
    TemplateExternalizer: 2.1.3
    UsersGuide: 1.8.1
    youtubeplayer: 1.3.1
    ListIt2: 1.4.1
    ListIt2XDefs: 1.2
    ListIt2NEOlist: 1.4.1
    AdvancedContent: 0.9.4.3
    CGSmartImage: 1.16.2
    LinkMgr: 2.0
    ListIt2DirectionList: 1.4.1
    CGSimpleSmarty: 1.7.3
    ToolBox: 1.3.8
    RSSSimplePie: 1.0
Config Information:
    php_memory_limit: 
    process_whole_template: 
    max_upload_size: 10000000
    url_rewriting: mod_rewrite
    page_extension: .html
    query_var: page
    image_manipulation_prog: GD
    auto_alias_content: true
    locale: 
    default_encoding: utf-8
    admin_encoding: utf-8
    set_names: true
Php Information:
    phpversion: 5.3.3
    md5_function: On (True)
    gd_version: 2
    tempnam_function: On (True)
    magic_quotes_runtime: Off (False)
    E_STRICT: 0
    E_DEPRECATED: 0
    memory_limit: 128M
    max_execution_time: 60
    output_buffering: 4096
    safe_mode: Off (False)
    file_uploads: On (True)
    post_max_size: 10M
    upload_max_filesize: 10M
    session_save_path: /home/sierraclubswmg/tmp (0750)
    session_use_cookies: On (True)
    xml_function: On (True)
    xmlreader_class: On (True)
Server Information:
    Server Api: cgi-fcgi
    Server Db Type: MySQL (mysql)
    Server Db Version: 5.1.73
    Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
    Server Time Diff: No filesystem time difference found
----------------------------------------------
I don't know if this helps, but there it is.
			 
			
					
				Re: Preview Tab Window Is Blank
				Posted: Wed Jul 16, 2014 6:53 pm
				by chandra
				You should make a look to the server logs what's wrong. 
You are using a lot of modules. And one of the  important informations is not shown. Right, I mean php memory limit. 
Have not checked your constellation but I think you need 128 MB memory to get this working without any trouble.
			 
			
					
				Re: Preview Tab Window Is Blank
				Posted: Wed Jul 16, 2014 8:13 pm
				by KitchM
				I have 1.5 GB of memory on my server, if that was what you meant.
			 
			
					
				Re: Preview Tab Window Is Blank
				Posted: Wed Jul 16, 2014 9:17 pm
				by chandra
				I meant the memory value assigned to PHP, not server memory ...
			 
			
					
				Re: Preview Tab Window Is Blank
				Posted: Wed Jul 16, 2014 11:57 pm
				by KitchM
				Ah, that's different then.
I did find this one my server, if it helps:
Memory and transfer limit options
Maximum memory allocation     128M
Maximum HTTP POST size 	10M
Maximum file upload size 	        10M
Does this help?
			 
			
					
				Re: Preview Tab Window Is Blank
				Posted: Thu Jul 17, 2014 6:21 am
				by chandra
				Are there any relevant outputs with debug option in config.php, activated php error reports and /or server logs?
			 
			
					
				Re: Preview Tab Window Is Blank
				Posted: Thu Jul 24, 2014 8:07 pm
				by KitchM
				Alright.  I did some research under other forums and found something interesting.  It appears that there is a mixed content problem going on, and specifically it appears that there are places where TinyMCE is being called from an http:// address instead of an https:// address.
However, I can't seem to find where the insecure link is contain in any file, so I can't fix it.
			 
			
					
				Re: Preview Tab Window Is Blank
				Posted: Tue Aug 05, 2014 6:31 am
				by chandra
				Do you are using https for your website / admin? 
Is the error gone if you switch back to http?
			 
			
					
				Re: Preview Tab Window Is Blank
				Posted: Tue Aug 05, 2014 1:45 pm
				by KitchM
				There is no way to switch out of the secure web page.  It always goes back to https.
			 
			
					
				Re: Preview Tab Window Is Blank
				Posted: Mon Oct 13, 2014 6:29 pm
				by KitchM
				I could sure use more help on this.  Especially as to finding any error logs.
Thanks.
			 
			
					
				Re: Preview Tab Window Is Blank
				Posted: Tue Oct 14, 2014 12:52 am
				by rotezecke
				years ago i found this snippet in a forum (probably this one) 
Code: Select all
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on') {
  $config['root_url'] = $config['ssl_url']; 
}
 which caused the preview to break. after i learned how to properly write a htaccess redirect i dropped that line and things are better since.
 
			
					
				Re: Preview Tab Window Is Blank
				Posted: Tue Oct 14, 2014 1:56 am
				by KitchM
				Thank you for that.
Where would one find that code?  Does one just remove it or change a setting?  Is it created by a part of the admin settings?
Thanks again.
			 
			
					
				Re: Preview Tab Window Is Blank
				Posted: Tue Oct 14, 2014 2:20 am
				by rotezecke
				No, I had added this code manually years ago to my config.php file (and since removed it). if you haven't done so, this idea just hit a dead end.