[pmwiki-devel] Read only

Petko Yotov 5ko at 5ko.fr
Mon Nov 16 11:15:26 PST 2026


On 16/11/2026 19:47, Simon wrote:
> I've got two PmWiki website where (with no action= supplied)
> 
>> $EnableReadOnly = 1;
> 
> one works just fine - i.e. the website displays
> and the other where I get
> 
>> PmWiki can't process your request
>> Cannot modify site -- $EnableReadOnly is set
> 
>> We are sorry for any inconvenience.
> 
>> More information [1]
> 
> does anyone have any suggestions for where I should be looking to find
> out why PmWiki is giving this error?

It looks like this message is sent from the function Lock(), usually 
when saving a page file, but occasionally other functions or recipes may 
call it.

For example, pagelist cache, notify, pmform, searchcloud, import, maybe 
counters, seem to be able to call it even if a page is not saved, 
possibly others.

See if it will be cleared after you remove wiki.d/.flock.

Otherwise, I'd temporarily* put a debug_backtrace() call in Abort() to 
see what exactly happens.

[*] We should add this to the core, configurable.

> PS please note https://www.pmwiki.net/pmwiki/info/readonly is not
> available

Thanks, redirect reenabled.

Petko



More information about the pmwiki-devel mailing list