the error happens if the Testing server section of the Site Definition is not set correctly.
Edit the site definition, and goto the Servers section.
Edit the server setting that has the texting option checked.
Make sure that the Web URL is correct for the site.
If you use an FTP connection to the testing server, you may need to set the root directory to point to the root of your site.