Last modified: 2007-07-03 21:27:24 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 10364 - Troubles creating/using attributes
Troubles creating/using attributes
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
PC Windows XP
: Normal blocker (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-06-25 09:20 UTC by MMHein
Modified: 2007-07-03 21:27 UTC (History)
1 user (show)

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


Description MMHein 2007-06-25 09:20:55 UTC

On my WinXP box Iā€™m running Apache 2.2.3, MySQL 5.0.27, PHP 5.2.0, MediaWiki 1.10 and Semantic MediaWiki 0.7.

I've create a page called 'Attribute:MyIntVar' which contains 'Has type::Type:Integer'. This worked just as it was supposed to, there's a 'Facts about MyIntVar' box, which states under 'Special properties': 'Has type' 'Type:Integer', and under 'Pages using the attribute "MyIntVar"': Showing 0 pages using this relation.

When creating another page, containing somewhere 'MyIntVar:=4711', the 'Facts about' box displays 'MyIntVar' 'Oops! No type defined for attribute'. When I click 'MyIntVar' I'm taken to the corresponding attribute page.

Under 'Special:Attributes' this attribute doesn't show up, under 'Special:Unused Attributes' it does.

Deleting the pages just created, and re-creating them again, doesn't change anything.

Creating pages and attributes using different names is to no avail, either.

- Martin
Comment 1 S Page 2007-07-03 21:27:24 UTC
(I think you also discussed this problem on

SMW knows you've got a MyIntVar page with a "Has type" special property, knows it's in the SMW_NS_ATTRIBUTE namespace (since it shows in Special:Unused Attributes), yet when parsing a page using the MyIntVar attribute, it cannot find the "Has type" special property for the attribute.  Weird.

To debug this further you either need to look at the underlying smw_attributes and smw_specialprops tables, or debug SMWTypeHandlerFactory::getTypeHandler in SMW_Datatype.php, or both.

* If your mediawiki language is not English then you must translate all the special properties, e.g.
  [[Hat Datentyp::Datentyp:Zeichenkette]]
for German.  But I would expect more to go wrong if this were your problem.

* Do relations work OK?

* Are you using other custom namespaces?  If so see the comment in INSTALL.

I'm setting this WORKSFORME but would love to figure out what is causing the problem for you.

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