question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Avoid "Commons link should be well-formed" warning

See original GitHub issue

When uploading a picture via Nearby, the Wikidata item’s image field is filled via a sanitized version of the picture’s title (notice the underscores): Screenshot from 2019-12-02 20-12-11

It works, but actually, Wikidata prefers the non-sanitized version, so it complains:

This statement has some issues.
Commons link constraint.
Commons link should be well-formed.

Screenshot from 2019-12-02 20-19-51

This can be fixed by editing and writing the title instead, like this (notice the lack of underscores): Screenshot from 2019-12-02 20-12-52

Which solves the problem: Screenshot from 2019-12-02 20-13-10

Your task:

  • Find where in the code the Wikidata item’s image value is set.
  • Set it to the real image title. I am pretty sure we already have that title, and we don’t need dirty tricks (such as replacing underscore with spaces… there might be other differences).

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:30 (15 by maintainers)

github_iconTop GitHub Comments

2reactions
macgillscommented, Mar 17, 2020

@gouri-panda seeing as how it has been 2 months with no activity I say go for it, try and replicate the issue first because I don’t know if it exists

1reaction
gouri-pandacommented, Mar 22, 2020

Sure @maskaravivek 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

xml - How to fix error: The markup in the document following ...
The markup in the document following the root element must be well-formed. This error indicates that your XML has markup following the root ......
Read more >
How to Submit, Track and View Your Application
You must address any errors identified in Grants.gov and eRA Commons before the submission deadline. Warnings do not stop application processing ...
Read more >
Extensible Markup Language (XML) 1.0 (Fifth Edition) - W3C
ENTITY mylt "<"> ), it is strongly advised to avoid this practice since any reference to that entity will cause a well-formedness error....
Read more >
Handling common HTML and CSS problems - MDN Web Docs
Basically, it is a matter of checking whether your HTML and CSS code is well formed and doesn't contain any syntax errors. Note:...
Read more >
Resolving common notarization issues - Apple Developer
You can only notarize apps that you sign with a Developer ID certificate. If you use any other certificate — like a Mac...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found