Note: You are currently viewing documentation for Moodle 3.11. Up-to-date documentation for the latest stable version of Moodle may be available here: error/core contentbank/contextnotallowed.

error/core contentbank/contextnotallowed

From MoodleDocs

Content bank could be used only for system, course category and course context level. Any other context levels such user, module or block are not allowed.