ST is currently not working with SMW 4.x. We are working on an update that will be available soon.
Extension talk:Semantic Tasks
That's cool! I just hope that the repo does not get forked to some other source location. Keeping fingers crossed.
Is this configuration parameter actually working when using the 2.0.0 release? I guess it will not though I think this is a useful one.
This should be working as of version 2.0.1. See here.
... the configuration parameters $stgPropertyAssignedTo
and $stgPropertyHasAssignee
? I do not see an apparent one.
Tried to install it on MW 1.31 and SMW 3.0. If I enable it, the extension does not recognize that SMW is installed. It displays that it needs SMW and quits.
I believe one of the reasons is that SMW switched to extension registration while this one expects "classic" registration. However even if this would not happen I am pretty sure that this extension will not work either due to other breaking changes in SMW 3.0
Indeed. If I remove the registration check, the extenson shows up in Special:Version without errors. But if I try to use it, the following error appears:
/index.php?title=Vorlage:Neuigkeit&action=submit Error from line 424 of .../extensions/SemanticTasks/SemanticTasks.classes.php: Call to private method SMW\DataValues\PropertyValue::makeUserProperty() from context 'SemanticTasksMailer' Backtrace: #0 ../extensions/SemanticTasks/SemanticTasks.classes.php(166): SemanticTasksMailer::getQueryResults(string, array, boolean) #1 ../extensions/SemanticTasks/SemanticTasks.classes.php(39): SemanticTasksMailer::getAssignees(string, string, User) #2 ../includes/Hooks.php(177): SemanticTasksMailer::findOldValues(WikiPage, User, WikitextContent, string, integer, NULL, NULL, integer, Status) #3 ../includes/Hooks.php(205): Hooks::callHook(string, array, array, NULL) #4 ../includes/page/WikiPage.php(1618): Hooks::run(string, array) #5 ../includes/EditPage.php(2214): WikiPage->doEditContent(WikitextContent, string, integer, boolean, User, string, array, integer) #6 ../includes/EditPage.php(1506): EditPage->internalAttemptSave(array, boolean) #7 ../includes/EditPage.php(652): EditPage->attemptSave(array) #8 ../includes/actions/EditAction.php(60): EditPage->edit() #9 ../includes/actions/SubmitAction.php(38): EditAction->show() #10 ../includes/MediaWiki.php(500): SubmitAction->show() #11 ../includes/MediaWiki.php(294): MediaWiki->performAction(Article, Title) #12 ../includes/MediaWiki.php(861): MediaWiki->performRequest() #13 ../includes/MediaWiki.php(524): MediaWiki->main() #14 ../index.php(42): MediaWiki->run() #15 {main}
It would have been nice to be proven wrong.
PHP Warning: Â require_once(/app/www/mediawiki-1.28.2/extensions/SemanticTasks/../../maintenance/maintenance.php): failed to open stream: No such file or directory in /app/www/mediawiki-1.28.2/extensions/SemanticTasks/ST_CheckForReminders.php on line 6
PHP Fatal error: Â require_once(): Failed opening required '/app/www/mediawiki-1.28.2/extensions/SemanticTasks/../../maintenance/maintenance.php' (include_path='.:/usr/share/pear:/usr/share/php') in /app/www/mediawiki-1.28.2/extensions/SemanticTasks/ST_CheckForReminders.php on line 6
shouldn't maintenance.php be Maintenance.php (with leading uppercase "M")?
Indeed, the file in core (master) starts uppercase. Dunno when this changed.
Upon saving a page that assignes a value to the property Assigned to:: the follwing error is displayed.
Fatal error: Call to a member function getEmail() on a non-object in .../extensions/SemanticTasks/SemanticTasks.classes.php on line 293
Only when I deactivate the extension I can save the page.
I think this issue is more related with mail configuration and not to the extension.
I'm getting the same error. Also when I save something. It also goes away if I remove the extension.
Please try the following change in that file, at around line 179:
$assignee_name = $task_assignees->getNextText( SMW_OUTPUT_WIKI ); /** @todo Create User object */ $assignee_name = explode( ":", $assignee_name ); + + if ( !isset( $assignee_name[1] ) ) { + return array(); + } $assignee_name = $assignee_name[1];
A bug report was opened for this at phabricator:T132321
The class include "/includes/SMW_QueryProcessor.php"
Comment this code line and SemanticTasks works!!
This extension seems to break with the above versions. It leads to an error upon editing any page:
Somebody tried to use spaces in a cache title! (Assigned to) Backtrace:
- 0 /home/jfield2/public_html/mediawiki/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_Sql3SmwIds.php(302): SMWSql3SmwIds->setCache('Assigned to', 102, , , 0, )
- 1 /home/jfield2/public_html/mediawiki/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_Sql3SmwIds.php(225): SMWSql3SmwIds->getDatabaseIdAndSort('Assigned to', 102, , , , true, false)
- 2 /home/jfield2/public_html/mediawiki/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_Sql3SmwIds.php(327): SMWSql3SmwIds->getSMWPageIDandSort('Assigned to', 102, , , , true, false)
- 3 /home/jfield2/public_html/mediawiki/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_SQLStore3_Readers.php(166): SMWSql3SmwIds->getSMWPageID('Assigned to', 102, , , true)
- 4 /home/jfield2/public_html/mediawiki/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_SQLStore3.php(298): SMWSQLStore3Readers->getPropertyValues(Object(SMWDIWikiPage), Object(SMWDIProperty), NULL)
- 5 /home/jfield2/public_html/mediawiki/extensions/SemanticMediaWiki/includes/dataitems/SMW_DI_Property.php(203): SMWSQLStore3->getPropertyValues(Object(SMWDIWikiPage), Object(SMWDIProperty))
- 6 /home/jfield2/public_html/mediawiki/extensions/SemanticMediaWiki/includes/storage/SMW_PrintRequest.php(155): SMWDIProperty->findPropertyTypeID()
- 7 /home/jfield2/public_html/mediawiki/extensions/SemanticMaps/includes/SM_GeoCoordsHooks.php(46): SMWPrintRequest->getTypeID()
- 8 [internal function]: SMGeoCoordsHooks::addGeoCoordsDefaultFormat(false, Array, Array)
- 9 /home/jfield2/public_html/mediawiki/includes/Hooks.php(216): call_user_func_array('SMGeoCoordsHook...', Array)
- 10 /home/jfield2/public_html/mediawiki/includes/GlobalFunctions.php(3823): Hooks::run('SMWResultFormat', Array)
- 11 /home/jfield2/public_html/mediawiki/extensions/SemanticMediaWiki/includes/params/SMW_ParamFormat.php(101): wfRunHooks('SMWResultFormat', Array)
- 12 /home/jfield2/public_html/mediawiki/extensions/SemanticMediaWiki/includes/params/SMW_ParamFormat.php(48): SMWParamFormat->getDefaultFormat()
- 13 /home/jfield2/public_html/mediawiki/extensions/SemanticMediaWiki/includes/params/SMW_ParamFormat.php(140): SMWParamFormat->getValidFormatName('auto')
- 14 /home/jfield2/public_html/mediawiki/extensions/Validator/includes/definitions/ParamDefinition.php(719): SMWParamFormat->formatValue('auto', Object(Param), Array, Array)
- 15 /home/jfield2/public_html/mediawiki/extensions/Validator/includes/Param.php(213): ParamDefinition->format(Object(Param), Array, Array)
- 16 /home/jfield2/public_html/mediawiki/extensions/Validator/includes/Validator.php(341): Param->format(Array, Array, Object(ValidatorOptions))
- 17 /home/jfield2/public_html/mediawiki/extensions/Validator/includes/Validator.php(281): Validator->doParamProcessing()
- 18 /home/jfield2/public_html/mediawiki/extensions/SemanticMediaWiki/includes/SMW_QueryProcessor.php(59): Validator->validateParameters()
- 19 /home/jfield2/public_html/mediawiki/extensions/SemanticTasks/SemanticTasks.classes.php(356): SMWQueryProcessor::getProcessedParams(Array, Array)
- 20 /home/jfield2/public_html/mediawiki/extensions/SemanticTasks/SemanticTasks.classes.php(135): SemanticTasksMailer::getQueryResults('Form:Server...', Array, false)
- 21 /home/jfield2/public_html/mediawiki/extensions/SemanticTasks/SemanticTasks.classes.php(31): SemanticTasksMailer::getAssignees('Assigned to', 'Form:Server', Object(User))
- 22 [internal function]: SemanticTasksMailer::findOldValues(Object(WikiPage), Object(User), '?Thi...', , 0, NULL, NULL, 98, Object(Status))
- 23 /home/jfield2/public_html/mediawiki/includes/Hooks.php(216): call_user_func_array('SemanticTasksMa...', Array)
- 24 /home/jfield2/public_html/mediawiki/includes/GlobalFunctions.php(3823): Hooks::run('ArticleSave', Array)
- 25 /home/jfield2/public_html/mediawiki/includes/WikiPage.php(1434): wfRunHooks('ArticleSave', Array)
- 26 [internal function]: WikiPage->doEdit('<noinclude>?Thi...', , 98)
- 27 /home/jfield2/public_html/mediawiki/includes/Article.php(1820): call_user_func_array(Array, Array)
- 28 /home/jfield2/public_html/mediawiki/includes/EditPage.php(1451): Article->__call('doEdit', Array)
- 29 /home/jfield2/public_html/mediawiki/includes/EditPage.php(1451): Article->doEdit('<noinclude>?Thi...', , 98)
- 30 /home/jfield2/public_html/mediawiki/includes/EditPage.php(986): EditPage->internalAttemptSave(Array, false)
- 31 /home/jfield2/public_html/mediawiki/includes/EditPage.php(379): EditPage->attemptSave()
- 32 /home/jfield2/public_html/mediawiki/includes/actions/EditAction.php(51): EditPage->edit()
- 33 /home/jfield2/public_html/mediawiki/includes/actions/EditAction.php(71): EditAction->show()
- 34 /home/jfield2/public_html/mediawiki/includes/Wiki.php(427): SubmitAction->show()
- 35 /home/jfield2/public_html/mediawiki/includes/Wiki.php(304): MediaWiki->performAction(Object(Article))
- 36 /home/jfield2/public_html/mediawiki/includes/Wiki.php(536): MediaWiki->performRequest()
- 37 /home/jfield2/public_html/mediawiki/includes/Wiki.php(446): MediaWiki->main()
- 38 /home/jfield2/public_html/mediawiki/index.php(59): MediaWiki->run()
- 39 {main}
I filed bug 43053 to address this issue. Cheers
I am seeing conflicts when trying to use tasks with semantic mediawiki 1.6 and higher. This all seems to circle around SMW's use of the validator extension, as this is the point it joined the code. Is anyone else having these issues? Mediawiki 1.18.2 or 1.19 vanilla on an empty wiki doesn't make any difference, but if I use SMW 1.5.6 tasks works fine, but anything 1.6 and above gives no task emails (no errors either). Putting debug breadcrumbs in the code suggests that the SMW query that tasks calls leads to the "assigned to" response being the pagename rather than the text/username following the "assigned to" text.
I shall play around with the code, looking at the diffs that occurred between 1.5.6 and 1.6 in SMW_QueryProcessor.php, as I am happy to hack my own installation to get this working rather than waiting for a release.
Hi,
i get always above error during saving a page with "[[Assigned to::User:<USERNAME>]]" property. Is that a known issue?
following versions i use: MediaWiki 1.18.1 PHP 5.3.6-13 Semantic Bundle (version 20120308) yesterday with version 20120124) SemanticTasks 1.4.1
Thanks