Whoops! Looks like setting the environment broke Heroku. Reverting that and removing the returntolms link on the error page, which may be the culprit for errors.