We were getting a zillion of these in the error log
[Tue Aug 07 05:06:11 2007] [error] [client 220.127.116.11] PHP Warning: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument in /var/www/html/doku/inc/parser/parser.php on line 159, referer: http://alpha.somewhere.com/doku/doku.php/playground
Maybe there's an underlying problem (incompatible plugins?). But in any case, adding:
if (!is_array($this->allowedModes)) return false; /* nazgul */
made the symptoms go away.
ditto for this, although in this case it was a matter of setting idx to false and putting the in_array in the else clause.
Tue Aug 07 05:10:33 2007] [error] [client 18.104.22.168] PHP Warning: array_search() [<a href='function.array-search'>function.array-search</a>]: Wrong datatype for second argument in /var/www/html/doku/lib/plugins/syntax.php on line 137