Error message on URL call
HI,
I use kirby 2 and I got the error
Fatal error: Call to a member function code() on a non-object in /homepages/17/d39311005/htdocs/sevendays/kirby/kirby.php on line 526
if I call the example.com/sitemap.xml
Do you know what I'm doing wrong?
Cheers
It doesn't seem to work with multilang enabled. I haven't found the time to look further into it.
Related line: https://github.com/getkirby/kirby/blob/master/kirby.php#L526
Hi, yes I use a multilanguage site.
:+1: for multilanguage support - i think it will need a sitemap per language like sitemap.en.xml and sitemap.da.xml but im not entirely sure what Google requires nowadays.
Hi, I can confirm that the problem occurs with multi language support enabled.
I'm not able to provide a fix atm, but:
- The error seems to come from
kirby()->routes(...)and not the action inside. I haven't found any spec how theroutesmethod must be used differently, when multilanguage is turned on. - In case multi language is turned on, the plugin should produce an output as it is described here: https://support.google.com/webmasters/answer/2620865?hl=en
Maybe that helps someone...