Last modified: 2007-07-03 21:27:24 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 T12364, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 10364 - Troubles creating/using attributes
Troubles creating/using attributes
Status: RESOLVED WORKSFORME
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
PC Windows XP
: Normal blocker (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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

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 Semediawiki-user@lists.sourceforge.net.)

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.


Navigation
Links