Upgrade to Kirby 4

permalink

This afternoon I upgraded three of my sites using Kirby to the new version Kirby 4. It was super easy and nothing that bugged me really actually had to do with Kirby itself, but upgrading to a newer version of PHP here on my local machines.

I, for example, use Mamp on my Macs and older versions of PHP were installed locally. When I recognised that auto upgrading did not work, I tried to install Mamp manually by clicking on the upgrade function inside of Mamp. It threw an error stating “MAMP (PRO) can not be installed yet” and some details, that I followed, which did not help in the beginning. I then downloaded the Mamp installer, but it gave me the same error when starting the installation. For one of my Macs I had to rename the Mamp folder to get the installation started even, then rename it back to the original name and continue installing. Then I got the error “The installation cannot be continued”. After a bit of research I found out, that I had to kill all processes with the names “httpd” (there were around 20–30 running) and “mysqld” (also quite a few of them running). After killing those, I was finally able to install a newer version of Mamp with more options for new PHP versions also.

My first recommendation for the actual Kirby upgrade is to definitely check the Migration Guide for upgrading to v4. It has a lot of valuable information and if you read it before upgrading you avoid a few smaller pitfalls maybe and get smaller issues sorted easily.

Then I do recommend you to install new versions of PHP before upgrading Kirby. This makes sure you get rid of all problems that this PHP upgrade might cause, without you thinking that the Kirby upgrade has caused this error. I myself was running Kirby 3.9.8 and upgraded PHP to 8.2, which caused some minor issues that I needed to fix. After that, the Kirby Upgrade went extremely smooth on my neu•gierig website, as well as on the website for Karl’s and my new event Better by Design. For my blog here, I had to add PHP type hints, that have been added, but that was it.

I had issues to perform the upgrade directly from the Kirby 4 Panel, but removing the old .license file made it possible for me to add the new license in the Panel.

I am a massive fanboy of Kirby anyways, but this new upgrade feels so good already. Excited to work with it, especially using the panel a bit more.

If you want a demo of some of the new features, next to reading the Release Notes, you can watch the recording of the little release show that Bastian and I streamed last Thursday. Enjoy!