Last modified: 2013-02-02 22:26:22 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 T43844, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 41844 - Fatal error on meta when entering unmatched translation tags
Fatal error on meta when entering unmatched translation tags
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Translate (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Niklas Laxström
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-07 11:21 UTC by denny vrandecic
Modified: 2013-02-02 22:26 UTC (History)
4 users (show)

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


Attachments

Description denny vrandecic 2012-11-07 11:21:48 UTC
I made http://meta.wikimedia.org/wiki/Wikidata/Glossary crash with the following fatal error.

PHP fatal error in /usr/local/apache/common-local/php-1.21wmf3/extensions/Translate/tag/PageTranslationHooks.php line 367: 
Call to undefined method TPException::getWikiText()

I used the following text. I am aware that the tags do not match, but the failure should not be fatal I'd say.

<languages/>
<translate>
<!--T:1-->
Wikidata will provide a knowledge base that everyone can edit. In this article we want to improve discussion and communication about the project by defining important terminology. There are significant advantages if we use the terminology consistently in the project.</translate>

* {{anchor|Wikidata}}<translate><!--T:3-->
'''Wikidata''' is a new website that is being developed during the [[#Initial Wikidata development|initial Wikidata development]]. A first part of it was launched at [http://wikidata.org wikidata.org].It runs an instance of [[#MediaWiki|MediaWiki]] with the [[#Wikibase extensions|Wikibase extensions]] that allows [[#Wikidata editors|Wikidata editors]] to enter and browse the [[#Page|pages]] in Wikidata.</translate>
* {{anchor|Wikibase extensions}}<translate><!--T:4-->
'''Wikibase''' is the software behind Wikidata. It consists of three MediaWiki extensions: Wikibase, Wikibase client, and WikibaseLib. The '''Wikibase extension''' (for the Wikidata server, often called just ''repo'') allows a MediaWiki installation to collect and maintain structured data and will be used on the Wikidata website. The '''Wikibase client extension''' (often called just ''client'') enables MediaWiki installations to query and display data from a Wikidata server on its own pages, and will be deployed on Wikipedias in different languages, and probably on other sites. The '''WikibaseLib extension''' has common libraries for both of the major extensions.</translate>
* {{anchor|Wikidata editors}}<translate><!--T:5-->
'''Wikidata editors''' are users of Wikidata who create and collaboratively maintain its content. Together, they are part of the Wikidata community.</translate>
* {{anchor|Initial Wikidata development}}<translate><!--T:6-->
'''Initial Wikidata development''' refers to the work that will be done by the initial Wikidata development team—described in the [[meta:Wikidata/Technical proposal|technical proposal]]—in the April 2012 to March 2013 timeframe.</translate>
<translate>[[File:Wikidata statement.png|thumbnail|right|Wikidata terminology]]</translate>
* {{anchor|Page}}<translate><!--T:7-->
'''Page''' means a page or {{anchor|article}}'''article''' in the main space of a wiki. In Wikidata there will be pages in different namespaces (just as in the Wikipedias). Pages in the main namespace of Wikidata will be about [[#Item|items]].</translate>
* {{anchor|Entity}}<translate>
<!--T:20-->
'''Entity''' (also called ''topic'', ''thing'', or ''subject'') is the real-life subject (or abstract concept) a [[#Page|page]] in Wikipedia is about. This thing is not the description itself, or the page—it is the concept the article describes. For now there are three different types of entities: [[#Item|items]], [[#Property|properties]], and [[#Query|queries]].</translate>
* {{anchor|Item}}<translate><!--T:8-->
'''Item''' (also called ''topic'', ''thing'', ''entity'', or ''lemma'') is what a [[#Page|page]] in Wikidata is about. An item is identified by its label and description (see [[meta:Wikidata/Notes/Data model|Data model]]) and by the Wikipedia articles linked to the page.</translate>
<!--T:24-->
'''Statement''' (also called ''fact'', ''claim'', or ''triple'', even though these are not completely correct) is one piece of data about an [[#Item|item]], recorded on one [[#Page|page]]. In the simplest case, a statement is just a "property: value" pair (for example, "Location: Germany"), but often statements can have further qualifiers (such as temporal qualifiers). See [[meta:Wikidata/Notes/Data model|Data model]]. Wikidata makes no assumptions about the correctness of statements, but merely collects and reports them with a [[#Reference|reference]] to a source.</translate>
* {{anchor|Reference}}<translate><!--T:10-->
'''Reference''' (or ''source'') describes the origin of a [[#Statement|statement]] in [[#Wikidata|Wikidata]]. A source is often an [[#Item|item]] in its own right; for example, a book. Wikidata does not aim to answer the question of whether a statement is correct, but merely whether the statement appears in a reference. What constitutes valid references is expected to be a question of debate among the ''[[#Wikidata editors|Wikidata editors]]''.</translate>
* {{anchor|Data}}{{anchor|Metadata}}<translate><!--T:11-->
'''Data''' and '''Metadata''': In Wikidata, '''data''' is the collection of all [[#Statement|statements]] and their [[#Reference|references]]—in general, everything entered by the [[#Wikidata editors|Wikidata editors]] into Wikidata. In contrast, '''metadata''' is all of the data that Wikidata either records about this, or that is embedded in the software and cannot be changed by the editors, e.g. the edit history of a [[#Page|page]], the Wikidata editor who has entered a statement or given a reference.</translate>
* {{anchor|Export}}<translate><!--T:12-->
'''Export''' refers to the way [[#Data|data]] and [[#Metadata|metadata]] from Wikidata are made available for further consumption. The intention is to make machine-readable exports of the data available in widely used formats such as [[#JSON|JSON]] or [[#RDF/XML|RDF/XML]].</translate>
* {{anchor|languageattribute}}<translate>
<!--T:18-->
'''Language attributes''' are the language-specific {{anchor|languageattribute-label}}'''labels''' and {{anchor|languageattribute-description}}'''descriptions''' that are attached to [[#Item|items]]. These are human-readable text to improve understanding of the scope of the item; i.e. the specific type of entity.</translate>
* {{anchor|aliases}}<translate>
<!--T:22-->
'''Aliases''' are alternate names for the [[#Entity|entities]] that can be used for lookup the same way as [[#Languageattribute-label|labels]]. Similar to the the labels they are language specific, but unlike the labels there can be as many aliases as necessary.
</translate>
* {{anchor|sitelinks}}<translate>
<!--T:19-->
'''Site links''' are special links that contain a {{anchor|sitelinks-site}}'''site''' and a {{anchor|sitelinks-title}}'''title''', and go from individual [[#Item|items]] in Wikidata to pages on other sites such as Wikipedia. They are used both for identifying an item from an external site, and as a replacement for interlanguage links. Site links can have attached {{anchor|sitelinks-badge}}'''badges''' and will usually show that a page has been a ''featured article'', or of similar status.</translate>

== Terms in the data model ==
The following terms are relevant for the [[meta:Wikidata/Notes/Data model|data model]] and thus are also helpful for using the Web and internal API. 
* {{anchor|Value}}<translate>
'''Values''' (or ''datavalues'') are the fillers for the properties of a [[#Claim|claim]].</translate>
* {{anchor|Type}}<translate>
'''Types''' (or ''datatypes'') describe the kind a [[#Value|value]] can have. They are defined by the [[#Property|property]] that is used.</translate>
* {{anchor|Snak}}<translate>
'''Snaks''' are internal parts of the data model. Qualifiers are represented as snaks as well as the main property and value of a claim. These elements should not be visible in the user interface, but they will in the Web API.</translate>
* {{anchor|Qualifier}}<translate>
'''Qualifier''' is a part of the [[#Claim|claim]] that says something about the specific claim, often in a descriptive way. A qualifier can specify certain context about the claim, e.g. for which year it holds or other further information.</translate>
* {{anchor|Claim}}<translate><!--T:21-->
'''Claim''' (also called ''fact'' or ''statement'', although this is not entirely correct) is the part of a [[#Statement|statement]] without the [[#Reference|references]].</translate>
* {{anchor|Property}}<translate>
<!--T:23-->
'''Property''' (also called ''member'', or ''field'') is a smaller part of an [[#Item|item]], and are themselves [[#Entity|entities]]. A property is the identificator for a value or set of values inside an item, but not the value or values themself, and each property is described and defined on a special property page.</translate>
* {{anchor|Query}}<translate>
'''Query''' is predefined search across [[#Item|items]], and are themselves [[#Entity|entities]]. A query is the predefined search, and each search is described and defined on a special property page.</translate>
* {{anchor|Statement}}<translate><!--T:9-->

== <translate><!--T:2-->
Related terms</translate> ==

* {{anchor|MediaWiki}}<translate><!--T:13-->
'''MediaWiki''' is the software that runs projects like Wikipedia and Wikimedia Commons; see [[:en:MediaWiki|MediaWiki]].</translate>
* {{anchor|RDF}}<translate><!--T:14-->
'''RDF''' is a W3C standard for the data model of the semantic web; see [[:en:Resource Description Framework|Resource Description Framework]].</translate>
* {{anchor|JSON}}<translate><!--T:15-->
'''JSON''' is a JavaScript-based notation for exchanging data; see [[:en:JSON|JSON]].</translate>
* {{anchor|XML}}<translate><!--T:16-->
'''XML''' is a W3C standard for an extensible markup language; see [[:en:XML|XML]].</translate>
* {{anchor|RDF/XML}}<translate><!--T:17-->
'''RDF/XML''' is a serialization format of RDF in XML; see [[:en:RDF/XML|RDF/XML]].</translate>

<translate>[[Category:Wikidata:Glossary|en]]
[[Category:Wikidata-en]]</translate>
Comment 1 Siebrand Mazeland 2012-11-07 17:24:22 UTC
Simpler scenario to trigger the exception:

Replace contents of [1] with "<translate>" and hit save.

Giving [2] the same contents (page doesn't exist yet), gives expected behaviour on save: "Unbalanced label <translate>."

[1] https://translatewiki.net/w/i.php?title=Project_list&action=edit
[2] https://translatewiki.net/w/i.php?title=Project_list2&action=edit
Comment 2 Siebrand Mazeland 2012-11-07 18:01:06 UTC
Gerrit change #32242 has a patch.
Comment 3 Niklas Laxström 2012-11-09 12:44:07 UTC
Merged. Will be picked up by 1.21wmf4 branch unless someone asks me to backport it to 1.21wmf3.

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


Navigation
Links