Fixing #373248: Module generate errors for anonymous user by NickSI
Fixing #348749 by evoltech.
stable release.
Dev release.