MyBB Community Forums

Full Version: How do i solve this error ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
My website is - https://gossipion.xyz
Test id - _A_
password- pradip987

The problem is i just installed a plugin.. named who view this thread ( https://community.mybb.com/mods.php?action=view&pid=596 )

An it comes with an error. its showing up in my header in showthread page. just take a look , i have a screenshot.
[Image: Screenshot-2020-09-04-19-54-50-294-com-a...chrome.png]

@crazycat

just check this link of my forum. https://gossipion.xyz/thread-12-post-35.html#pid35

it show an error comes with
Quote:Warning [2] Use of undefined constant username - assumed 'username' (this will throw an Error in a future version of PHP) - Line: 170 - File: inc/plugins/whoreadthread.php PHP 7.2.33 (Linux)

and i check the line :170 of that plugin file... here is this...
$row['username'] = $db->escape_string(htmlspecialchars($row[username]));
            $username = format_name($row['username'], $row['usergroup'], $row['displaygroup']);
            $profilelink = build_profile_link($username, $row['uid']);