Have a look in the index.php file for the tempate.  If it says

defined( ‘_VALID_MOS’ ) or die( …

and legacy mode is off, this will cause this error.

Change _VALID_MOS to _JEXEC and you should be ok to continue.

Hope this helps.