Last modified: 2009-01-06 22:21:28 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 14433 - #ifexist:Image and #ifexist:Media return False all the time
#ifexist:Image and #ifexist:Media return False all the time
Product: MediaWiki extensions
Classification: Unclassified
ParserFunctions (Other open bugs)
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2008-06-06 08:00 UTC by Stéphane Roucheray
Modified: 2009-01-06 22:21 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Stéphane Roucheray 2008-06-06 08:00:11 UTC
#ifexist:Image and #ifexist:Media return False all the time

Tested on MW 1.12 / ParserFunctions 1.1.1
Comment 1 Brion Vibber 2008-06-06 17:47:32 UTC
These should return true if and only if pages named "Image" and "Media", respectively, exist.

Do they?
Comment 2 Daniel Friesen 2008-06-06 23:12:23 UTC
Yes, it's something I ran into as well.

The trunk version of pfunc has this bug when combined with 1.12, however it works fine with 1.13.

The 1.12 branch of pfunc works fine with 1.12 however. So I adopted using the branched version for 1.12, and the trunk version with trunk.

I expect it has something to do with new code. I believe it was tweaked to check for images rather than pages (which does make some logical sense) but the backend may have changed a bit.
Comment 3 Siebrand Mazeland 2008-08-16 22:25:34 UTC
Current stable version is 1.13. I think this issue should be marked resolved, if it does not occur in 1.13 or 1.14alpha.
Comment 4 MZMcBride 2009-01-06 22:21:28 UTC

There used to be image detection issues with #ifexist and Media: / File:, but as far as I'm aware, all of these have been resolved (at least to the extent that they no longer return false all the time).

Please open a new bug if there are new issues.

Note You need to log in before you can comment on or make changes to this bug.