Group mention prevents editing topic

AI-generated summary

A user hellekin reported that editing a topic containing a group mention triggers a server error (500) with the message “TypeError: Discourse.Markdown is undefined”. The error appears to stem from a plugin conflict. dax suggested removing the outdated discourse-openstreetmap plugin, which hadn’t been updated in three years. hellekin pinged the plugin’s maintainer, lidel, who acknowledged the issue and created a GitHub issue. lidel later confirmed the plugin has been updated and no longer causes the error, making it safe to use again. The fix resolves the group mention editing problem.

Situation

After editing a topic’s description post containing a group mention, the server returns 500, preventing the edition.

Diagnostic

Log says “TypeError: Discourse.Markdown is undefined Url: https://ps.zoethical.com/assets/plugin-third-party-4d3728cb346366b10ae699230b046fac450fb2e79749c551e62df3d5756b4456.js Line: 9 Column: 12674 Window Location”:

@https://ps.zoethical.com/assets/plugin-third-party-4d3728cb346366b10ae699230b046fac450fb2e79749c551e62df3d5756b4456.js:9:12674
@https://ps.zoethical.com/assets/plugin-third-party-4d3728cb346366b10ae699230b046fac450fb2e79749c551e62df3d5756b4456.js:9:12663

It seems that one of the plugins is interfering with group mentions. But how to identify that plugin?

I had the occurrence already before upgrading to 1.9.0.beta11 but thought it was me using groups badly: I tried to send a group message, but failed with a similar error.

List of plugins

          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/discourse/discourse-spoiler-alert.git
          - git clone https://github.com/discourse/discourse-voting.git
          - git clone https://github.com/discourse/discourse-solved.git
          - git clone https://github.com/discourse/discourse-assign.git
          - git clone https://github.com/angusmcleod/discourse-locations.git
          - git clone https://github.com/angusmcleod/discourse-events.git
          - git clone https://github.com/lidel/discourse-openstreetmap.git

Not updated for 3 years, remove it, almost certainly it is interfering

ping @lidel. Can you check?

Thank you @Trash for your insight.

@lidel created Group mention prevents editing topic · Issue #2 · lidel/discourse-openstreetmap · GitHub

Thank you for reporting this! :+1:

FYI I’ve just updated lidel/discourse-openstreetmap and it is safe to use again, no longer produces TypeError :cactus: