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.
FS#1995 PHP Warning while rendering a faulty footnote followed by a list
The following error message will appear, if you add a non-complete footnote (second closing bracket is missing) followed by a list item (which also has a footnote in it):
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'Doku_Renderer_xhtml::list_item' was given in /var/www/icke/inc/parser/renderer.php on line 78
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'Doku_Renderer_xhtml::list_close' was given in /var/www/icke/inc/parser/renderer.php on line 78
TextTextTextTextTextText ((Faulty Footnote 1)
- List Item 1
- List Item 2((Footnote 2))
- List Item 3
(Error occurs in Lemming release as well as in the ICKE-Wiki)
Confirmed in devel revision 396c218 too.
reopened. I can reproduce in current dev.
Reproducable for any revision. Adding purge=1 when loading the page helps :-)
Its non-trivial to get the parser to handle this gracefully.
I've pushed a patch for nesting mode to check for existence of methods before attempting to call them, which will remove the warnings.
Can you post the link to this patch?
Fixed in current codebase. The warning message won't show up and it's traceable where the bracket is missing.