# Cannot redeclare callFieldAPI()

**URL:** <https://forum.getkirby.com/t/cannot-redeclare-callfieldapi/21430>\
**Category:** Questions\
**Tags:** v3\
**Created:** [March 2, 2021, 9:37am UTC](https://forum.getkirby.com/t/cannot-redeclare-callfieldapi/21430 "2021-03-02T09:37:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![plagasul](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/plagasul/32/4199_2.png) [@plagasul](https://forum.getkirby.com/u/plagasul)\
**Post date:** [March 2, 2021, 9:37am UTC](https://forum.getkirby.com/t/cannot-redeclare-callfieldapi/21430/1 "2021-03-02T09:37:03Z")

</div>

Hello,

After upgrading a site that uses the Kirby builder plugin to the latest Kirby version , on the staging server I am getting this error:

```auto
Cannot redeclare callFieldAPI() (previously declared in /htdocs/site/plugins/kirby-builder/index.php:17)

```

…this was running on a pre-blocks version. Should I understand that blocks and Kirby builder can’t run side to side? or does this mean the builder plugin is built-in and I should remove it from the plugins folder? or perhaps something else?

I was under the impression that the blocks and the builder could co-exist side by side for now.

Thanks!

---

<div class="post-metadata">

**Author:** ![ahmetbora](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/ahmetbora/32/11671_2.png) [@ahmetbora](https://forum.getkirby.com/u/ahmetbora)\
**Post date:** [March 2, 2021, 9:49am UTC](https://forum.getkirby.com/t/cannot-redeclare-callfieldapi/21430/2 "2021-03-02T09:49:17Z")

</div>

The builder plugin is not compatible with Kirby 3.5+

---

<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:** [March 2, 2021, 9:51am UTC](https://forum.getkirby.com/t/cannot-redeclare-callfieldapi/21430/3 "2021-03-02T09:51:27Z")

</div>

As far as I can see, a function `callFieldAPI()` is nowhere used in the Kirby core.

I think only the Editor plugin is not compatible, the Builder plugin should still work.

@ahmetbora Is that for sure? I thought it was only the Editor.

---

<div class="post-metadata">

**Author:** ![ahmetbora](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/ahmetbora/32/11671_2.png) [@ahmetbora](https://forum.getkirby.com/u/ahmetbora)\
**Post date:** [March 2, 2021, 9:59am UTC](https://forum.getkirby.com/t/cannot-redeclare-callfieldapi/21430/4 "2021-03-02T09:59:11Z")

</div>

Hmm, I know so, but now I’m in doubt 😅

@texnixe reference:

> [@Kirby 3.5 Layout-Field in Builder Element](https://forum.getkirby.com/t/kirby-3-5-layout-field-in-builder-element/20612/2):
>
> Hey, welcome to the forum. The builder plugin is not compatible with Kirby 3.5, so no. Kirby 3.5’s blocks/layout field is intended to replace the builder plugin, to finally have it in the core. The Builder plugin will no longer see any development. You can still continue to use it in Kirby versions prior to 3.5, though.

---

<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:** [March 2, 2021, 10:01am UTC](https://forum.getkirby.com/t/cannot-redeclare-callfieldapi/21430/5 "2021-03-02T10:01:37Z")

</div>

In any case, the new blocks and layout fields are supposed to replace the Builder and Editor plugins.

---

<div class="post-metadata">

**Author:** ![plagasul](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/plagasul/32/4199_2.png) [@plagasul](https://forum.getkirby.com/u/plagasul)\
**Post date:** [March 2, 2021, 10:03am UTC](https://forum.getkirby.com/t/cannot-redeclare-callfieldapi/21430/6 "2021-03-02T10:03:07Z")

</div>

Hmm, I do not have the editor plugin installed on this site.

I do have the builder.

Surprisingly the error happens only on the staging server, but not on local, I wonder if it is related to content.

Is there any guide for a painless migration from the builder to , say, blocks ?

Thank you

---

<div class="post-metadata">

**Author:** ![plagasul](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/plagasul/32/4199_2.png) [@plagasul](https://forum.getkirby.com/u/plagasul)\
**Post date:** [March 2, 2021, 10:08am UTC](https://forum.getkirby.com/t/cannot-redeclare-callfieldapi/21430/7 "2021-03-02T10:08:31Z")

</div>

Found the migration guide: [Blocks | Kirby](https://getkirby.com/docs/reference/panel/fields/blocks#builder-migration)

---

<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:** [March 2, 2021, 10:11am UTC](https://forum.getkirby.com/t/cannot-redeclare-callfieldapi/21430/8 "2021-03-02T10:11:31Z")

</div>

As long as you don’t need previews, migration is really straightforward.

What you should probably consider is falling back to the default blocks where possible (i.e. rename your block types and adapt the blueprints). Then you can still use the default previews. Might be particularly interesting for galleries.
