[pmwiki-devel] Read only

Simon nzskiwi at gmail.com
Mon Nov 16 14:29:15 PST 2026


Thank you. You are right about the lock in a recipe.

deleting the lock file did not make a difference.

Adding

  $trace = array_map(
    fn($frame) => ($frame['file'] ?? '[internal]') . ':' . ($frame['line']
?? '?') . ' => ' . ($frame['function'] ?? ''),
    debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS)
  );
  echo '<span style="font-family:monospace;">' . implode("<br>", $trace) .
"</span>";  exit;

to pmwiki.php (in my case I wanted it on the web page)

gave me
D:\Home\onscolre\public_html\pmwiki\cookbook\totalcounter.php:2740 -> Lock
and the line
    \Lock (LOCKEXCL); # acquire exclusive lock

thanks

Simon


On Tue, 17 Nov 2026 at 08:15, Petko Yotov <5ko at 5ko.fr> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-devel/attachments/20261117/5c2df7e1/attachment.html>


More information about the pmwiki-devel mailing list