In our staging area, I added a new extension and the developers have had to do some work to get a few features working properly. Now that the backend features are working properly, I went to load the product on the frontend and got this error:
Fatal error: Cannot redeclare formatHex() (previously declared in ~/app/design/frontend/neighborhood/default/template/notificationbar/notificationbar-header.phtml:19) in ~/app/design/frontend/neighborhood/default/template/notificationbar/notificationbar-header.phtml on line 21
The code sitting between lines 19 - 21 looks like this:
function formatHex($value) {
return "#" . str_replace('#', '', $value);
}
If I disable the extension completely, flush the cache, then reload the page - I'm given a completely different error with a SQL call and files relating to the new extension.
Any pushes in the right direction are appreciated. I have already tried removing lines 19-21 - the page will load but only the "notificationbar" area, everywhere after is blank.