Are you trying this on a 6.05? If you are you will need to mess around with the code since the MegaMod hack was documented for 6.01 which is a old version. I'm sure you have a problem in one of your ubb_lib files, with the permissions to move topics.
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.