I am developing my site using CivicSpace (Republica layout) and 4.6.5. For testing I was using short messages and Preview was working fine.
The first time I tried to post smt long, the Preview block is displayed as empty (only the title and submitted info). There was only one block.
I switched to other themes and they worked as expected (preview of trimmed version and the full post). I concluded that this only happens when the post length is greater than the teaser limit (number of words). If noone can duplicate this I can send more info (modules loaded, screenshots, temporary account to test etc.). I am using PHP 5.0.5-3. Attached is the html source of the preview screen which is problematic.
Thanks.

CommentFileSizeAuthor
#1 preview.html.txt26.02 KBpembeci
source.html24.65 KBpembeci

Comments

pembeci’s picture

Title: Preview block is empty when post length is greater than the teaser limit » Wrong file
StatusFileSize
new26.02 KB

Sorry, wrong page's source. This one should be also easier to view.

pembeci’s picture

Title: Wrong file » Preview block is empty when post length is greater than the teaser limit

Hmm, so I shouldn't change the title. I expected you gave a title to each follow-up like the comments. Sorry for the noise.

pembeci’s picture

Title: Preview block is empty when post length is greater than the teaser limit » Preview post screen does not show the trimmed and full version correctly

I found some free time after I opened the issue and made some progress:

http://drupal.org/node/45423

Since I am new to Drupal though, I am not sure if this is the best way to fix it though. I also wonder why this wasn't reported before since looking at the code I think everyone should experience the same problem. I am trying to launch my site this weekend so I also asked help from the forums. Sorry if this was offending in any way. If I can get some feedback from the forums or here confirming my solution I'll try to post a patch.
Thanks.

wernst’s picture

The fix (for Drupal 4.6.3 +) seems to be over here:

http://drupal.org/node/27881

and involves adding one word to an existing file.

Hope this helps,
Warr

pembeci’s picture

Thanks, it solves one of the problems much more easily but I think you still need to make the correction of $output = ... to $output .= ... at template.php of Civicspace (as shown in the forum thread I linked above).