Been hitting the FUDAPI pretty hard, integrating it into my site.
Have run across these two bugs:
1) When fud_new_topic() or fud_new_reply() is called a
Notice (8): Undefined index: usr [ROOT/FUDforum/include/theme/default/isearch.inc, line 18]
is thrown.
This is because $GLOBALS['usr']->lang is not set because it is coming from out of the environment. I changed the line to:
$lang = isset($GLOBALS['usr']->lang) ? $GLOBALS['usr']->lang : '';
2) When fud_new_topic() or fud_new_reply() is called a
Warning (512): Unable to emit headers. Headers sent in file=/home2/bugladen/cake/tobacconerd/FUDforum/include/theme/default/post_proc.inc line=730 [CORE/src/Http/ResponseEmitter.php, line 51]
is thrown.
This is because there is an extra CRLF at the bottom of the file. I removed that extra linefeed.
Diff file attached. This is against 3.1 FYI.
[Updated on: Wed, 27 November 2019 22:22]
Report message to a moderator