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

**URL:** <https://forum.getkirby.com/t/production-site-fails-to-load-when-changing-php-version-from-8-1-to-anything-newer/35006>\
**Category:** Questions\
**Tags:** v5\
**Created:** [November 24, 2025, 6:05pm UTC](https://forum.getkirby.com/t/production-site-fails-to-load-when-changing-php-version-from-8-1-to-anything-newer/35006 "2025-11-24T18:05:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![radiantm3](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/radiantm3/32/15688_2.png) [@radiantm3](https://forum.getkirby.com/u/radiantm3)\
**Post date:** [November 24, 2025, 6:05pm UTC](https://forum.getkirby.com/t/production-site-fails-to-load-when-changing-php-version-from-8-1-to-anything-newer/35006/1 "2025-11-24T18:05:23Z")

</div>

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:

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/3X/d/0/d0a3efdc9988a00bdb155ede196fc24a91d98df7.png)

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](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:

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

```

On my dev environment I’m running

```auto
<!--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.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [November 24, 2025, 6:22pm UTC](https://forum.getkirby.com/t/production-site-fails-to-load-when-changing-php-version-from-8-1-to-anything-newer/35006/2 "2025-11-24T18:22:19Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![radiantm3](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/radiantm3/32/15688_2.png) [@radiantm3](https://forum.getkirby.com/u/radiantm3)\
**Post date:** [November 24, 2025, 6:31pm UTC](https://forum.getkirby.com/t/production-site-fails-to-load-when-changing-php-version-from-8-1-to-anything-newer/35006/3 "2025-11-24T18:31:02Z")

</div>

Thanks. So I did that and am getting this:

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/3X/3/6/36e1b09c86e8f41ff4ceb715ebd722c8b1204e5e.png)

line 43 of my home template is:

```auto
<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?

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [November 24, 2025, 6:58pm UTC](https://forum.getkirby.com/t/production-site-fails-to-load-when-changing-php-version-from-8-1-to-anything-newer/35006/4 "2025-11-24T18:58:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![radiantm3](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/radiantm3/32/15688_2.png) [@radiantm3](https://forum.getkirby.com/u/radiantm3)\
**Post date:** [November 24, 2025, 8:35pm UTC](https://forum.getkirby.com/t/production-site-fails-to-load-when-changing-php-version-from-8-1-to-anything-newer/35006/5 "2025-11-24T20:35:32Z")

</div>

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