[Solved] Preview Tab Window Is Blank

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

[Solved] Preview Tab Window Is Blank

Post 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.
Last edited by KitchM on Tue Oct 28, 2014 3:37 pm, edited 1 time in total.
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: Preview Tab Window Is Blank

Post 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.
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: Preview Tab Window Is Blank

Post 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.
chandra

Re: Preview Tab Window Is Blank

Post 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.
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: Preview Tab Window Is Blank

Post by KitchM »

I have 1.5 GB of memory on my server, if that was what you meant.
chandra

Re: Preview Tab Window Is Blank

Post by chandra »

I meant the memory value assigned to PHP, not server memory ...
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: Preview Tab Window Is Blank

Post 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?
chandra

Re: Preview Tab Window Is Blank

Post by chandra »

Are there any relevant outputs with debug option in config.php, activated php error reports and /or server logs?
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: Preview Tab Window Is Blank

Post 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.
chandra

Re: Preview Tab Window Is Blank

Post by chandra »

Do you are using https for your website / admin?

Is the error gone if you switch back to http?
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: Preview Tab Window Is Blank

Post by KitchM »

There is no way to switch out of the secure web page. It always goes back to https.
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: Preview Tab Window Is Blank

Post by KitchM »

I could sure use more help on this. Especially as to finding any error logs.

Thanks.
User avatar
rotezecke
Power Poster
Power Poster
Posts: 411
Joined: Fri Apr 18, 2008 9:34 pm

Re: Preview Tab Window Is Blank

Post 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.
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: Preview Tab Window Is Blank

Post 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.
User avatar
rotezecke
Power Poster
Power Poster
Posts: 411
Joined: Fri Apr 18, 2008 9:34 pm

Re: Preview Tab Window Is Blank

Post 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.
Post Reply

Return to “CMSMS Core”