Have re-installed file, changed to classic template and checked for blank lines.

Still have problems.

The main page will load ok once then create the error on refresh or product select.