Sudden localhost error: Change the PHP version to one supported by your version of Kirby

Hi,

I encountered a sudden error with my localhost Kirby installation. The only thing that changed within the past two days is I installed something for Minecraft (FFmpeg for Replay Mod using brew install ffmpeg).

Then today, when I went to work on my localhost Kirby installation again, I got the following message:

Error

This page is currently offline. We are very sorry for the inconvenience and will fix it as soon as possible.

Advice for developers and administrators:
Change the PHP version to one supported by your version of Kirby 

I checked my PHP version and it is:

PHP 8.4.1 (cli) (built: Nov 20 2024 09:48:35) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.4.1, Copyright (c) Zend Technologies
    with Zend OPcache v8.4.1, Copyright (c), by Zend Technologies

I don’t remember what it was before this. Should I homebrew it back to 8.2 or 8.3? I’m using Kirby 4.5.

Thanks!

I would think that during your interactions with brew, you accidentally also upgraded your PHP version to 8.4. Kirby doesn’t support PHP 8.4 yet (it will with Kirby 4.6 and Kirby 5, but those will take a little bit still).

So yes, downgrading your PHP version to 8.3 should get your Kirby setup running again.

1 Like