Hi --
I think this was an upgrade problem because it worked in 4.6.1. When I upgraded to 4.6.2 I lost the ability to preview the full text of my content (forums, stories, etc.). I can see a preview of the trimmed version but the preview full version heading is only followed by two blank lines.

Please help.
Thank you!
Dina

Comments

mikevk’s picture

Change line 1502 of node.module (in the theme_node_preview function, right after the line that says 'Preview trimmed version') from this:

$output .= node_view($node, 1, FALSE, 0);

to this:

$output .= node_view(clone($node), 1, FALSE, 0);

Make sure you change the line that comes right after 'Preview trimmed version', not the identical line later in the function.

If you're using PHPTemplate, there are other ways to work around this bug, but they're more complicated.

HighMaintenanceMom’s picture

Thank you very much! It was painful to post and then edit.

Cheers,
dina

Russell McOrmond’s picture

I just upgraded to 4.6.3 and found the same problem, and the same fix will fix it.

This patch should probably be put into the distributed versions.


Russell McOrmond, Internet Consultant: FLORA Community Consulting

Drupal used at http://digital-copyright.ca/

xeon2’s picture

heiheihei

It's xeon2

thomherfs’s picture

This error has gone uncorrected all the way through to the current CVS of Drupal 4.7 and the current CivicSpace 0.8.3RC5b.

Since it is a very simple fix, involving one, single word, is there some reason that the original code is still there? Or has this simply fallen through the cracks through several releases?

xeon2’s picture

Thank you , It's working now

knugar’s picture

I was verry happy to find this fix!

Due to this bug, I was forced to set the length of trimmed posts to "unlimited" to get my custom filter to work on my Drupal 4.6.3 site.

Seeing this fix, I guess the problem was theme_node_preview called node_view($node, 1, FALSE, 0), which due to the argument $teaser==1 performend unset($node->body) on the original node object. This causes the preview of the full version beeing called with a node object without body and this my filter didn't like ;-)

robertgarrigos’s picture

Here is the patch for this bug still in 4.6.6. I hope some developer with proper rights will commit it:

http://drupal.org/node/57884

---
Robert Garrigos
Personal site:www.garrigos.org
Admin of: www.escolasafa.info - www.societatbach.org

FlemmingLeer’s picture

also the title does show up while previewing.

New line to change is 1514 in Drupal 4.6.7. node.module

bug report added here
http://drupal.org/node/57884

Anonymous’s picture

Strange, i still get this bug in Drupal 5.3, when the text goes over the teaser limit, it wont show... and it's not even in the database too..

I had a look at the node.module and noticed it is, in fact, using drupal_clone() but only in one of them. I tried applying it to all but still didn't work

--
\/ushi - xushi.co.uk
/\ socialprotest.com