Weird error message instead of header nav

Permalink
Hey guys,

I had finally been able to learn to make a theme, I had been working on this theme on a instance of concrete 5 installed on the wamp server on my computer, I had a back-up of this theme. Couple of days ago I had to format the hard-drive, I re-installed wamp and concrete 5 and after I tried to activate this theme I had backed-up, it started showing this below mentioned error message in stead of bringing up the Header nav.

Error message:
generateNav(); global $c; if ($c->isEditMode()) { echo("

"); } else { echo("
"); } $nh = Loader::helper('navigation'); foreach($aBlocks as $ni) { $_c = $ni->getCollectionObject(); if (!$_c->getCollectionAttributeValue('exclude_nav')) { $thisLevel = $ni->getLevel(); if ($thisLevel > $lastLevel) { echo("\n\n
\n"); } else if ($thisLevel < $lastLevel) { for ($j = $thisLevel; $j < $lastLevel; $j++) { echo("\n\n\n"); } } if ($thisLevel == $lastLevel && $i >0) { echo "\n"; } $pageLink = false; if ($_c->getCollectionAttributeValue('replace_link_with_first_in_nav')) { $subPage = $_c->getFirstChild(); if ($subPage instanceof Page) { $pageLink = $nh->getLinkToCollection($subPage); } } if (!$pageLink) { $pageLink = $ni->getURL(); } echo '' . $ni->getName(); $lastLevel = $thisLevel; $i++; } } $thisLevel = 0; for ($i = $thisLevel; $i <= $lastLevel; $i++) { echo("
o "); } echo '
'; ?>

Help or any pointers to resolve this issue would be appreciated.

 
Mnkras replied on at Permalink Reply
Mnkras
are you putting in the php code to embed a header nav in the template or did you make an area called Header Nav?
Pritam replied on at Permalink Reply
I created an area called the header Nav within the theme i created.

Another thing i tried yesterday is , I installed xampp and installed an instance of C5 and the theme worked, but I still wonder why it does not work with wamp.

Thanks for your attempt to help.

Cheers,