There must be another place that nfx is being called which is triggering the error.
The problem is that apache as the open_basedir restriction enabled, which means that ultimatebb.php cannot read the members directory in the /cgi-bin.
Try changing this one:
if(!preg_match("/^d{8}$/", $var)) {
$location = figurelocation();to figurelocation(1); and see if that fixes the error. That's the only other reference to r=nfx in ultimatebb.php.
This error will only occur the first visit to the boards for a new day when you visit ultimatebb.php. If you visit ultimatebb.cgi for your first visit, you will not see the error.