Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wiki/Special:ItemByTitle - internal error #1214

Open
chram2 opened this issue Feb 5, 2025 · 6 comments
Open

wiki/Special:ItemByTitle - internal error #1214

chram2 opened this issue Feb 5, 2025 · 6 comments

Comments

@chram2
Copy link

chram2 commented Feb 5, 2025

In the Wiki there is suddenly an error if you want to go to "Special:ItemByTitle" https://wiki.openstreetmap.org/wiki/Special:ItemByTitle - it tells:

Internal error

[d7dee4d3b8512ff4a8897f0a] 2025-02-05 07:10:44: Fatal exception of type "TypeError"

For at least 2 users right now, see also Wiki talk page.

@Firefishy
Copy link
Member

Annoyingly it appears mediawiki is not logging any errors in the PHP error log.

@Firefishy
Copy link
Member

Here is the full error being thrown:

[66c94f6c0ddf723733a65c02] /wiki/Special:ItemByTitle TypeError: Wikibase\Lib\LanguageNameLookup::getName(): Argument #1 ($languageCode) must be of type string, null given, called in /srv/wiki.openstreetmap.org/w/extensions/Wikibase/repo/includes/Specials/SpecialItemByTitle.php on line 192

Backtrace:

from /srv/wiki.openstreetmap.org/w/extensions/Wikibase/lib/includes/LanguageNameLookup.php(32)
#0 /srv/wiki.openstreetmap.org/w/extensions/Wikibase/repo/includes/Specials/SpecialItemByTitle.php(192): Wikibase\Lib\LanguageNameLookup->getName()
#1 /srv/wiki.openstreetmap.org/w/extensions/Wikibase/repo/includes/Specials/SpecialItemByTitle.php(222): Wikibase\Repo\Specials\SpecialItemByTitle->getSiteOptions()
#2 /srv/wiki.openstreetmap.org/w/extensions/Wikibase/repo/includes/Specials/SpecialItemByTitle.php(180): Wikibase\Repo\Specials\SpecialItemByTitle->switchForm()
#3 /srv/wiki.openstreetmap.org/w/includes/specialpage/SpecialPage.php(701): Wikibase\Repo\Specials\SpecialItemByTitle->execute()
#4 /srv/wiki.openstreetmap.org/w/includes/specialpage/SpecialPageFactory.php(1428): SpecialPage->run()
#5 /srv/wiki.openstreetmap.org/w/includes/MediaWiki.php(316): MediaWiki\SpecialPage\SpecialPageFactory->executePath()
#6 /srv/wiki.openstreetmap.org/w/includes/MediaWiki.php(904): MediaWiki->performRequest()
#7 /srv/wiki.openstreetmap.org/w/includes/MediaWiki.php(562): MediaWiki->main()
#8 /srv/wiki.openstreetmap.org/w/index.php(50): MediaWiki->run()
#9 /srv/wiki.openstreetmap.org/w/index.php(46): wfIndexMain()
#10 {main}

@Firefishy
Copy link
Member

Likely related to a recent change here: https://github.com/wikimedia/mediawiki-extensions-Wikibase/commits/REL1_39/

@Firefishy
Copy link
Member

@nyurik This is likely something better suited to you.

@nyurik
Copy link

nyurik commented Feb 5, 2025

thx, i'll take a look. If I understand it correctly, it is only related to the special page that's rarely used, so shouldn't cause a big blocker from the start.

@chram2
Copy link
Author

chram2 commented Feb 6, 2025

Thanks for investigating! - For now the only issue I've encountered is that this Special:ItemByTitle page isn't available anymore. Everything else works. - I use this to create new data items, because you get a search for existing ones and in case of not existing you get a link to create it, including sitelink set. But I found a workaround (or shortcut) by Special:NewItem in combination with "&site=wiki&page=Key or Tag pagename" ( index.php?title=Special:NewItem&site=wiki&page=Key:... ) so there's no huge hurry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants