# Kirby 2.3.0 Beta

**URL:** <https://forum.getkirby.com/t/kirby-2-3-0-beta/3809>\
**Category:** Announcements\
**Created:** [April 8, 2016, 4:13pm UTC](https://forum.getkirby.com/t/kirby-2-3-0-beta/3809 "2016-04-08T16:13:54Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![bastianallgeier](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/bastianallgeier/32/7569_2.png) [@bastianallgeier](https://forum.getkirby.com/u/bastianallgeier)\
**Post date:** [April 8, 2016, 4:13pm UTC](https://forum.getkirby.com/t/kirby-2-3-0-beta/3809/1 "2016-04-08T16:13:55Z")

</div>

I already posted a teaser on Wednesday about [the upcoming beta for 2.3.0](https://getkirby.com/upcoming) on Twitter and I’m glad that I can now finally publish it \o/

It’s another big step ahead and I can’t wait to hear what you think about it.

We are actively looking for feedback and testers who throw this at their existing sites (on a local machine, please) to report all sorts of bugs before the final release.

Please use this thread for your comments and the Github issues for bug reports.

We prepared a quite massive [changelog](https://getkirby.com/changelog/kirby-2-3-0) for you to check out all the new stuff and we’ve also prepared a pretty fancy new “Upcoming…” page, which sums up everything for you: [https://getkirby.com/upcoming](https://getkirby.com/upcoming)

You will also find the first docs for the upcoming version on there. We overhauled the docs system in the background, to be able from now on, to mark changes with version numbers and give you a better overview what has changed and when.

We really hope you like it!!

---

<div class="post-metadata">

**Author:** ![bastianallgeier](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/bastianallgeier/32/7569_2.png) [@bastianallgeier](https://forum.getkirby.com/u/bastianallgeier)\
**Post date:** [April 8, 2016, 4:15pm UTC](https://forum.getkirby.com/t/kirby-2-3-0-beta/3809/2 "2016-04-08T16:15:18Z")

</div>

Pinned globally on April 8, 2016, 4:15pm UTC



---

<div class="post-metadata">

**Author:** ![gerardkd](https://avatars.discourse-cdn.com/v4/letter/g/e56c9b/32.png) [@gerardkd](https://forum.getkirby.com/u/gerardkd)\
**Post date:** [April 8, 2016, 4:21pm UTC](https://forum.getkirby.com/t/kirby-2-3-0-beta/3809/3 "2016-04-08T16:21:54Z")

</div>

Woohoooo! 😄

First thing that I’ve noticed: the link to the changelog doesn’t work on the /upcoming page:

```auto
http://localhost/kirby/sites/getkirby.com/changelog/kirby-2-3-0

```

Going to read the rest now 🙂

---

<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:** [April 8, 2016, 4:23pm UTC](https://forum.getkirby.com/t/kirby-2-3-0-beta/3809/4 "2016-04-08T16:23:00Z")

</div>

Let’s get to testing it, then 🙂, just pulled it into a current project.

---

<div class="post-metadata">

**Author:** ![bastianallgeier](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/bastianallgeier/32/7569_2.png) [@bastianallgeier](https://forum.getkirby.com/u/bastianallgeier)\
**Post date:** [April 8, 2016, 4:23pm UTC](https://forum.getkirby.com/t/kirby-2-3-0-beta/3809/5 "2016-04-08T16:23:29Z")

</div>

🙂 should be fixed now!

---

<div class="post-metadata">

**Author:** ![fvsch](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/fvsch/32/15908_2.png) [@fvsch](https://forum.getkirby.com/u/fvsch)\
**Post date:** [April 8, 2016, 5:17pm UTC](https://forum.getkirby.com/t/kirby-2-3-0-beta/3809/6 "2016-04-08T17:17:47Z")

</div>

The changelog (and some tweets) suggest in 2.3 one can add a template engine. I’d like to play around with this and try to plug in Twig. Any pointers on how to do that on the Kirby side?

(I know enough PHP and have used the Twig library so I’m good on this side. Just wondering if the changelog/tweets meant there are some hooks provided.)

---

<div class="post-metadata">

**Author:** ![lukasbestle](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lukasbestle/32/11437_2.png) [@lukasbestle](https://forum.getkirby.com/u/lukasbestle)\
**Post date:** [April 8, 2016, 5:31pm UTC](https://forum.getkirby.com/t/kirby-2-3-0-beta/3809/7 "2016-04-08T17:31:22Z")

</div>

The template engine is now a [component](https://github.com/getkirby/kirby/blob/develop/kirby/component/template.php). You can create your own class based on that class and register it using `kirby()->component('template', 'YourClassName')`.

---

<div class="post-metadata">

**Author:** ![luxlogica](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/luxlogica/32/437_2.png) [@luxlogica](https://forum.getkirby.com/u/luxlogica)\
**Post date:** [April 9, 2016, 7:01am UTC](https://forum.getkirby.com/t/kirby-2-3-0-beta/3809/8 "2016-04-09T07:01:44Z")

</div>

_sigh_ …still praying and hoping for **[page sections](https://forum.getkirby.com/t/add-explicit-support-for-multi-section-pages)**… 😢

---

<div class="post-metadata">

**Author:** ![simon2017](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/simon2017/32/7442_2.png) [@simon2017](https://forum.getkirby.com/u/simon2017)\
**Post date:** [April 9, 2016, 8:59am UTC](https://forum.getkirby.com/t/kirby-2-3-0-beta/3809/9 "2016-04-09T08:59:54Z")

</div>

i’m Happy to testing Kirby 2.3.0 BETA 😃 !! its really Cool 😊 thanks a lot to the Team For That Beautifull Work! 🙂

---

<div class="post-metadata">

**Author:** ![iksi](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/iksi/32/97_2.png) [@iksi](https://forum.getkirby.com/u/iksi)\
**Post date:** [April 9, 2016, 12:02pm UTC](https://forum.getkirby.com/t/kirby-2-3-0-beta/3809/10 "2016-04-09T12:02:06Z")

</div>

What a treat! Love the new handling of thumbs and the way they are stored now. And that the generation of thumbs is not blocking anymore is pure magic. Thanks a lot!

---

<div class="post-metadata">

**Author:** ![bastianallgeier](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/bastianallgeier/32/7569_2.png) [@bastianallgeier](https://forum.getkirby.com/u/bastianallgeier)\
**Post date:** [April 9, 2016, 12:14pm UTC](https://forum.getkirby.com/t/kirby-2-3-0-beta/3809/11 "2016-04-09T12:14:51Z")

</div>

Don’t be too sad about your favorite missing feature 🙂 We work on so much stuff in parallel and sometimes it’s really just important to wrap it up at some point and bundle it into a new release before moving on. The new component and registry structure will make new stuff so much easier for us and for you and I’m very confident, that we will soon have some stuff to make you happy 🙂

---

<div class="post-metadata">

**Author:** ![simon2017](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/simon2017/32/7442_2.png) [@simon2017](https://forum.getkirby.com/u/simon2017)\
**Post date:** [April 9, 2016, 12:23pm UTC](https://forum.getkirby.com/t/kirby-2-3-0-beta/3809/12 "2016-04-09T12:23:33Z")

</div>

@bastianallgeier I am really looking forward to it 😀 !

---

<div class="post-metadata">

**Author:** ![anon77445132](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@anon77445132](https://forum.getkirby.com/u/anon77445132)\
**Post date:** [April 10, 2016, 9:40am UTC](https://forum.getkirby.com/t/kirby-2-3-0-beta/3809/13 "2016-04-10T09:40:19Z")

</div>

I try this 2.3.0 beta (`kirby-nightly-2.3.0-20160408155818.zip`) on XAMPP (Apache/2.4.9 (Win32) PHP/5.4.27).

This code from [https://getkirby.com/docs/cheatsheet/file/thumb](https://getkirby.com/docs/cheatsheet/file/thumb)

```php
<?php if($user = $site->user()): ?>

<!-- some html -->

<?php if($avatar = $user->avatar()): ?>
          <?php echo $avatar->thumb([
                                      'width' => 100, 
                                      'height' => 100, 
                                      'quality' => 80
                                    ])->html() ?>
<?php endif; ?>

<!-- some html -->

<?php endif; ?>

```

fails with

> **Fatal error:** Call to undefined method Media::thumb() in **C:\xampp\htdocs\kirby\_basic\site\snippets\active\_user.php** on line **10**

if the loged in user has an avatar (\*.jpg).

* * *

[Added:]

If I `dump($avatar);` for the user `tester` I get:

```
Media Object
(
    [url] => http://127.0.0.1:61080/kirby_basic/assets/avatars/tester.png
    [root:protected] => C:\xampp\htdocs\kirby_basic\assets\avatars\tester.png
    [filename:protected] => tester.png
    [name:protected] => tester
    [extension:protected] => png
    [content:protected] => 
    [cache:protected] => Array
        (
        )

)
```

---

<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:** [April 10, 2016, 10:00am UTC](https://forum.getkirby.com/t/kirby-2-3-0-beta/3809/14 "2016-04-10T10:00:05Z")

</div>

Try to remove the `html()` method at the end. The `thumb()` method creates an image tag.

---

<div class="post-metadata">

**Author:** ![anon77445132](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@anon77445132](https://forum.getkirby.com/u/anon77445132)\
**Post date:** [April 10, 2016, 10:02am UTC](https://forum.getkirby.com/t/kirby-2-3-0-beta/3809/15 "2016-04-10T10:02:57Z")

</div>

Without `->html()` the error is the same.

---

<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:** [April 10, 2016, 10:21am UTC](https://forum.getkirby.com/t/kirby-2-3-0-beta/3809/16 "2016-04-10T10:21:12Z")

</div>

How have you defined `$user`?

---

<div class="post-metadata">

**Author:** ![anon77445132](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@anon77445132](https://forum.getkirby.com/u/anon77445132)\
**Post date:** [April 10, 2016, 10:22am UTC](https://forum.getkirby.com/t/kirby-2-3-0-beta/3809/17 "2016-04-10T10:22:46Z")

</div>

The first line of that snippet is:

```php
<?php if($user = $site->user()): ?>

```

---

<div class="post-metadata">

**Author:** ![fvsch](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/fvsch/32/15908_2.png) [@fvsch](https://forum.getkirby.com/u/fvsch)\
**Post date:** [April 10, 2016, 11:39am UTC](https://forum.getkirby.com/t/kirby-2-3-0-beta/3809/18 "2016-04-10T11:39:27Z")

</div>

Are you sure you want to assign to a variable inside a condition? If you do that the condition will always be true, so using `if(){}` seems useless here (but maybe that’s a PHP trick I’m not familiar with).

Edit: sorry, I was talking nonsense. 😅

---

<div class="post-metadata">

**Author:** ![lukasbestle](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lukasbestle/32/11437_2.png) [@lukasbestle](https://forum.getkirby.com/u/lukasbestle)\
**Post date:** [April 10, 2016, 2:32pm UTC](https://forum.getkirby.com/t/kirby-2-3-0-beta/3809/19 "2016-04-10T14:32:55Z")

</div>

No, it will only be true if the result of `$site->user()` evaluates to true.  
This is also the reason why you can do this in PHP:

```auto
$a = $b = $c = 'Something';

```

---

<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:** [April 10, 2016, 3:10pm UTC](https://forum.getkirby.com/t/kirby-2-3-0-beta/3809/20 "2016-04-10T15:10:03Z")

</div>

The `thumb()`method is not implemented for the Media class, but only for the file class. The user avatar, however, is an object of type Media, not of type File.

[Next page](https://forum.getkirby.com/t/kirby-2-3-0-beta/3809.md?page=2)
