This is a static dump of issues in the old "Flyspray" bugtracker for DokuWiki. Bugs and feature requests
are now tracked at the issue tracker at Github.
Closed
Not a bug
FS#1393 Php 5 and Apache2 array warnings
Plugins
2008-04-26madla
Everything worked fine until I upgraded to Mac Os X 10.5 (running apache 2 and php5).
I'm running the current official release and get a ton of php warnings the first time around a page loads.
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in/Users/martin/Sites/ikamu3/lib/plugins/syntax.phpon line 134
Warning: array_search() [function.array-search]: Wrong datatype for second argument in/Users/martin/Sites/ikamu3/lib/plugins/syntax.phpon line 137
Warning: in_array() [function.in-array]: Wrong datatype for second argument in/Users/martin/Sites/ikamu3/inc/parser/parser.phpon line 159
The last line repeats itself about a hundred times.
I've upgraded to the latest stable version which is much better but still displays the very first warning on every page the first time around.
Its my plugin that's causing it. I can pull it out and the warnings go away.
2008-04-26madla
Forgot to add the plugins that trigger the issue...martin
The issue on line 134 is due to at least one* of your plugin components returning a bad value, uxd/syntax/js.php. Instead of getAllowedTypes() returning an empty array (or better not overriding the default function in the parent class which returns an empty array) it returns a value which isn't an allowedType. An array containing an empty string isn't an empty array.