# Kirbytext not working

**URL:** https://forum.getkirby.com/t/kirbytext-not-working/10357
**Category:** Questions
**Tags:** v2
**Created:** [May 7, 2018, 12:30pm UTC](https://forum.getkirby.com/t/kirbytext-not-working/10357 "2018-05-07T12:30:37Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![kvyb](https://avatars.discourse-cdn.com/v4/letter/k/8c91f0/32.png) [@kvyb](https://forum.getkirby.com/u/kvyb)
#### Post date: [May 7, 2018, 12:30pm UTC](https://forum.getkirby.com/t/kirbytext-not-working/10357/1 "2018-05-07T12:30:37Z")

</div>

I am having trouble making markdown render with kirbytext on my pages. For example:

when I type #Hello world in the admin panel for that page, it render on the page as #Hello world in plain text.

In my template I have: \<?= $page-\>Linkto()-\>kirbyText() ?\>  
and in the blueprint:

linkto:  
label: Linkto  
type: markdown

I also have c::set(‘markdown.extra’, true);

I wondered if it was due to \<?= $page-\>Linkto()-\>kirbyText() ?\> being located within an html element, but it seems to not be a problem with markdown.extra .  
Any help would be greatly appreciated, as it seems a simple thing, yet I am not able to make it work.

---

<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 7, 2018, 12:33pm UTC](https://forum.getkirby.com/t/kirbytext-not-working/10357/2 "2018-05-07T12:33:10Z")

</div>

Should be

```auto
<?= $page->Linkto()->kirbytext() ?>

```

Method names are case sensitive.

---

<div class="post-metadata">

### Author: ![kvyb](https://avatars.discourse-cdn.com/v4/letter/k/8c91f0/32.png) [@kvyb](https://forum.getkirby.com/u/kvyb)
#### Post date: [May 7, 2018, 12:35pm UTC](https://forum.getkirby.com/t/kirbytext-not-working/10357/3 "2018-05-07T12:35:05Z")

</div>

> [@texnixe](#):
>
> \<?= $page-\>Linkto()-\>kirbytext() ?\>

It gives me an error when I write it like in your case:

This page is currently offline due to an unexpected error. We are very sorry for the inconvenience and will fix it as soon as possible.

Advice for developers and administrators:  
Enable debug mode to get further information about the error.

This is the error it gives me:  
Method Kirbytext::\_\_toString() must not throw an exception, caught Error: Class ‘DOMDocument’ not found

at 0  
Whoops\Exception\ErrorException  
…/helpers.php0

---

<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 7, 2018, 12:39pm UTC](https://forum.getkirby.com/t/kirbytext-not-working/10357/4 "2018-05-07T12:39:38Z")

</div>

Ok, let’s start with the debugging part. In. your config.php, add this line:

```auto
c::set('debug', true);

```

Then you should get a nice error message instead of the meaningless error page.

Edit: see this post [Error: Class 'DOMDocument' not found](https://forum.getkirby.com/t/error-class-domdocument-not-found/6527)

---

<div class="post-metadata">

### Author: ![kvyb](https://avatars.discourse-cdn.com/v4/letter/k/8c91f0/32.png) [@kvyb](https://forum.getkirby.com/u/kvyb)
#### Post date: [May 7, 2018, 12:41pm UTC](https://forum.getkirby.com/t/kirbytext-not-working/10357/5 "2018-05-07T12:41:26Z")

</div>

> [@kvyb](#):
>
> Method Kirbytext::\_\_toString() must not throw an exception, caught Error: Class ‘DOMDocument’ not found

Ok, I had to install php xml and restart apache - sudo apt-get install php-xml

---

<div class="post-metadata">

### Author: ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)
#### Post date: [February 6, 2025, 5:28pm UTC](https://forum.getkirby.com/t/kirbytext-not-working/10357/6 "2025-02-06T17:28:17Z")

</div>


