# Strange PHP error

**URL:** <https://forum.getkirby.com/t/strange-php-error/3000>\
**Category:** Questions\
**Tags:** v2\
**Created:** [January 10, 2016, 1:35am UTC](https://forum.getkirby.com/t/strange-php-error/3000 "2016-01-10T01:35:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![elmnt](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/elmnt/32/1524_2.png) [@elmnt](https://forum.getkirby.com/u/elmnt)\
**Post date:** [January 10, 2016, 1:35am UTC](https://forum.getkirby.com/t/strange-php-error/3000/1 "2016-01-10T01:35:12Z")

</div>

I don’t know where else to post this. I’m getting this error:

Array (  
[type] =\> 8  
[message] =\> Undefined offset: 2  
[file] =\> /Users/greg/gitrepos/elmnt/kirby/toolkit/lib/collection.php  
[line] =\> 259  
)

And this is the line in my default.php template that throws the error, as opposed to just rendering the kirbytext:

\<?php echo $page-\>text()-\>kirbytext() ?\>

So no text shows up, but I get that error, having added print\_r(error\_get\_last()); in my footer.

---

<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:** [January 10, 2016, 1:44am UTC](https://forum.getkirby.com/t/strange-php-error/3000/2 "2016-01-10T01:44:49Z")

</div>

Could you post the complete code?

---

<div class="post-metadata">

**Author:** ![elmnt](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/elmnt/32/1524_2.png) [@elmnt](https://forum.getkirby.com/u/elmnt)\
**Post date:** [January 10, 2016, 1:50am UTC](https://forum.getkirby.com/t/strange-php-error/3000/3 "2016-01-10T01:50:01Z")

</div>

Yikes, just found the issue. I use textexpander snippets for (among many things) a lot of basic markdown for my content. I hit the wrong snippet for a separator, so had EIGHT dashes instead of FOUR between text blocks.

Wow. Ridiculous, haha. Thanks anyway.

---

<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:03pm UTC](https://forum.getkirby.com/t/strange-php-error/3000/4 "2025-02-06T17:03:49Z")

</div>

Archived on February 6, 2025, 5:03pm UTC


