only_selected="false" error (when uploading files to Wikimedia Commons)

Summary:

When I create SVG files and upload them to Wikimedia Commons I often get this message. inkscape_-_wikimedia_commons_error_message

I know it's not strictly an issue for Inkscape, but I still hope this issue can be solved so that Inkscape's files can be directly used on Wikimedia Commons for Wikipedia etc. without this error.

Steps to reproduce:

  • open Inkscape
  • create a file
  • upload the file to Wikimedia Commons

Sometimes I get this error message, sometimes I do not (even I copied one from the other)

What should have happened?

Inkscape saves the file (or is able to export it) in a way that works on Wikimedia Commons.

The current workaround for me is to save the file as 'plain SVG', but I'm not really happy about this since it seems to not save all the information/settings from the SVG file.

Version info

- Inkscape Version: Inkscape 1.0.2-2 (e86c870879, 2021-01-15)
- Operating System: Windows 10 Home
- Operating System version: 20H2, Build: 19042.1110

I'm using Inkscape 1.0 because of Issue #5114, but I guess that it's the same for 1.1