01287: Page actions incorrect in 2.2.38

Summary: Page actions incorrect in 2.2.38
Created: 2012-05-24 07:17
Status: Closed - replied
Category: Bug
Version: 2.2.38

Description: After upgrading to version 2.2.38 from 2.2.37 the page actions no longer work correctly.

The $pageurl seems to always point to pageactions? instead of the current page.

Reverting back to version 2.2.37 solves this issue.

Page source from version 2.2.27 is as follows:


<div id='wikicmds'>
<ul><li class='print'><a accesskey=''  rel='nofollow'  class='wikilink' href='/wiki/cluster/Main/HomePage?action=print'>Print</a>
</li><li class='browse'><a accesskey=''  class='selflink' href='/wiki/cluster/Main/HomePage'>View</a>
</li><li class='diff'><a accesskey='h'  rel='nofollow'  class='wikilink' href='/wiki/cluster/Main/HomePage?action=diff'>History</a>
</li><li class='edit'><a accesskey='e'  rel='nofollow'  class='wikilink' href='/wiki/cluster/Main/HomePage?action=edit'>Edit</a>
</li><li class='rename'><a accesskey='e'  rel='nofollow'  class='wikilink' href='/wiki/cluster/Main/HomePage?action=rename'>Rename</a>
</li><li class='links'><a accesskey='e'  rel='nofollow'  class='wikilink' href='/wiki/cluster/Main/HomePage?action=links'>Links</a>
</li><li class='upload'><a accesskey='ak_attach'  rel='nofollow'  class='wikilink' href='/wiki/cluster/Main/HomePage?action=upload'>Attach</a>

</li><li class='attr'><a accesskey='ak_Attr'  rel='nofollow'  class='wikilink' href='/wiki/cluster/Main/HomePage?action=attr'>Attributes</a>
</li><li class='logout'><a accesskey='ak_logout'  rel='nofollow'  class='wikilink' href='/wiki/cluster/Main/HomePage?action=logout'>Logout</a>


and this is how it looks in version 2.2.38:


	<div id='wikicmds'>
	<ul><li class='print'><a accesskey=''  rel='nofollow'  class='wikilink' href='/wiki/cluster/Site/PageActions?action=print'>Print</a>
</li><li class='browse'><a accesskey=''  class='wikilink' href='/wiki/cluster/Site/PageActions'>View</a>
</li><li class='diff'><a accesskey='h'  rel='nofollow'  class='wikilink' href='/wiki/cluster/Site/PageActions?action=diff'>History</a>
</li><li class='edit'><a accesskey='e'  rel='nofollow'  class='wikilink' href='/wiki/cluster/Site/PageActions?action=edit'>Edit</a>
</li><li class='rename'><a accesskey='e'  rel='nofollow'  class='wikilink' href='/wiki/cluster/Site/PageActions?action=rename'>Rename</a>
</li><li class='links'><a accesskey='e'  rel='nofollow'  class='wikilink' href='/wiki/cluster/Site/PageActions?action=links'>Links</a>
</li><li class='upload'><a accesskey=''  rel='nofollow'  class='wikilink' href='/wiki/cluster/Site/PageActions?action=upload'>Attach</a>

</li><li class='attr'><a accesskey='ak_Attr'  rel='nofollow'  class='wikilink' href='/wiki/cluster/Site/PageActions?action=attr'>Attributes</a>
</li><li class='logout'><a accesskey=''  rel='nofollow'  class='wikilink' href='/wiki/cluster/Site/PageActions?action=logout'>Logout</a>


Well, this wiki here runs pmwiki-2.3.4 and we don't have this problem. What is the content of your page Site.PageActions? It should for example contain a number of {*$FullName} rather than {$FullName} (note the "*"). --Petko May 24, 2012, at 07:36 AM

Both are the same

version 2.2.37:

* %item rel=nofollow class=print accesskey='$[ak_print]'%[[{$FullName}?action=print | $[Print] ]]
* %item class=browse accesskey='$[ak_view]'%[[{$FullName} | $[View] ]]
* %item rel=nofollow class=diff accesskey='$[ak_history]'%[[{$FullName}?action=diff | $[History] ]]
(:if !authid:)
* %item rel=nofollow class=login accesskey='$[ak_login]'%[[{$FullName}?action=login | $[Login] ]]
(:if auth edit:)
* %item rel=nofollow class=edit accesskey='$[ak_edit]'%[[{$FullName}?action=edit | $[Edit] ]]
* %item rel=nofollow class=rename accesskey='$[ak_edit]'%[[{$FullName}?action=rename | $[Rename] ]]
* %item rel=nofollow class=links accesskey='$[ak_edit]'%[[{$FullName}?action=links | $[Links] ]]
(:if auth upload:)
* %item rel=nofollow class=upload accesskey='$[ak_attach]'%[[{$FullName}?action=upload | $[Attach] ]]
(:if auth attr:)
* %item rel=nofollow class=attr accesskey='$[ak_Attr]'%[[{$FullName}?action=attr | $[Attributes] ]]
(:if authid:)
* %item rel=nofollow class=logout accesskey='$[ak_logout]'%[[{$FullName}?action=logout | $[Logout] ]]

However, I realised that it wasn't me rolling back to version 2.2.37, though in fact 2.1.27. I upgraded last week to version 2.37 and it was only yesterday that a user picked up the problem, right after I had upgraded to 2.38

So the error I am getting is in fact when upgrading the wiki farm from 2.1.XX to 2.2.XX -- Chris Lee May 25, 2012, at 11:00AM

They are not exactly the same, see PageVariables. Site.PageActions should contain a number of {*$FullName} rather than {$FullName} (note the "*"). Just edit the page and insert as many asterisks as needed. There are a number of documented changes between the versions, you are kindly invited to read the release notes if you can. --Petko May 25, 2012, at 05:18 AM

What I meant was that the PageAction were the same across the different versions that I was testing on, ie: 2.1.27 to 2.2.37/38 I do however now see what you mean and added the * in and it worked right away. I'll go replace it in all the wiki's on our farm.

Thanks so much for your help and patience. PS: must I just change the status to closed? -- Chris Lee