# PHP Fatal error: Cannot redeclare go()

**URL:** <https://forum.getkirby.com/t/php-fatal-error-cannot-redeclare-go/22572>\
**Category:** Questions\
**Tags:** v3\
**Created:** [June 11, 2021, 11:19am UTC](https://forum.getkirby.com/t/php-fatal-error-cannot-redeclare-go/22572 "2021-06-11T11:19:12Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![waffl](https://avatars.discourse-cdn.com/v4/letter/w/3d9bf3/32.png) [@waffl](https://forum.getkirby.com/u/waffl)\
**Post date:** [June 11, 2021, 11:19am UTC](https://forum.getkirby.com/t/php-fatal-error-cannot-redeclare-go/22572/1 "2021-06-11T11:19:12Z")

</div>

In trying to deploy a fresh starterkit install to a server, I’m running into the problem:

> ‘PHP message: PHP Fatal error: Cannot redeclare go() in /[redacted]/kirby/config/helpers.php on line 222’

The starterkit is the latest release, with `Kirby 3.5.6` and `PHP 7.4.20`.

@texnixe as a quick sidenote, is it preferable if I write these things in the forum or should they be on the github issue tracker? I’m not sure it’s a bug or a misconfiguration.

---

<div class="post-metadata">

**Author:** ![pixelijn](https://avatars.discourse-cdn.com/v4/letter/p/7ab992/32.png) [@pixelijn](https://forum.getkirby.com/u/pixelijn)\
**Post date:** [June 11, 2021, 11:33am UTC](https://forum.getkirby.com/t/php-fatal-error-cannot-redeclare-go/22572/2 "2021-06-11T11:33:50Z")

</div>

That message means that when Kirby tries to load the helpers, the `go()` function is already defined in another place. Are you loading any other libraries?

---

<div class="post-metadata">

**Author:** ![waffl](https://avatars.discourse-cdn.com/v4/letter/w/3d9bf3/32.png) [@waffl](https://forum.getkirby.com/u/waffl)\
**Post date:** [June 23, 2021, 10:09am UTC](https://forum.getkirby.com/t/php-fatal-error-cannot-redeclare-go/22572/3 "2021-06-23T10:09:37Z")

</div>

Thank you, I am on runcloud and their PHP setup defined `go()` through `swoole`. I asked them to deactivate it and it works now.

---

<div class="post-metadata">

**Author:** ![RobertC](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/robertc/32/13576_2.png) [@RobertC](https://forum.getkirby.com/u/RobertC)\
**Post date:** [May 20, 2024, 8:19pm UTC](https://forum.getkirby.com/t/php-fatal-error-cannot-redeclare-go/22572/4 "2024-05-20T20:19:24Z")

</div>

Hello @texnixe, do you know if there is a way to make Kirby work with swoole? I need to setup a server through Forge and they use swoole. Even if I uninstall it it will be reinstalled when updating PHP. Any help would be much appreciated! 🙂

---

<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:** [May 20, 2024, 8:34pm UTC](https://forum.getkirby.com/t/php-fatal-error-cannot-redeclare-go/22572/5 "2024-05-20T20:34:41Z")

</div>

You should be able to disable the go helper in your index.php:

```auto
define('KIRBY_HELPER_GO, false);

```

---

<div class="post-metadata">

**Author:** ![RobertC](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/robertc/32/13576_2.png) [@RobertC](https://forum.getkirby.com/u/RobertC)\
**Post date:** [May 21, 2024, 7:25pm UTC](https://forum.getkirby.com/t/php-fatal-error-cannot-redeclare-go/22572/6 "2024-05-21T19:25:56Z")

</div>

Awesome, thanks @texnixe. You should probably update your docs 🙂 [Installation issues | Kirby CMS](https://getkirby.com/docs/guide/troubleshooting/installation#php-cannot-redeclare-error)

---

<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:** [May 21, 2024, 8:21pm UTC](https://forum.getkirby.com/t/php-fatal-error-cannot-redeclare-go/22572/7 "2024-05-21T20:21:16Z")

</div>

Updated.

---

<div class="post-metadata">

**Author:** ![RobertC](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/robertc/32/13576_2.png) [@RobertC](https://forum.getkirby.com/u/RobertC)\
**Post date:** [May 21, 2024, 8:32pm UTC](https://forum.getkirby.com/t/php-fatal-error-cannot-redeclare-go/22572/8 "2024-05-21T20:32:21Z")

</div>

Well that was quick 🚀

---

<div class="post-metadata">

**Author:** ![waffl](https://avatars.discourse-cdn.com/v4/letter/w/3d9bf3/32.png) [@waffl](https://forum.getkirby.com/u/waffl)\
**Post date:** [August 16, 2024, 11:51pm UTC](https://forum.getkirby.com/t/php-fatal-error-cannot-redeclare-go/22572/9 "2024-08-16T23:51:51Z")

</div>

Obvious but just in case someone comes across this it just needs the closing ’ after KIRBY\_HELPER\_GO:

`define('KIRBY_HELPER_GO', false);`
