Page MenuHomePhabricator

Unable to change preferences after changing language: Global default 'persian' is invalid for field date
Closed, ResolvedPublicBUG REPORT

Description

Author: omid_h28

Description:
I've Installed a Farsi wiki on my computer. I changed a user's language in my wiki from Farsi to English then I wasn't able to change. I've got this error while I was trying to access Preferences

Internal error - {{SITENAME}}

[3c60149c] /wiki/index.php/%D9%88%DB%8C%DA%98%D9%87:%D8%AA%D8%B1%D8%AC%DB%8C%D8%AD%D8%A7%D8%AA Exception from line 127 of /var/www/wiki/includes/Preferences.php: Global default 'persian' is invalid for field date

Backtrace:

#0 /var/www/wiki/includes/Preferences.php(1281): Preferences::getPreferences(User, RequestContext)
#1 /var/www/wiki/includes/specials/SpecialPreferences.php(58): Preferences::getFormObject(User, RequestContext)
#2 /var/www/wiki/includes/specialpage/SpecialPage.php(673): SpecialPreferences->execute(NULL)
#3 /var/www/wiki/includes/SpecialPageFactory.php(488): SpecialPage->run(NULL)
#4 /var/www/wiki/includes/Wiki.php(298): SpecialPageFactory::executePath(Title, RequestContext)
#5 /var/www/wiki/includes/Wiki.php(596): MediaWiki->performRequest()
#6 /var/www/wiki/includes/Wiki.php(460): MediaWiki->main()
#7 /var/www/wiki/index.php(49): MediaWiki->run()
#8 {main}


Version: 1.23.0
Severity: major

Details

Reference
bz58589

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:29 AM
bzimport set Reference to bz58589.
bzimport added a subscriber: Unknown Object (MLST).

Did you touch your LocalSettings.php?

omid_h28 wrote:

No I didn't. I've changed the language from Special:Preferences

Which MediaWIki version is this about (see Special:Version)?

Was reminded of bug 19237.

omid_h28 wrote:

I always use latest version, 1.23alpha (8870b46)

Aklapper edited subscribers, added: Aklapper; removed: wikibugs-l-list.

I assume that the $defaultDateFormat entry had a persian value at that time (December 2013 / MW1.23) while it should have had a strftime format entry (like $defaultDateFormat = 'dmy or mdy' nowadays in languages/messages/MessagesFa.php). Please reopen if this is still an issue nowadays.

Aklapper changed the subtype of this task from "Task" to "Bug Report".Feb 15 2022, 9:39 PM