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)

Strange,

I have all the include statements, even tried directly in LocalSettings.php instead of semantic-bundle, and even withe line uncommented there is no file created. I have deleted all my tests and the Assiged_to property is now empty (except one test), it's of type Page should that matter? There is nothing in my error log. I also run the latest MediaWiki and SemanticBundle. If you have the time to help me, I could give you access to the system if you could send me an email to bare.tullball'at'gmail.com

Best regards


 * If you are not even getting the body text file written then that suggests that the extension isn't getting very far at all. It is either not detecting your Assigned to::Username text on the page or is simply not even being run on page save (thus isn't going to do anything).  Do you get any error displayed on the rendered wiki pages with the error reporting code included at the top of your Localsettings.php file (just below the php opening):

error_reporting(E_ALL); ini_set("display_errors", 1);


 * The "assigned to" code can be on pages of type page no problem. Errortracing can be a bit of chasing ghosts as it is all just a case of chasing things back until you get some aspect of the extension working (even something completely simple like checking that the extension is even called) then from there just pushing on to the next level of the process and working out why it isn't working - all achieved by leaving little breadcrumbs in the code to tell what is happening (either the little bit of "write to text file" code or at the simplest level just a die command).  I suspect, given that it is about the only difference between our installations that the SemanticBundle may have some affect (undesired and unknown conflict or consequence). MLCT 22:08, 24 November 2009 (UTC)

PHP Fatal error
I'm running MW 1.15.1, SMW 1.4.2 and email is all configured and working. When I attempt to save a new page with an Assigned to::Username property embedded, I'm getting this error:


 * PHP Fatal error: Call to undefined method SMWStringValue::getTitle in /var/www/mediawiki/extensions/SemanticTasks/ST_Notify_Assignment.php on line 62

Can anyone please help with this? --simonpt 21:45, 17 November 2009 (UTC)

I'm find the same error. in addition,the usage help is very not clear.

How to use semantic Task Reminder
Hello. I have make the asigned to working by modifying line 64, i.e. $assignee_name = $assignee_user_name[0]. but I find "save page " is too slowly when I use asigned to.

Sencond ,I don't known the meaning and usage of Carbon copy::*,Reminder at::* and the Target date::* property. Additionally,I want to user the reminder feature ,but when I run the ST_CheckForReminders.php in commandline, I found it don't do anthing and only print the 'ST check for reminders'.

would you give some info in detail  about reminder feature ? i.e. how to make reminder working?

Tom Tang 02:20, 29 December 2009 (UTC)