Pay attention, and upgrade your version regarding the important bug found & fixed in the updated miniBB package, these bugfixes prevent the script from displaying "PHP Notice: Undefined index: forumName..." when the topic or forum is not found, and will also eliminate the canonical link from the source.
- bb_func_vthread.php — above the code which looks like:
header($proto.' 410 Gone');
$metaRobots='NOINDEX,NOFOLLOW';
$errorMSG=$l_topicnotexists; $correctErr='';
there should be added two definitions:
$forumName=''; $topicData=array(0=>'');
*
bb_func_vtopic.php — above the code which looks like
header($proto.' 410 Gone');
there should be added:
$forumName='';
- bb_functions.php — /* Canonical URLs */ section improvement — no canonical link should be present for 404 topic pages, this affects forums, topics, and user profiles. Version updated.