I’ve created a page called ‘case-studies’ and getting the following error:
“Fatal error: Call to a member function isErrorPage() on boolean in /var/sites/domain.co.uk/public_html/kirby/kirby/kirby.php on line 333”
Something to do with how i use dashes, but not sure what is the correct method.
My content folder is called ‘case-studies’ and inside is ‘case-studies.txt’
Thanks so much for the reply and Im sorry for the lateness in mine. I tried installed the start kit and working from scratch, but everything works without a dash, but when I add the dash it stops working!
If I enable debugging, I’m told the issue is with this line from a snippe (the snippet basically loops in existing children, and is a duplicate of the showcase snippet:
Variables in PHP are represented by a dollar sign followed by the name of the variable. The variable name is case-sensitive.
Variable names follow the same rules as other labels in PHP. A valid variable name starts with a letter or underscore, followed by any number of letters, numbers, or underscores. As a regular expression, it would be expressed thus: '[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*' http://www.php.net/manual/en/language.variables.basics.php
So, no dashes, sorry
You can use dashes in folder names, of course. In fact, Kirby creates folders with dashes, anyway, if you use multi-word titles.