[pmwiki-devel] Token invalid or missing. action=approveURLs

Petko Yotov 5ko at 5ko.fr
Mon Jan 5 02:12:40 PST 2026


I have prototyped an interstitial preview and confirmation page for 
approving URLs.

The "approve sites" link will no longer need the tokens.

Then you do Page?action=approvesites, it shows a form that has extracted 
all pending URLs, with checkboxes and direct links to review them.

After the form, the full page is shown, with the pending links enabled 
and highlighted to see them in context.

You can easily review the links, and uncheck those that you don't want 
to approve, then press Save.

You can preview and test this here:
   https://www.pmwiki.org/wiki/Test/UrlApprovals

...click on "(approve sites)".

Petko

On 05/01/2026 07:26, Simon wrote:
> that is very useful.
> The websites do not use  $UnapprovedLinkFmt
> 
> The websites does not have a concept of logging out (i.e. the action
> is not a menu item).although there is a login
> (they are public wikis, see  PmWiki | Cookbook / OpenPass-Talk [1] )
> But when I do log out I am correctly prompted for the URL Approvals
> page password
> 
> action=approvesites&pmtoken=FJlMR3rRfLWuwrcgfaUfUw==
> 
> On Mon, 5 Jan 2026 at 18:24, Petko Yotov <5ko at 5ko.fr> wrote:
> 
>> For URL approvals, action=approvesites, this is usually caused by
>> local
>> configuration for $UnapprovedLinkFmt that doesn't have the new
>> security
>> token.
>> 
>> Both the Upgrades page you linked, and the PmWiki:UrlApprovals page,
>> 
>> show examples with $TokenName=$TokenValue, see if your custom link
>> format has these.
>> 
>> Alternatively, the session and the token may expire if you're on a
>> page
>> for a long time, or if in another browser tab you logout then login
>> again.
>> 
>> Petko
>> 
>> --
>> If you upgrade :  https://www.pmwiki.org/Upgrades
>> 
>> On 05/01/2026 05:52, Simon wrote:
>>> I have what I'd like to think is an up to date PmWiki website.
>>> But I see the message Token invalid or missingToken invalid or
>> missing
>>> [1]
>>> 
>>> As it doesn't have a page what can I do to fix then?
>>> 
>>> ngā mihi
>>> 
>>> Simon
>>> 
>>> Links:
>>> ------
>>> [1] https://www.pmwiki.org/wiki/PmWiki/Upgrades#pmtoken
>>> _______________________________________________
>>> pmwiki-devel mailing list
>>> pmwiki-devel at pmichaud.com
>>> http://www.pmichaud.com/mailman/listinfo/pmwiki-devel
> 
> 
> Links:
> ------
> [1] https://www.pmwiki.org/wiki/Cookbook/OpenPass-Talk



More information about the pmwiki-devel mailing list