Extension talk:Semantic Tasks/LQT Archive 1

Not sending emails
Hello,

I have a problem, I have installed and added the required lines to LocaSettings.php, but the extension is still not working.

I have added the following to the Page since the manual is a little unclear on how to do this, (I have tried with *, username and email) Assigned to::* Assigned to::sombody Assigned to::somebody@anybody.com

But still no email. I do get a email uppon the creation of a new user, so I think this should be ok. Do I need to change the Propperty or something to email?


 * Indeed, I received some feedback recently telling me it doesn't do its job anymore with the current MediaWiki and SMW releases. I'm sorry for that and I won't find time to fix it unless I have personal interest in using it.--Pannini 12:17, 22 October 2009 (UTC)


 * Since I was keen to use this for a project I have worked through the code and have got it back working normally (to some extent). The code that requires a change to get this back working again is line 64 of ST_Notify_Assignment.php, where   should be altered to   - i.e. the 1 to a 0.


 * The original code seemed to be referencing the assignee from the second element of the explode rather than the first. I'm not sure if this was a typo or if changes to SMW code have thus changed what is served up to the explode.  This simple fix is all that is required to get the emails working again.  There is still the small problem that if you have new article (task) created then in the email the area where the task description is reads as:


 * Here is the task description:
 * The database did not find the text of a page that it should have found, named "Test" .


 * This is usually caused by following an outdated diff or history link to a page that has been deleted.


 * If this is not the case, you may have found a bug in the software.
 * Please report this to an administrator, making note of the URL.


 * i.e. the extension is trying to pull article content "$article->getContent" before it has actually been saved and is thus able to be called. However for my purposes this doesn't matter as I won't be sending users the content, but others may want to have a look at a fix. MLCT 20:34, 5 November 2009 (UTC)

Even with the above changes I cannot seem to get it working. It still doesnt send out email. I have verified that the email is working. Any clues?


 * That is all that is required for me to get basic email being sent from the current ST release. I am running it on the latest versions of all components (Mediawiki 1.15.1, Semantic MediaWiki 1.4.3 and Semantic Forms 1.8.5).  All you should need is Assigned to::Username to be placed in the page, and presuming that the wiki has all email functions enabled, the user in question has an email address entered, email enabled (and autoconfirmed etc.) then a mail should be sent out.  If you have the appropriate access to your server then I would suggest you uncomment L74 of ST_Notify_Assignment.php to enable the body output of the email that should be sent (it will write a text file to the root folder of your wiki) to analyse what is being processed.  Save a wiki page with the "assigned to" content and then check the text file, dose it start with "Hello Username,", i.e. is it acquiring the user you entered on the wiki page? MLCT 00:34, 14 November 2009 (UTC)