<div dir="ltr">Thank you. You are right about the lock in a recipe.<div><br></div><div>deleting the lock file did not make a difference.<br><br>Adding<br><br> $trace = array_map(<br> fn($frame) => ($frame['file'] ?? '[internal]') . ':' . ($frame['line'] ?? '?') . ' => ' . ($frame['function'] ?? ''),<br> debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS)<br> );<br> echo '<span style="font-family:monospace;">' . implode("<br>", $trace) . "</span>"; exit;</div><div><br></div><div>to pmwiki.php (in my case I wanted it on the web page)<br><br>gave me <br><span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">D:\Home\onscolre\public_html\pmwiki\cookbook\totalcounter.php:2740 -> Lock<br>and the line<br></span> \Lock (LOCKEXCL); # acquire exclusive lock<br><span style="color:rgb(0,0,0);font-family:monospace;font-size:medium"><br>thanks<br><br>Simon<br><br></span></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, 17 Nov 2026 at 08:15, Petko Yotov <<a href="mailto:5ko@5ko.fr">5ko@5ko.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 16/11/2026 19:47, Simon wrote:<br>
> I've got two PmWiki website where (with no action= supplied)<br>
> <br>
>> $EnableReadOnly = 1;<br>
> <br>
> one works just fine - i.e. the website displays<br>
> and the other where I get<br>
> <br>
>> PmWiki can't process your request<br>
>> Cannot modify site -- $EnableReadOnly is set<br>
> <br>
>> We are sorry for any inconvenience.<br>
> <br>
>> More information [1]<br>
> <br>
> does anyone have any suggestions for where I should be looking to find<br>
> out why PmWiki is giving this error?<br>
<br>
It looks like this message is sent from the function Lock(), usually <br>
when saving a page file, but occasionally other functions or recipes may <br>
call it.<br>
<br>
For example, pagelist cache, notify, pmform, searchcloud, import, maybe <br>
counters, seem to be able to call it even if a page is not saved, <br>
possibly others.<br>
<br>
See if it will be cleared after you remove wiki.d/.flock.<br>
<br>
Otherwise, I'd temporarily* put a debug_backtrace() call in Abort() to <br>
see what exactly happens.<br>
<br>
[*] We should add this to the core, configurable.<br>
<br>
> PS please note <a href="https://www.pmwiki.net/pmwiki/info/readonly" rel="noreferrer" target="_blank">https://www.pmwiki.net/pmwiki/info/readonly</a> is not<br>
> available<br>
<br>
Thanks, redirect reenabled.<br>
<br>
Petko<br>
</blockquote></div>