Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
[we had this bug before - see http://mail.zind.net/pipermail/drupal-devel/2001-September/001483.html - so i'm recycling the old bug report here]
SYMPTOMS: when you preview a node (while submitting or editing), author and links are rendered incorrectly (author is shown as "anonymous", links - "authors blog", "comments" etc. - are missing).
REASON and FIX: not sure, but i guess it is similar to the old fix - see top.
Comments
Comment #1
Dries CreditAttribution: Dries commentedI think I fixed it. It was a typo: $edit["uid"] should have read $node->uid.
Comment #2
(not verified) CreditAttribution: commentedMarking as fixed. Ax: if this fixed it please close the bug.
Comment #3
ax CreditAttribution: ax commentedthis fixes the "Submitted by anonymous" issue - but the missing link(s) remain. i don't know if /you/ consider it a bug that the preview shows different (less) links than the actual, finished node (in the example of a blog: preview shows only "update this blog"; actual node - node.php?id=X - shows "update this blog" and "add new comment") - i /do/ consider it a bug, so i leave this open.
note: other node types may have more, different and more "important" links than blogs.
feel free to close this bug if you dont agree. or should this be made a separate report?
Comment #4
(not verified) CreditAttribution: commentedThis works as intended as Drupal does not check if the node should be commented until it is submitted. This could be concidered a bug so lets leave it open as a reminder.
Comment #5
(not verified) CreditAttribution: commentedClosed. This issue needs some work, but the fix is now duplicated in a more related bug report-