Try a quick execution test, to see if the page loads without line 1297. In other words, find:
PHP Code:
eval("\$customfields .= \"".gettemplate
***************line 1297*******************
("getinfo_customfields")."\";");
***************line 1297*******************
}
And remove it, then save and run to see if it loads. This will zero in if that particular area is the problem.