[pmwiki-users] "PmWiki can't process your request" error message.

Dominique Faure dominique.faure at gmail.com
Sat Jan 6 13:55:39 CST 2007


On 1/6/07, Patrick R. Michaud <pmichaud at pobox.com> wrote:
[...]
> I also thought about adjusting PmWiki's Abort() function to return
> other status codes for other abort conditions.  For example, if
> PmWiki is unable to access the .flock file, it could respond
> with "500 Internal Server Error" as the HTTP status code
> instead of "200 OK" as it does now.
>
> But ultimately I've decided against this, because when Internet
> Explorer or IIS receive error status codes they often replace the
> '?cannot acquire lockfile' message that PmWiki provides
> with a "friendly" error message that doesn't provide any
> indication of the source of the problem.  So, using the standard
> error responses would greatly hinder site administrators that
> are trying to troubleshoot PmWiki installations using IE or IIS.
>
> For example, here's what IE displays for the same error message
> from PmWiki, where only the status code is being changed:
>
>    # PmWiki error using '200 OK' status code
>    http://www.pmwiki.org/pmwiki/uploads/PITS/ie-200.gif
>
>    # Same error message using '500 Internal Server Error' status code
>    http://www.pmwiki.org/pmwiki/uploads/PITS/ie-500.gif
>
> I think it's pretty clear that the first error message is
> far more useful to an administrator than the second, so I'm
> going to leave the default for all other abort errors as
> "200 OK".
>

According to [1], the solution seems simply to let the Abort()
function generate a "larger than 512 bytes" error message. no?

function Abort($msg, $code = 200) {
  ...
}

Dom

[1] http://support.microsoft.com/?scid=kb;en-us;294807&x=9&y=15




More information about the pmwiki-users mailing list