# Cannot call get with undefined key / Post.get is not a function

**URL:** <https://meta.discourse.org/t/cannot-call-get-with-undefined-key-post-get-is-not-a-function/45160>\
**Category:** Development\
**Created:** [2 ביוני,‏ 2016,‏ 9:23pm UTC](https://meta.discourse.org/t/cannot-call-get-with-undefined-key-post-get-is-not-a-function/45160 "2016-06-02T21:23:00Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![ivanrlio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ivanrlio/32/48497_2.png) [@ivanrlio](https://meta.discourse.org/u/ivanrlio)\
**Post date:** [2 ביוני,‏ 2016,‏ 9:23pm UTC](https://meta.discourse.org/t/cannot-call-get-with-undefined-key-post-get-is-not-a-function/45160/1 "2016-06-02T21:23:00Z")

</div>

On my local machine I am using the latest version of Discourse. When I attempt to add a reply `within a topic`, I get the following error message:

 ![](https://global.discourse-cdn.com/meta/original/3X/5/0/50eed8609c5cf9517d8c7e3da2b43231d035d6b8.png)

The `post.get` error occurs in this bit of code:

 ![](https://global.discourse-cdn.com/meta/original/3X/3/6/36b342b9d0f920e4d0d360452f173d18138a2564.png)

I did a `console.log(post)` to see what it contained and the result was an object that has a post number of `(...)` . EDIT: Clicking on (…) yielded 1.

Additionally, when I try to add a `New Topic` (within the pipeline or in a topic), I get the error:

 ![](https://global.discourse-cdn.com/meta/original/3X/9/3/931070a6d37ece34915b44ff606e02a645539796.png)

Would anyone know how to rectify this? Thanks!

---

_[View the full topic](https://meta.discourse.org/t/cannot-call-get-with-undefined-key-post-get-is-not-a-function/45160)._
