After setting the permissions for Author based on your FANTASTIC instructions here: http://drupal.org/node/408968, I see the following when I create a new piece of content logged in as Author:

Displaying current , unpublished revision of Test Post last modified by Author on Mar 24 2009 - 10:36pm
- Edit this revision
- Show all revisions
Displaying current , unpublished revision of Test Post last modified by Author on Mar 24 2009 - 10:36pm
- Edit this revision
- Show all revisions

The information is repeated and identical.

This duplicate info is also seen when navigating back to My Content / Pending / (select item) / View Current.

Only slightly confusing, but regrettably confusing to the least-technically-adept users I have (isn't that always the way).

Please advise if you know of a fix / workaround / patch / setting correction.

Thanks,

TC

Comments

rdeboer’s picture

Nice to hear you appreciate the tutorial, TC! Publication workflows can get quite complicated, can't they?
I must say I'm baffled by your error.
As a first step in learning more I'd like us to ascertain whether we're dealing with two physical copies that were somehow created only milliseconds apart, or a single instance displayed twice. Can you please hover over (or click) the Edit this revision links you see on your page and write down the URLs you get for the two cases? Are these identical or are the numbers in the links different?
Thanks!

ifbyphone1’s picture

@RdeBoer, thanks for the reply. The problem persisted after I submitted the error and included an occasional 3x of the info. It also appears for all user roles, as you'll see below.

I am a PHP hack, but nevertheless, I looked through your module and edited line 611:
- drupal_set_message($message . theme('item_list', $links));
+ drupal_set_message($message . theme('item_list', $links) . gettimeofday(true));

My intent here was to look at the microseconds to see if there was a difference between the two sets of information being displayed. If there was, it would seem to indicate that function _handle_view_op($node) is being called twice, as the $message is being re-built with a different timestamp. If there was not a difference, it would seem to indicate that drupal_set_message was somehow being called twice. It looks like the former is the case, as you'll see below.

Formatted output:

Displaying current revision of Test Todd Post last modified by admin on Mar 24 2009 - 10:54pm
Edit this revision
Unpublish this revision
Show all revisions
1237988706.6847
Displaying current revision of Test Todd Post last modified by admin on Mar 24 2009 - 10:54pm
Edit this revision
Unpublish this revision
Show all revisions
1237988706.6949

Output source:

 <ul>
  <li>Displaying <em>current</em> <em></em> revision of <em>Test Todd Post</em> last modified by <a href="/user/1" title="View user profile.">admin</a> on Mar 24 2009 - 10:54pm<div class="item-list"><ul><li class="first"><a href="/node/3693/revisions/7383/edit">Edit this revision</a></li>
<li><a href="/node/3693/unpublish">Unpublish this revision</a></li>
<li class="last"><a href="/node/3693/revisions">Show all revisions</a></li>
</ul></div>1237988706.6847</li>
  <li>Displaying <em>current</em> <em></em> revision of <em>Test Todd Post</em> last modified by <a href="/user/1" title="View user profile.">admin</a> on Mar 24 2009 - 10:54pm<div class="item-list"><ul><li class="first"><a href="/node/3693/revisions/7383/edit">Edit this revision</a></li>
<li><a href="/node/3693/unpublish">Unpublish this revision</a></li>
<li class="last"><a href="/node/3693/revisions">Show all revisions</a></li>
</ul></div>1237988706.6949</li>
 </ul>

In terms of my Drupal environment, I'm running Acquia 1.2.5 (latest), with a number of UC modules that are unlikely to interfere. I can PM you the Module list if that would help. And, I'm happy to help test this some more -- just point me in the right direction.

Thanks,

TC

rdeboer’s picture

Assigned: Unassigned » rdeboer

Hi TC,
I have the suspicion that this is another symptom of whatever the cause is for #414150: Current Revision Info Appearing on Administrative Pages.
Rik

ifbyphone1’s picture

Status: Active » Needs review

Fixed with this patch: http://drupal.org/node/415012

rdeboer’s picture

Status: Needs review » Fixed

Patch included in 6.x-1-2.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.