Production site fails to load when changing PHP version from 8.1 to anything newer

My host is Godaddy (also a mediatemple transplant) and my Kirby site is currently running on php 8.1. They are going to charge me for support if I don’t move to a newer version of PHP, but every time I choose any newer version, my site won’t load and I get the following error:

On my local test server, I can switch to any of the major PHP versions (8.1-8.4) and the site runs fine. I’m assuming this is some go daddy server configuration issue causing this? I have no idea where to begin to debug this issue. I want to enable the debug menu on my production server to see what is going on, but I’m always told that’s a big security risk. Any advice? Thanks!

My website is https://markjardine.com just in case it helps for whatever reason. I have the Kirby version and PHP version in a comment at the top of the source code:

<!--Kirby: 4.7.2 PHP: 8.1.33-->

On my dev environment I’m running

<!--Kirby: 5.1.4 PHP: 8.2.27-->

with no issues and was hoping to get my production environment updated to the latest. I tried upgrading my production to the latest version of Kirby as well, but the problem still exists. So I rolled back for now to keep my site running.

The first step would be to either (temporarily) enable debug mode, so that you can see what the error is, or check the PHP error logs on your server.

The whoops message you are currently seeing has nothing to do with a wrong PHP version, at least not regarding the Kirby version.

Thanks. So I did that and am getting this:

line 43 of my home template is:

<p class="author">Written by <?= $item->author() ?> on <?= $item->date()->toDate('MMMM d, Y') ?></p>

Just don’t understand why this works in php 8.1 and not later? Something deprecated or am I just doing something wrong?

Make sure that the intl PHP extension is enabled for PHP 8.4 (or whatever you changed to) in cPanel.

1 Like

Thank you so much! I learned a lot (of simple things) because of this issue and your help. :folded_hands: