This issue only happens in production environment ,in my local development environment it works well.
Template error:
In template /home/william/kjmg/template
In order to help the people who may face the same issue.I need to answer this question.
I tried in my local machine it works well.But if I change a new database it occurs the same issue.
So I figure out that,this issue is caused by empty database!!! Just input something in your database it will work!