Jump to content

Extension talk:FlickrAPI

Add topic
From mediawiki.org
Latest comment: 4 months ago by Samwilson in topic Updating in 2024

Private Photos

[edit]

The extension appears not to work for photos that have been designated "private" on Flickr (that is "only visible to you"). I can successfully use the extension to embed public photos, but when I try to embed a photo that is private I get the following error: "Flickr Error ( Photo not found ): PhotoID {id}." Any help here would be appreciated.

I think, if a photo is declared private, one should take this declaration serious.--[[User:Bmrberlin| Bernd M.]] (talk) 05:35, 15 May 2015 (UTC)Reply

Good IDs not being found?

[edit]

Yes Done

Hi, I am trying to get to show a sample image, which is public domain and public. Yet, I always get the "Flickr Error ( Photo not found ): PhotoID" message! Either I've made a stupid mistake, or there's something wrong in general. What to do? see the error here this is the image I'm trying to call

I've tested this ID on my server and it works. So there is something wrong with your installation of the extension or your flickr API. Please take a look at your parameters. May be, the flickr format is necessary and missing. --[[User:Bmrberlin| Bernd M.]] (talk) 09:37, 18 May 2015 (UTC)Reply
Thank you for letting me know this: I checked well and there was actually a small mistake in localsettings file :) All great now, thanks again, much appreciated.

Now there is definitely a problem

[edit]

Yes Done

Hi, I am trying to use the extension, but not very successful. Checked everything and it seems as per your instructions. Then I noticed that in your own manual all images have the same error. Maybe Flickr changed the API? (User:sorin.sfirlogea) 15:15, 25 August 2015 (UTC)Reply

The site you referenced uses a different extension, but it is posted as a reference since it uses the same syntax. I am seeing that this extension works fine on other sites. If you have a live example, I'll take a look. --Ike @ WikiWorks 00:16, 27 August 2015 (UTC)Reply
Now it works. Don't get it what was wrong initially. Thanks, anyway.

Some strange behaviour

[edit]

Every once in a while, especially after saving some edits of the page, the FlickrAPI extension behaves strangely. It returns a wrong formated HTML that looks like this:

<div class="thumb tright"><div class="thumbinner" style="width:242px;"><a href="https://www.flickr.com/photos/135652434@N02/21159338652/" title="Munții Siriu văzuți peste lacul cu același nume" target="_blank"><img alt="Munții Siriu văzuți peste lacul cu același nume" src="https://farm1.staticflickr.com/661/21159338652_cdf8d1559f_m.jpg" class="thumbimage" /></a>  <div class="thumbcaption">Munții Siriu văzuți peste lacul cu același nume</div></div></div>
<!DOCTYPE html>
<html lang="ro" dir="ltr" class="client-nojs">
<head>
<meta charset="UTF-8" />
<title>Munții Siriu - Cartea munților</title>
<meta name="generator" content="MediaWiki 1.25.2" />
<meta name="keywords" content="enciclopedie,trasee,munte,montaniard,Siriu,Buzău" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image:src" content="http://www.carteamuntilor.ro/images/d/d4/Logo.jpg" />

In other words, the output is delivered and displayed twice: once before the HTML document and once in its right place, within the HTML document. Any idea why this happens? When refreshing the page it returns to normal. There is no cache mechanism and the browser cache is not the explanation, I've already checked.

Some context: client = Chrome 45.0.2454.85 (64-bit) on Ubuntu 14.04

Update

[edit]

Yes Done

I'm updating this to use extension registration and not use a git submodule. See phab:T171819. Sam Wilson 08:03, 27 July 2017 (UTC)Reply

Thank you very much @Sam. If you need review assistance, you can add me (gerrit:D3r1ck01) as reviewer. Thank you! --X-Savitar (talk) 19:16, 6 July 2021 (UTC)Reply
@Sam, I see that the task has already been resolved. Thank you very much! --X-Savitar (talk) 19:19, 6 July 2021 (UTC)Reply
@X-Savitar: no worries! —Sam Wilson 00:02, 7 July 2021 (UTC)Reply

Strange problem where 'linkage' to Flickr is created but no image displayed in MediaWiki

[edit]

Hi! I followed the documentation to install and configure but strangely no image shows in the wiki at all—just a gray box with the caption. Interestingly there is a little link (with the two tiny rectangles) to the right of the caption that does indeed click out to the Flickr website page for the focal photo. So the link up with Flickr using the $wgFlickrAPIKey parameter is working but no embedded image is visible in the wiki itself. Any thoughts? --Flyingratchet (talk) 03:50, 17 March 2022 (UTC)Reply

here's an example of the snippet I'm using in the wiki on the off chance that it's useful
<flickr>3093732218|thumb|center|s|test test test</flickr> Flyingratchet (talk) 03:57, 17 March 2022 (UTC)Reply
Here's my versions
MediaWiki1.37.1
PHP7.3.33 (litespeed) Flyingratchet (talk) 16:34, 17 March 2022 (UTC)Reply
Thanks for reporting @Flyingratchet, we're tracking this to find out what the issue might be.
Are there any errors in the JS console of your browser? If there are, pasting them here will be of great help. Thanks! -- X-Savitar (talk) 15:09, 30 March 2022 (UTC)Reply
Note that the extension is only supported on LTS versions of MediaWiki, currently only 1.35. --Ike Hecht 00:11, 27 July 2022 (UTC)Reply
Okay, I'm on 1.38—so that is maybe what the problem is. Flyingratchet (talk) 16:38, 29 July 2022 (UTC)Reply

Updating in 2024

[edit]

Is anyone still using this extension? I've been contacted by a group who need it, so have attempted to bring it up to date: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/FlickrAPI/+/1057179 — would love any reviews, if possible! :-)

The dan-coulter/phpflickr library is no longer maintained, and I've forked it to samwilson/phpflickr. Sam Wilson 09:37, 26 July 2024 (UTC)Reply