Hi, I just updated my site to 2.4.5 and the latest stable branch of the assign plugin and my site shows a blank page unless I disable the assign plugin. If I can provide any diagnostic into please let me know.
AI-generated summary
Site doesn’t load with 2.4.5 and stable assign
foozmeat reports that after updating to Discourse 2.4.5 and the latest stable branch of the assign plugin, their site shows a blank page unless the assign plugin is disabled.
pfaffman suggests checking the app.yml file to ensure the stable branch of the plugin is being cloned. foozmeat confirms this is the case.
Stephen recommends adding the --single-branch flag to the git clone command, but foozmeat reports this does not resolve the issue. A JavaScript error is provided, indicating a TypeError in the _discourse-assign file, suggesting a potential compatibility issue between the assign plugin and Discourse 2.4.5.
In your app.yml do you clone the stable branch of the plugin?
In your
app.ymldo you clone the stable branch of the plugin?
Yes, like this
hooks:
after_code:
- exec:
cd: $home/plugins
cmd:
- 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-styleguide.git
- git clone --branch stable https://github.com/discourse/discourse-solved.git
- git clone https://github.com/discourse/discourse-user-notes.git
- git clone https://github.com/discourse/discourse-checklist.git
- git clone --branch stable https://github.com/discourse/discourse-assign.git
What about if you use:
git clone --single-branch --branch stable
What about if you use:
git clone --single-branch --branch stable
This results in the same issue. Why would adding --single-branch make a difference?
For the record here is the JS error that’s breaking the rendering of the site
TypeError: t.addKeyboardShortcut is not a function _discourse-assign-247a26621189a1714b70bd1b1b82b3a6fecb3b42abd693e59778ada8c009780f.js:732:8
initialize _discourse-assign-247a26621189a1714b70bd1b1b82b3a6fecb3b42abd693e59778ada8c009780f.js:732
withPluginApi _application-ed0ac692ab93afd4124933b80c2b9e44bca02a77b73366b3e67eef88e883e0db.js:21205
initialize _discourse-assign-247a26621189a1714b70bd1b1b82b3a6fecb3b42abd693e59778ada8c009780f.js:743
initialize _application-ed0ac692ab93afd4124933b80c2b9e44bca02a77b73366b3e67eef88e883e0db.js:7258
jQuery 21