Couple of things. What version are you currently running? Second would be to check and see what your session path is set to in the config file. This should be something within your ubbthreads directory. If it's a path outside of your ubbthreads installation then with safe mode being turned on the scripts won't be able to access it.