Last modified: 2014-08-30 15:29:11 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T67105, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 65105 - "Invalid JSON file" error is too generic, does not even provide line number
"Invalid JSON file" error is too generic, does not even provide line number
Status: NEW
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 65597 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-09 21:07 UTC by Ocean behind ears
Modified: 2014-08-30 15:29 UTC (History)
10 users (show)

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


Attachments

Description Ocean behind ears 2014-05-09 21:07:05 UTC
I recieved a very unspecific error that wasn't able to help me, it seems like the line number could at least be given:

[546b7980] /wiki/Special:EditWatchlist/clear Exception from line 562 of /vagrant/mediawiki/includes/cache/LocalisationCache.php: LocalisationCache::readJSONFile: Invalid JSON file: /vagrant/mediawiki/languages/i18n/en.json

Backtrace:

#0 /vagrant/mediawiki/includes/cache/LocalisationCache.php(876): LocalisationCache->readJSONFile(string)
#1 /vagrant/mediawiki/includes/cache/LocalisationCache.php(452): LocalisationCache->recache(string)
#2 /vagrant/mediawiki/includes/cache/LocalisationCache.php(326): LocalisationCache->initLanguage(string)
#3 /vagrant/mediawiki/includes/cache/LocalisationCache.php(260): LocalisationCache->loadItem(string, string)
#4 /vagrant/mediawiki/languages/Language.php(483): LocalisationCache->getItem(string, string)
#5 /vagrant/mediawiki/includes/search/SearchEngine.php(338): Language->getNamespaces()
#6 /vagrant/mediawiki/includes/User.php(1374): SearchEngine::searchableNamespaces()
#7 /vagrant/mediawiki/includes/User.php(4693): User::getDefaultOptions()
#8 /vagrant/mediawiki/includes/User.php(1255): User->loadOptions()
#9 /vagrant/mediawiki/includes/User.php(1103): User->loadFromUserObject(User)
#10 /vagrant/mediawiki/includes/User.php(300): User->loadFromSession()
#11 /vagrant/mediawiki/includes/User.php(1864): User->load()
#12 /vagrant/mediawiki/includes/User.php(2987): User->getId()
#13 /vagrant/mediawiki/includes/Wiki.php(538): User->isLoggedIn()
#14 /vagrant/mediawiki/includes/Wiki.php(448): MediaWiki->main()
#15 /vagrant/mediawiki/index.php(46): MediaWiki->run()
#16 {main}
Comment 1 Kunal Mehta (Legoktm) 2014-05-09 21:09:02 UTC
(In reply to Ocean behind ears from comment #0)
> I recieved a very unspecific error that wasn't able to help me, it seems
> like the line number could at least be given:
> 

I'm not sure PHP provides errors at that level. I recommend just using something like http://jsonlint.com/.
Comment 2 Nemo 2014-08-30 15:29:11 UTC
*** Bug 65597 has been marked as a duplicate of this bug. ***

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


Navigation
Links