# Uncaught Errors

**URL:** https://meta.discourse.org/t/uncaught-errors/92331
**Category:** Support
**Created:** [July 14, 2018, 2:05am UTC](https://meta.discourse.org/t/uncaught-errors/92331 "2018-07-14T02:05:58Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![grahamtrump](https://avatars.discourse-cdn.com/v4/letter/g/df788c/32.png) [@grahamtrump](https://meta.discourse.org/u/grahamtrump)
#### Post date: [July 14, 2018, 2:05am UTC](https://meta.discourse.org/t/uncaught-errors/92331/1 "2018-07-14T02:05:59Z")

</div>

I got many errors as below:

> **Summary**
>
> ```plaintext
> Uncaught Error: Nothing handled the action 'refresh'. If you did handle the action, this error can be caused by returning true from an action handler in a controller, causing the action to bubble. Url
> Fr 11:45 pm
> Uncaught TypeError: document.getElementsByClassName.ToString is not a function Url: Line: 1 Column: 33 Window Location: https://abc.com/t/4564adbbds/45574
> Fr 11:47 pm
> Uncaught TypeError: document.getElementsByClassName.ToString is not a function Url: Line: 1 Column: 33 Window Location: https://abc.com/t/thjuekksbjal
> 12:41 am
> Uncaught TypeError: document.getElementsByClassName.ToString is not a function Url: Line: 1 Column: 33 Window Location: https://abc.com/t/howcanidoit/1254
> 12:44 am
> 2		
> Unable to get property 'getItem' of undefined or null reference Url: https://abc.com/assets/ember_jquery-27e777857b8c0730dacfe09cb11711365d21a5db4f9ee0b85d494e4259cf6cda.js Line: 2 Column: 10713 W
> 1:13 am
> 8		
> TypeError: Cannot call method "create" of undefined (https://abc.com/assets/vendor-6e59f8d0190b766ab492d48c83983f67bb7a5ecbff9e213f79fa12e4c72a06e6.js#4) Url: https://vnzones.com/ Line: 4 Column: 1:31 am
> Unable to get property 'getItem' of undefined or null reference Url: https://abc.com/assets/ember_jquery-27e777857b8c0730dacfe09cb11711365d21a5db4f9ee0b85d494e4259cf6cda.js Line: 2 Column: 10713 W
> 2:13 am
> Could not find module `pretty-text/censored-words` imported from `discourse/models/topic` Url: https://abc.com/assets/ember_jquery-27e777857b8c0730dacfe09cb11711365d21a5db4f9ee0b85d494e4259cf6cda.
> 3:28 am
> Uncaught SyntaxError: Unexpected token else Url: https://abc.com/t/xiaomi-mi-max-319-7/1274 Line: 6 Column: 10 Window Location: https://abc.com/t/xiaomi-mi-max
> 3:41 am
> TypeError: undefined is not an object (evaluating 'd.tagName.toUpperCase') Url: https://abc.com/c/hotnews Line: 1 Column: 265 Window Location: https://abc.com/c/hotnews
> 4:56 am
> Unable to get property 'getItem' of undefined or null reference Url: https://abc.com/assets/ember_jquery-27e777857b8c0730dacfe09cb11711365d21a5db4f9ee0b85d494e4259cf6cda.js Line: 2 Column: 10713 W
> 5:23 am
> 3		
> Unable to get property 'getItem' of undefined or null reference Url: https://abc.com/assets/ember_jquery-27e777857b8c0730dacfe09cb11711365d21a5db4f9ee0b85d494e4259cf6cda.js Line: 2 Column: 10713 W
> 6:23 am
> 9		
> NoMethodError (undefined method `id' for nil:NilClass) /var/www/discourse/plugins/discourse-question-answer/lib/qa_post_edits.rb:12:in `actions_summary'
> 
> ```

How can I fix?

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [July 14, 2018, 2:21am UTC](https://meta.discourse.org/t/uncaught-errors/92331/2 "2018-07-14T02:21:36Z")

</div>

> [@grahamtrump](#):
>
> How can I fix?

Don’t despair. Take a safe first step.

> [@Using Safe Mode to troubleshoot issues with themes and plugins](https://meta.discourse.org/t/how-to-use-discourse-safe-mode/53504):
>
> bookmark This guide explains how to use Discourse’s [Safe Mode](https://meta.discourse.org/t/53504?silent=true) to troubleshoot issues with themes and plugins. person_raising_hand Required user level: All users Discourse offers a “JavaScript [Safe Mode](https://meta.discourse.org/t/53504?silent=true)” that allows any user to isolate the root cause of JavaScript issues caused by plugins, themes, or theme components. This feature is particularly useful for troubleshooting problems on your Discourse site. Accessing [Safe Mode](https://meta.discourse.org/t/53504?silent=true) To access [Safe Mode](https://meta.discourse.org/t/53504?silent=true), follow these steps: Open a new browse…

---

<div class="post-metadata">

### Author: ![grahamtrump](https://avatars.discourse-cdn.com/v4/letter/g/df788c/32.png) [@grahamtrump](https://meta.discourse.org/u/grahamtrump)
#### Post date: [July 14, 2018, 3:45pm UTC](https://meta.discourse.org/t/uncaught-errors/92331/3 "2018-07-14T15:45:33Z")

</div>

But what made these errors and how can I fix?

---

<div class="post-metadata">

### Author: ![Stranik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stranik/32/85638_2.png) [@Stranik](https://meta.discourse.org/u/Stranik)
#### Post date: [July 14, 2018, 3:56pm UTC](https://meta.discourse.org/t/uncaught-errors/92331/4 "2018-07-14T15:56:15Z")

</div>

> [@grahamtrump](#):
>
> NoMethodError (undefined method `id' for nil:NilClass) /var/www/discourse/plugins/discourse-question-answer/lib/qa_post_edits.rb:12:in `actions\_summary’

Probably disable the plugin: discourse-question-answer

The author corrected.

> [@Question Answer Plugin](https://meta.discourse.org/t/question-answer-plugin/56032/119):
>
> Ok, an update here. Sorry for the delay, this caught me at an inconvenient time. I’ve just merged an update that: Updates the plugin to use various custom\_fields to store vote data and integrates that into a functionality identical post vote action UX. Migrates existing post vote actions to the new custom\_fields. Example topic: [https://discourse.angusmcleod.com.au/t/can-you-solve-aldhelms-lorica/59](https://discourse.angusmcleod.com.au/t/can-you-solve-aldhelms-lorica/59) This…

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [August 13, 2018, 3:56pm UTC](https://meta.discourse.org/t/uncaught-errors/92331/5 "2018-08-13T15:56:21Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
