Hi Craig,
Steve was generally correct - this is an error that started showing up in PHP 7.4. Newer versions of CMSB have improved compatibility, but this doesn't necessarily extend to plugins. We will work on getting the official plugins updated, but in the meantime, here's a patch for this particular error in Website Comments 1.5:
If you locate this block of code in websiteComments.php (around line 275)
function wsc_thread_isSubscribed($tableOrTag, $recordNum) {
global $CURRENT_USER;
$isSubscribed = mysql_count('_wsc_subscribers', array(
'userNum' => $CURRENT_USER['num'],
'tableOrTag' => $tableOrTag,
'recordNum' => $recordNum,
));
return (bool) $isSubscribed;
}
And replace it with this:
function wsc_thread_isSubscribed($tableOrTag, $recordNum) {
global $CURRENT_USER;
if (!empty( $CURRENT_USER )) {
$isSubscribed = mysql_count('_wsc_subscribers', array(
'userNum' => $CURRENT_USER['num'],
'tableOrTag' => $tableOrTag,
'recordNum' => $recordNum,
));
}
return (bool) $isSubscribed;
}
That should allow you to run the plugin in PHP 7.4.
Let me know if you have any other issues!
Thanks,
Daniel
Technical Lead
interactivetools.com