# Uncaught TypeError: Cannot read property 'val' of undefined Url

**URL:** <https://meta.discourse.org/t/uncaught-typeerror-cannot-read-property-val-of-undefined-url/115846>\
**Category:** Self-hosting\
**Created:** [April 24, 2019, 12:45pm UTC](https://meta.discourse.org/t/uncaught-typeerror-cannot-read-property-val-of-undefined-url/115846 "2019-04-24T12:45:35Z")\
**Posts on this page:** 2\
**Page:** 1

## AI-generated summary

[eextra](/t/-/115846/1) reports an `Uncaught TypeError: Cannot read property 'val' of undefined` occurring on a fresh Discourse test installation with only the mail-receiver plugin enabled. The user provided a detailed JavaScript stack trace indicating the error originates in `application.js` and `ember_jquery.js`, specifically within the `_addText` and `save` methods. They are seeking information on what this specific error implies. In response, [sam](/t/-/115846/2) advises that interpreting the backtrace alone is difficult and asks for the specific user actions that triggered the error to better diagnose the issue.

<div class="post-metadata">

**Author:** ![eextra](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eextra/32/170266_2.png) [@eextra](https://meta.discourse.org/u/eextra)\
**Post date:** [April 24, 2019, 12:45pm UTC](https://meta.discourse.org/t/uncaught-typeerror-cannot-read-property-val-of-undefined-url/115846/1 "2019-04-24T12:45:35Z")

</div>

tries to befriend the www.domain/logs and the console.  
Fresh test installation without any plugins or themes. (only mail-receiver installed)  
I would like to ask for information on what such mistakes mean.

Uncaught TypeError: Cannot read property ‘val’ of undefined Url: [https://testdomain.com/assets/application-60334d15fb5a086905421f955eea663f14ee546972b02cf4b42e67262b38e79d.js](https://testdomain.com/assets/application-60334d15fb5a086905421f955eea663f14ee546972b02cf4b42e67262b38e79d.js) Line: 16 Column: 103

```
   TypeError: Cannot read property 'val' of undefined
    at n._addText (https://mydomain.com/assets/application-60334d15fb5a086905421f955eea663f14ee546972b02cf4b42e67262b38e79d.js:16:10384)
    at Object.addText (https://mydomain.com/assets/application-60334d15fb5a086905421f955eea663f14ee546972b02cf4b42e67262b38e79d.js:16:12686)
    at n.save (https://mydomain.com/assets/plugin-fa2cce056b345c5636de1b258d73669f95220565e64836ae387af0f4b269171a.js:1:12061)
    at e._join (https://mydomain.com/assets/ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:16:28574)
    at e.join (https://mydomain.com/assets/ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:16:25465)
    at c (https://mydomain.com/assets/ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:12:9353)
    at https://mydomain.com/assets/ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:4:16778
    at f (https://mydomain.com/assets/ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:11:26997)
    at https://mydomain.com/assets/ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:4:16723
    at n.click (https://mydomain.com/assets/application-60334d15fb5a086905421f955eea663f14ee546972b02cf4b42e67262b38e79d.js:28:18887)

```

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [April 29, 2019, 2:41am UTC](https://meta.discourse.org/t/uncaught-typeerror-cannot-read-property-val-of-undefined-url/115846/2 "2019-04-29T02:41:47Z")

</div>

Just going by a backtrace is tricky. What actually did the user do that caused this error to happen?
