[dokuwiki] Re: Trouble with php5 and Apache2 in plugin

Am 26.04.2008 um 04:20 schrieb Martin Tschofen:

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.

Can anybody give me some pointers what I need to look for?

I'd really appreciate it. Thanks...martin


When your plugin is causing it ... does it manipulate or create the array that should be handled by those lines above? If so: what about a fallback and a is_array() check?

Sinc.
Gerry.

Other related posts: