# Kirby migration from Kirby 2.4 to Kirby 4.1

**URL:** <https://forum.getkirby.com/t/kirby-migration-from-kirby-2-4-to-kirby-4-1/30777>\
**Category:** Questions\
**Created:** [February 13, 2024, 3:27am UTC](https://forum.getkirby.com/t/kirby-migration-from-kirby-2-4-to-kirby-4-1/30777 "2024-02-13T03:27:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gillesvauvarin](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/gillesvauvarin/32/2351_2.png) [@gillesvauvarin](https://forum.getkirby.com/u/gillesvauvarin)\
**Post date:** [February 13, 2024, 3:27am UTC](https://forum.getkirby.com/t/kirby-migration-from-kirby-2-4-to-kirby-4-1/30777/1 "2024-02-13T03:27:36Z")

</div>

Hello,

A customer contacted me to migrate his site from a Kirby 2.4 version to Kirby 4.1. His site seems to be running under PHP 7.4 according to his information.

I asked for a copy of the site to try to make it work locally under PHP 7.4 (I use DDEV).

I get errors because I have this kind of syntax in the PHP code of the site:

```auto
<? if ($i == 1): ?>
...
<? elseif($i > 1): ?>
...
<? else: ?>
...		
<? endif ?>

```

Are we agreed that this `<? ?>` syntax has never been valid in PHP, even on older versions, or am I mistaken?

I’m starting to have doubts because this code is supposed to be a copy of his site and it works online.

---

<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:** [February 13, 2024, 7:08am UTC](https://forum.getkirby.com/t/kirby-migration-from-kirby-2-4-to-kirby-4-1/30777/2 "2024-02-13T07:08:06Z")

</div>

You can enable these PHP short open tags in php.ini, but they are discouraged, and I’d replace them.

```auto
short_open_tag = On

```

---

<div class="post-metadata">

**Author:** ![gillesvauvarin](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/gillesvauvarin/32/2351_2.png) [@gillesvauvarin](https://forum.getkirby.com/u/gillesvauvarin)\
**Post date:** [February 13, 2024, 3:09pm UTC](https://forum.getkirby.com/t/kirby-migration-from-kirby-2-4-to-kirby-4-1/30777/3 "2024-02-13T15:09:05Z")

</div>

Thanks Sonja, I had never encountered this syntax and was not aware of this option in php.ini
