JS error probably caused by site theme

Problem

Users creating posts on this site (and forum.snapcraft.io) are unable to use the ‘cog’ in the menu just above the edit pane. The menu never loads.

Steps to reproduce

  1. Start a new thread or reply to this one.
  2. Click the cog in the toolbar at the top of the edit pane.

image

Expected result

A menu appears. For example:

image

Actual result

Menu does not appear. JavaScript errors occur in the developer console.

rsvp.js:23 Uncaught TypeError: Cannot read properties of undefined (reading 'split')
    at i.lookup (index.js:307:19)
    at i.findTranslation (index.js:271:28)
    at i._translate (index.js:76:28)
    at i.translate (index.js:27:40)
    at toolbar-popup-menu-options.js:18:22
    at Array.map (<anonymous>)
    at e.modifyContent (toolbar-popup-menu-options.js:14:21)
    at e._modifyContentWrapper (select-kit.js:357:20)
    at B._join (backburner.js.js:824:1)
    at B.join (backburner.js.js:629:1)
    at l (index.js:81:1)
    at u.modifyContent (index.js:118:1)
    at select-kit.js:484:32
    at _ (rsvp.js:434:1)
    at rsvp.js:489:1
    at invoke (backburner.js.js:282:1)
    at h.flush (backburner.js.js:197:1)
    at p.flush (backburner.js.js:358:1)
    at B._end (backburner.js.js:798:1)
    at B.end (backburner.js.js:589:1)
    at B._run (backburner.js.js:842:1)
    at B._join (backburner.js.js:819:1)
    at B.join (backburner.js.js:629:1)
    at l (index.js:81:1)
    at u.toggle (index.js:118:1)
    at e.click (select-kit-header.js:43:20)
    at e._trigger (core_view.js:55:1)
    at e.r (index.js:361:1)
    at e._trigger (ember-events.js:138:30)
    at e.r (index.js:361:1)
    at HTMLElement.a (ember-events.js:203:39)

Workaround

Use the site in “safe mode”, which disables any additional plugins that may cause issues.

  1. Go to Ubuntu Community Hub
  2. Leave all options as the default, then click the big red ‘Enter Safe Mode’ button.

  1. Site will operate correctly.
3 Likes