Open up ubb_new_topic.cgi in a plain text editor that gives line # information and go to line 381. Look to see what file and/or directory that line is referencing. That error more than likely means you have incorrect permissions somewhere, probably on whatever file or directory line 381 is referencing.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.