JackHouzi reported an image upload error in Discourse after updating to the latest version, encountering the error "undefined method map' for nil:NilClass". After sharing logs and a screenshot, [Falco](/t/-/169604/2) requested full logs, which [JackHouzi](/t/-/169604/3) provided, pointing to the discourse-antivirus` plugin as the source of the issue. sam advised that the plugin is complex and requires custom infrastructure, recommending its removal unless the user is comfortable debugging it. JackHouzi confirmed that disabling the plugin resolved the issue and thanked the community for their help.
Since 4 days now, i’ve updated Discourse and all its modules to the lastest version, but each time me or a member try to upload an image, we get this error : “undefined method `map’ for nil:NilClass”
Can’t find any infos on it, as it seems it’s a generic errors and it can be produced not only with the image uploader.
Does anyone can help here ? Any advice is welcomed. thanks a lot
discourse-antivirus is a very complex plugin that requires a lot of custom infrastructure and setup. I recommend you remove it unless you are comfortable debugging this kind of stuff yourself.