Preview doesn't render (Screenshot)

Found a bug? Tell us!!
Post Reply
TKS
Regular
Posts: 199
Joined: Thu Nov 11, 2004 1:34 am
Location: VA, USA
Contact:

Preview doesn't render (Screenshot)

Post by TKS »

Hiya all,


I've been testing the ol blog a bit more lately after the 1.0 upgrade and found somthing very odd that didn't work...the preview in admin.

Image

Notice that it doesn't render the entire article (there's an extended section it is leaving out) in full.

Anyone have any thoughts?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Preview doesn't render (Screenshot)

Post by garvinhicking »

Hi!

Which template are you using there? Does it have a custom preview_iframe.tpl file?

Which browser are you using?

Can you check your JS error console if it shows problems there?

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
TKS
Regular
Posts: 199
Joined: Thu Nov 11, 2004 1:34 am
Location: VA, USA
Contact:

Re: Preview doesn't render (Screenshot)

Post by TKS »

garvinhicking wrote:Hi!

Which template are you using there? Does it have a custom preview_iframe.tpl file?

Which browser are you using?

Can you check your JS error console if it shows problems there?

Best regards,
Garvin
Template I'm using is Andreas08. the preview_iframe.tpl file is not located inside the Andreas08 directory so I assume it goes back to the default one. During troubleshooting this, I replaced all files in the "default" template directory with s9y 1.0

I'm using Firefox 1.5.0.4

Errors in my JS console are as follows:

Code: Select all

Error: Unknown property 'behavior'.  Declaration dropped.
Source File: http://linux-blog.org/index.php?/serendipity_admin.css
Line: 2

Error: Unknown property 'filter'.  Declaration dropped.
Source File: http://linux-blog.org/htmlarea/htmlarea.css
Line: 45

Error: Expected color but found 'FieldFace'.  Error in parsing value for property 'background'.  Declaration dropped.
Source File: http://linux-blog.org/htmlarea/htmlarea.css
Line: 65

Error: Unknown property 'behavior'.  Declaration dropped.
Source File: http://linux-blog.org/index.php?/serendipity.css
Line: 2
PerfectCr
Regular
Posts: 90
Joined: Mon Nov 21, 2005 2:21 am
Contact:

Post by PerfectCr »

I have the same problem in Firefox. The preview renders fine in IE 6.0, but not in Firefox 1.5.0.4. I am using Carl's 1024px template.
TKS
Regular
Posts: 199
Joined: Thu Nov 11, 2004 1:34 am
Location: VA, USA
Contact:

Post by TKS »

I'll direct carl to the thread and see what he thinks might be the culprit...
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post by carl_galloway »

Hi guys, the preview function in serendipity works great if your design is table based and uses the css id 'mainpane' as the holding container for the conetent and sidebars. The two designs you're speaking of are both table-less, and neither of them uses 'mainpane'. In the case of andreas08 the preview_iframe.tpl file should work on both browsers, and I cannot explain the errors that TKS is getting.

PerfectCr, I can update 1024px and repost but you will need to give me a few days, I've been swamped with work for the last few weeks and even checking my emails has been difficult.

As an aside, I hate the way the preview function in serendipity works, and I've never had complete success with it. Every browser seems to handle css only designs differently when the preview function is used, even when I change style names so that I have a 'mainpane' it still causes problems in either FF or IE
PerfectCr
Regular
Posts: 90
Joined: Mon Nov 21, 2005 2:21 am
Contact:

Post by PerfectCr »

carl_galloway wrote:PerfectCr, I can update 1024px and repost but you will need to give me a few days, I've been swamped with work for the last few weeks and even checking my emails has been difficult.
No problem at all! :) I completely appreciate anything you can do. No rush at all. Like I said, preview works in IE, just not Firefox. I can use IE when posting new entries for now. I'll watch this thread for replies :)
fuzzy76
Regular
Posts: 6
Joined: Thu Jun 22, 2006 8:41 am
Location: Tromsø, Norway
Contact:

Post by fuzzy76 »

Using an entire CSS/HTML design within an IFRAME like that is probably begging for trouble to begin with. I think most people would've been content with at "styleless" preview. I only use preview for proofreading my post anyway.

For a temporary hack I edited templates/default/preview_iframe.tpl and changed scrolling from no to yes. This way, I can atleast scroll to see the rest of my post.
PerfectCr
Regular
Posts: 90
Joined: Mon Nov 21, 2005 2:21 am
Contact:

Post by PerfectCr »

PerfectCr wrote:
carl_galloway wrote:PerfectCr, I can update 1024px and repost but you will need to give me a few days, I've been swamped with work for the last few weeks and even checking my emails has been difficult.
No problem at all! :) I completely appreciate anything you can do. No rush at all. Like I said, preview works in IE, just not Firefox. I can use IE when posting new entries for now. I'll watch this thread for replies :)
Carl, one more quick question. I use the Google Search code (from google as part of the adsense product) in my side bar. In Firefox, it renders correctly. In IE however, the Google search box is truncated and appears to have additional spaces between other sidebar content. I've looked at the code and I cannot figure out why it renders properly in Firefox but not IE.

Is this a more generic question for Garvin around Serendipity code or might this be specific to the template itself? Thanks!
PerfectCr
Regular
Posts: 90
Joined: Mon Nov 21, 2005 2:21 am
Contact:

Post by PerfectCr »

Carl, were you able to address the preview issue for 1024px? :)
PerfectCr
Regular
Posts: 90
Joined: Mon Nov 21, 2005 2:21 am
Contact:

Post by PerfectCr »

PerfectCr wrote:Carl, were you able to address the preview issue for 1024px? :)
Carl, any updates on this issue?
guidol
Regular
Posts: 7
Joined: Mon Sep 25, 2006 8:03 pm
Contact:

No preview at all

Post by guidol »

From time to time I don't get a preview at all. When I hit the preview button a second or third time the preview will render correctly. This is not a very predictable behaviour and I don't understand why it is happening. When I'm lucky it will work the first time I hit preview...

Someone else experiencing the same?
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

I'm not having the same problem, but I've heard of this before. In that case, it was an overloaded database server, if I recall correctly.
Judebert
---
Website | Wishlist | PayPal
Post Reply