Fatal Error Message

Permalink
My site is legacy 5.6.1.2 and its creaking.

I keep getting this error message when someone types in
https://example.com/alotofnonsense...
where C5 can't find the collection path. I'm not sure why it's not passing to 404 or page_not_found.

Fatal error: Call to a member function getCollectionPath() on null in /home/defrae/public_html/concrete/themes/defrae/elements/header.php on line 15

Anyone got any ideas of can help in any way?

 
hutman replied on at Permalink Best Answer Reply
hutman
Does your /config/site_theme_paths.php have a definition so that the 404 page uses your theme?

If so, your theme is trying to take over the 404 page and something in the header doesn't work in that case.
DeFrae1 replied on at Permalink Reply
You have solved the mystery.

Thank you so much
DeFrae1 replied on at Permalink Reply
Am now getting an error here : PHP Fatal error: Call to undefined method Page::getCollectionLink() in /home/storm/sites/defrae-com/public/concrete/elements/header_required.php on line 126\n'