Hi. Maybe you can give me some pointers on how to solve this issue…
An old site I developed recently started to give me this error when accessing some pages on the panel
“Cannot use “parent” when current class scope has no parent” error.
I’ve tried to run the site locally, and I don’t have the issue.
I have Kirby version: 3.1.1
And both locally and on the server I have PHP version: 7.4
Hm, support for PHP 7.4 was added with Kirby 3.3.2. I would assume that this causes the error, even though it’s a bit weird that it doesn’t happened locally. But same error was reported here:
Local websites error - #11 by Fleix and was also due to premature update to PHP 7.4.
For Kirby PHP support matrix, see
Leaving the PHP support history for Kirby 3 here for reference
3.0.0 Drop support < PHP 7.1, support PHP 7.1 - 7.3
3.3.2 Add support for PHP 7.4
3.4.0 Drop support for 7.1, support PHP 7.2 - 7.4
3.5.0 Drop support for 7.2 , add support for PHP 8.0
3.6.0 Drop support for 7.3
3.6.1 Add support for PHP 8.1
3.8.0 Drop support for PHP 7.4, support PHP 8.0 - 8.1
3.9.0 Add support for PHP 8.2
Thanks! Ok, I’ll try updating Kirby then.
I’ve downloaded Kirby 3.3.2 from GitHub and replaced the old kirby folder in my local server folder. But when I do so, the website and the panel don’t render at all (empty body).
To check if there was any mistake in how I upgraded Kirby, I’ve tried with downloading Kirby 3.1.1 also from GitHub and replacing in in my local server folder and that works.
Any hints on what I could do?
You always have to clear the media folder when you update to a new version, also make sure the cache is cleared both in the cache folder and in the browser.
I cannot check this now, but major upgrades (from 3.1 to 3.2 etc.) might also have breaking changes and might also require updates of plugins and/or your code.