I won’t past the entire code here as it’s quite a long template with a bunch of snippets but I have just been through looking for ‘filter’ and there are no instances of that function in the template or snippets used.
The closest think I can find is use of $pages->findByURI within the menu snippet. Might that also be an issue?
However, this line shouldn’t really throw an error, because the error control operator @ is used here.
So what does it mean that this error is shown “at the bottom of the page”? Have you set error handling in your php ini or your scripts or is debugging enabled? Are you using Xdebug with the scream configuration enabled? Or the PECL scream extension?
I have made sure error reporting is off in config:
// Error Logging
c::set('debug', false);
Interesting you should mention error logging as I have noted that the copy on my localhost runs OK. I also know the client has had to ask the hosting company to diagnose a 500 error at the end of last week and it makes me wonder if the hosting company have left error reporting on?
On investigation this one was nit a Kirby problem but a hosting support problem. The hosting company had been investigating a 500 error a few days previously and had left error reporting on. Thankfully confessed it was their fault when we asked them and all is now solved.
Phew!
thanks again fro you help and happy Christmas everyone