# Blocks HTML rendering not working

**URL:** <https://forum.getkirby.com/t/blocks-html-rendering-not-working/20484>\
**Category:** Questions\
**Tags:** v3\
**Created:** [December 22, 2020, 1:42pm UTC](https://forum.getkirby.com/t/blocks-html-rendering-not-working/20484 "2020-12-22T13:42:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![img2001](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/img2001/32/9646_2.png) [@img2001](https://forum.getkirby.com/u/img2001)\
**Post date:** [December 22, 2020, 1:42pm UTC](https://forum.getkirby.com/t/blocks-html-rendering-not-working/20484/1 "2020-12-22T13:42:15Z")

</div>

Hello

I am not sure how to render the blocks properly.

My test blueprint was like this

```auto
fields:
  blocktest:
    label: Blocks
    type: blocks

```

According to the [default snippet](https://getkirby.com/docs/reference/panel/blocks/text#default-snippet), I added some paragraph and in my template I am trying to render this by

```auto
<?php foreach ($page->blocktest()->toBlocks() as $block) : ?>
  <div id="<?= $block->id() ?>" class="block block-type-<?= $block->type() ?>">
    Type: <?= $block->type() // this outputs "text" ?><br>
    Content: <?= $block->text() ?>
  </div>
<?php endforeach ?>

```

Somehow, I am getting an error: `Call to undefined method Kirby\Editor\Block::text()`

What am I doing wrong?

---

<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:** [December 22, 2020, 2:02pm UTC](https://forum.getkirby.com/t/blocks-html-rendering-not-working/20484/2 "2020-12-22T14:02:34Z")

</div>

Is the Editor plugin still present? You should remove it when using blocks

---

<div class="post-metadata">

**Author:** ![img2001](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/img2001/32/9646_2.png) [@img2001](https://forum.getkirby.com/u/img2001)\
**Post date:** [December 22, 2020, 2:03pm UTC](https://forum.getkirby.com/t/blocks-html-rendering-not-working/20484/3 "2020-12-22T14:03:38Z")

</div>

That was the issue – I’ve updated from 3.4 !

Thanks!

---

<div class="post-metadata">

**Author:** ![isaactopo](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/isaactopo/32/60_2.png) [@isaactopo](https://forum.getkirby.com/u/isaactopo)\
**Post date:** [February 1, 2021, 7:29pm UTC](https://forum.getkirby.com/t/blocks-html-rendering-not-working/20484/4 "2021-02-01T19:29:53Z")

</div>

OMG, thanks!  
I was desperate.
