When the user requests an SVG that does not exist (either via url or from search page), keep/redirect the user on the search page and show the message below
Design
- Text: The file you requested could not be found. Please pick another image.
• Niharika | |
Jan 9 2019, 12:19 PM |
F27636316: Screen Shot 2018-12-19 at 4.29.44 PM.png | |
Jan 9 2019, 12:19 PM |
When the user requests an SVG that does not exist (either via url or from search page), keep/redirect the user on the search page and show the message below
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | Samwilson | T213272 Show error message when user requests an SVG that does not exist | |||
Resolved | Samwilson | T210218 Show message when loading an SVG with no translations |
PR: https://github.com/wikimedia/svgtranslate/pull/86
It's dependent on the PR for T210218.
@Samwilson You sure? I don't see it here: https://tools.wmflabs.org/svgtranslate/File:Qwijhuierytu38e2wpq%5B
Edit: I do see it when I type other random strings but for some weird reason, this random string breaks it.
reset() expects parameter 1 to be array, null given is being thrown by Retriever::retrieve():
$info = $this->api->imageInfo($fileName); $url = reset($info['imageinfo'])['url'];