Last modified: 2012-06-05 22:14:00 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 T37509, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 35509 - setting a property with a special property value of type date causes fatal error on data refresh (1.7.1)
setting a property with a special property value of type date causes fatal er...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Unprioritized normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-26 23:17 UTC by [[kgh]]
Modified: 2012-06-05 22:14 UTC (History)
3 users (show)

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


Attachments

Description [[kgh]] 2012-03-26 23:17:52 UTC
When setting a regular property by querying for the value of a special property of type date like e.g.

{{#set:Has revision date={{#show:{{PAGENAME}}|?Modification date}}}}

one gets the following error upon refreshing the semantic data:

PHP Fatal error:  Call to a member function getYear() on a non-object in /.../extensions/SemanticMediaWiki/includes/datavalues/SMW_DV_Time.php on line 839

Probably this also applies to special property "Creation date".

I know that it is not possible to set the value a special property manually, but in this case I am setting a regular property by querying for the value of a special property. Thus I believe that this is a valid bug.
Comment 1 [[kgh]] 2012-06-05 22:14:00 UTC
I just successfully tested this [1] with SMW 1.8 alpha. Thus closing this bug as RESOLVED FIXED. Thank you for the fix.

[1] http://scratchpad.referata.com/wiki/35509_%28bug%29

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


Navigation
Links