A user reports an error loading individual groups on their Discourse site, with a 500 Internal Server Error occurring when accessing any group. The issue persists in safe mode, suggesting it’s not a front-end plugin problem. After investigation, the cause is identified as the unofficial “allow pm to staff” plugin, which is confirmed to be the source of the error. Once the plugin is removed, the group loading functionality works again. The plugin author acknowledges the issue and notes that the functionality should ideally be part of Discourse core. Kushalghosh9899, JammyDodger, awesomerobot, pfaffman, sam, rahim123, Kushalghosh9899, Kushalghosh9899
When I am going to the Groups page (domain.com/g), it is fetching all the groups but when I try to enter into any particular group it is giving me the below error, this error is coming with all the groups
I am the owner of these groups and I have checked this from the normal user’s account too and these same errors is coming with this particular user type too.
I’m having trouble reproducing this on my test site. Do you have any non-official plugins on your site that may be having an effect? Or any other notable differences/quirks that I could try to see if I can replicate the issue?
I am using these plugins only. I tried in safe mode too and still getting those errors as in the safe mode it disables all the plugins.
Is there any thing more which is needed from my end to reproduce the error then please let me know.
I’m afraid safe mode only disables front-end code and not server-side stuff (which catches most things, but not everything) so it could still be a plugin. The most likely one is the allow-pms-to-staff as it’s the only non-official one in the list. You could try removing it from your app.yml and rebuilding to see if that is indeed causing the issue?
There was a report of it needing a fix for something else recently, though it may be unrelated:
yes, you were right this plugin is causing the problem. After removing the plugin now it has started working. @pfaffman please kindly fix it as your plugin is very necessary for us.
I really think this functionality should be in Discourse core, especially the ability for all active users to send a new PM to staff regardless of their trust level or PM rate limit. I’ve received many (public) reports from new level 0 users that were trying to contact me and couldn’t do so. And enabling general user-to-user PMs for level 0 users is a bad idea.