Hello,
Suddenly the front end of my Kirby page has been taken over by the âKirby CMS Debuggerâ page with code.
Here is the page:
http://www.anonimagroup.org/
I am not sure how to get it back to the regular interface(the backend looks fine)
Any help is most appreciated!!!
Best,
Corin
There are two things:
- You have a âdebugâ set to
true
in the site/config/config.php
file
- thereâs an error on your site: Youâre trying to access page âexhibitionsâ to get its title, but itâs drafted or deleted, so the page is
null
when you try to get its title()
If you turn off the debug option, youâll see a message like âThereâs an error on your page. Turn on debugger or fix itâ or something to that effect. (which is better on live sites anyway, so you donât leak your internal code to the internet in case of error)
The other thing is fixing the bug: put the whole code under something like if ($exhibitionsPage = page('exhibitions'))
, so you donât try to access it if it doesnât exist, or many other options you have when programming.