This is usually caused by failing to upgrade all of Textpattern’s files. Make sure you don’t forget the index.php file that lives at the Textpattern root.