Extension talk:Semantic Watchlist


Parser function to display results of the list

We thought having a parser function such as #swl might come in handy, so that the results of the watch list can be shown somewhere else. {{#swl: ...}} could show the results of the current user in an portal or the user page together with other data collected without having the switch to the watch list itself. MWJames 00:37, 1 August 2011 (UTC)

A parser function that displays changes for the current users seems odd, because parser functions are usually placed in pages, which are usually cached, ie can't display "current" stuff. Could have some smart integration with pages in the User NS though, or you could have a special page for this kind of stuff. Lot's of possibilities, all which can be implemented using the API modules SWL provides. For this you'd need action=semanticwatchlist. Jeroen De Dauw 01:31, 1 August 2011 (UTC)

Unable to delete

I am unable to delete the watchlist group I created after it got hosed up. It got hosed by me deleting a page that contained properties I was watching. Restoring the page didn't fix it. Internal server error on Semantic Watchlist page. I had to stop watching the group in order to see the Watchlist page again.

Is this normal behavior? Conanthlibrarian 18:08, 5 February 2012 (UTC)

It's probably normal in the sense that this is happening for everyone, but it definitely ought to get fixed :) Right now the extension is still very much in beta stage and it needs a pile of polishing and more testing to become stable. Unfortunately I myself do not have any time I can spend on this right now. Jeroen De Dauw 19:41, 5 February 2012 (UTC)
Bugzilla r37123 should solve this problem MWJames (talk) 00:44, 26 May 2012 (UTC)

No items in watchlist

I am not seeing any changes in the watchlist after creating a group and subscribing to the group. There are also no entries in the swl database tables. This feature seems to be working on http://smw.referata.com. MediaWiki 1.18.3/SMW 1.7.1 Dgennaro 19:34, 4 June 2012 (UTC)

http://sourceforge.net/mailarchive/forum.php?thread_name=CAMhmagBtzSXW34_pkx5Lzwx%2BKAaCxPMS3GGW9c0m9ZRx7YPSyQ%40mail.gmail.com&forum_name=semediawiki-user Jeroen De Dauw (talk) 11:37, 6 June 2012 (UTC)
I think the issue here is how SWL handles namespace/category/concept names. It seems to require an underscore. I notice that your watchlist category name is "Calendar items". What if you change it to "Calendar_items"? I had a similar issue and adding the underscore worked for me.
I have submitted bug report to Bugzilla. Mtyeh411 (talk) 18:47, 17 July 2012 (UTC)
Thanks, I'll try to have a look at this next time I poke at the extension :) Jeroen De Dauw (talk) 19:44, 21 July 2012 (UTC)

filter watchlist by group

I was thinking it would be helpful to be able to filter your semantic watchlist by each watchlist group. Is this in-scope? Thoughts? Mtyeh411 (talk) 18:51, 17 July 2012 (UTC)

That would be a nice addition and is supported by the backend. If someone wants to implement this feature I'd be happy to provide some support. Jeroen De Dauw (talk) 14:51, 20 July 2012 (UTC)

Semantic Watchlist not working properly?

I am able to create new groups on SWL, but there are no options that allow me to add properties or pages to the group, which the screenshots from the wiki suggest should be there. Can someone check the linked screenshot of my WatchlistConditions page to confirm whether or not the items are in fact missing, or if I am perhaps not understanding the proper way to add content? The Check Installation special page indicates nothing is wrong, and I have the appropriate permissions, as far as I am aware, to create and modify new groups. I can provide a link to the wiki itself if needed.

Thanks.

http://img.photobucket.com/albums/v13/Apathy/swlerror-1.png 128.54.51.181 23:18, 26 September 2012 (UTC)

Are you using the latest release? Is there any JavaScript error on the page? Jeroen De Dauw (talk) 13:11, 27 September 2012 (UTC)
No errors that I can see show up. The screenshot provided is all I get. 128.54.38.254 20:22, 5 October 2012 (UTC)
Furthermore, we are using mediawiki 1.17.2. I believe that should satisfy this extensions requirement of 1.17.0 or higher. 128.54.38.254 20:40, 5 October 2012 (UTC)
It should. With the information you provided I cannot tell what's going wrong. This does work for other people. You could try to get the latest code from git, but that will need MW 1.18 or later.
git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/SemanticWatchlist.git Jeroen De Dauw (talk) 20:19, 10 October 2012 (UTC)

[gelöst | done ]Database error

Datenbankfehler
Es ist ein Datenbankfehler aufgetreten. Der Grund kann ein Programmierfehler sein. Die letzte Datenbankabfrage lautete:
(SQL-Abfrage versteckt)
aus der Funktion „DatabaseBase::delete“. Die Datenbank meldete den Fehler „1146: Table 'usr_web11_lexikon.lexswl_users_per_group' doesn't exist (localhost)“.

Product Version

MediaWiki 1.19.1

PHP 5.3.3-7+squeeze14

MySQL 5.1.49-3 Kujawa0708 18:26, 10 October 2012 (UTC)

You need to run update.php Jeroen De Dauw (talk) 20:15, 10 October 2012 (UTC)
Thanks !!!! Kujawa0708 (talk) 23:09, 11 October 2012 (UTC)

New Values

What about when a new value is added to the property in that category/namespace/concept? Ex. when a new page is created with a value for that property. I would consider that a change.

What would it take to add this feature in? maybe a checkbox(s) to include the addition and/or deletion of pages. Dgennaro 20:44, 31 January 2013 (UTC)

This should already be there. If it's not, this is a bug. Jeroen De Dauw (talk) 15:31, 1 February 2013 (UTC)
This feature is not working properly. There is no new entry in the database when a new page is created with a value of the 'watched' property. Dgennaro 15:36, 6 February 2013 (UTC)
I have the same problem. It there a chance to fix it? Nilsmuc (talk) 12:05, 21 June 2013 (UTC)
I think that is a problem with the sequence auf processing. If I set a category and a property in the same call, SWL didn’t send a mail. If the category was defined before, the mail was sent. Nilsmuc (talk) 17:27, 24 June 2013 (UTC)
Has the problem been identified? If I create the page with semantic forms based on a template which at first sets the category and subsequently the attribute values, I do not get an e-mail when creating the page.
Although my test properties already exist in swl_groups.group_properties (WatchedAttribute1|WatchedAttribute2), no record is generated in swl_changes when a page with these attributes is created. It is the first change after the creation which leads to the generation of the corresponding record and releases the first e-mail. Kappa (talk) 16:14, 13 November 2013 (UTC)
This is now fixed. See https://github.com/SemanticMediaWiki/SemanticWatchlist/issues/28 Jnatividad (talk) 14:50, 8 September 2014 (UTC)

problem with concept watchlist

I use am simple concept:

{{#concept: [[Kategorie:Person]][[Geburtstag::+]]| Alle Personen mit Geburtstag}}

and add a semantic watchlist on it. After that I got a PHP error when I save a page:

PHP Fatal error:  Call to undefined function getQueryResult() in /usr/src/extensions/SemanticWatchlist/includes/SWL_Group.php on line 437, referer: http://mysite/index.php?title=Benutzer:Doni101&action=edit

The problem is the result of $result = smwfGetStore()->getQueryResult( $query ); It ist always 0. How can I fix that?


Note: There is a little bug in SemanticWatchlist.hooks.php. $egSWLEnableSelfNotify must be global. Nilsmuc (talk) 11:45, 5 February 2013 (UTC)

What version of SMW are you using, and which storage backend? Jeroen De Dauw (talk) 13:20, 5 February 2013 (UTC)
We use the old storage (SMWSQLStore2) backend and we can't switch at the moment. Semantic MediaWiki Version 1.8. Nilsmuc (talk) 14:20, 5 February 2013 (UTC)
With the "new" storage, I got PHP error:
PHP Fatal error: Call to a member function getCount() on a non-object in [...]SWL_Group.php Nilsmuc (talk) 05:35, 25 June 2013 (UTC)
I am having this very error as well, on two different wikis. As a result, all pages cease to load automatically after having been saved. Is there any remedy known for this issues? Hans Oleander (talk) 17:12, 24 February 2014 (UTC)
https://github.com/SemanticMediaWiki/SemanticWatchlist/issues/3 Jeroen De Dauw (talk) 23:47, 1 March 2014 (UTC)

Multiple properties

I created a semantic watchlist group with multiple properties and noticed that the behavior is different for properties "a|b" and "a| b". The leading (and trailing?) whitespace is interpreted as part of the property name.

Is there a reason why this is necessary?

If not, I suggest that leading and trailing whitespaces in the properties are removed before interpreting the property names. 145.23.254.101 11:39, 17 May 2013 (UTC)

Can anyone help me with this? Royvandenberg (talk) 15:09, 5 July 2013 (UTC)

Problem with internal objects

I created a semantic watchlist group for some properties in a namespace. The pages in that namespace contain internal objects. I added the properties of that internal object to the watchlist group. When I add/remove/change an internal object on a page in the namespace, I receive an E-mail that suggests that 'wmo id' is new. The internal object is a 'Betrokkene', with properties 'Betrokkene a', 'Betrokkene b', 'Betrokkene c', etc. There is no relation between properties 'Betrokkene *' and 'Station Wmo id'.

E-mail:

Property changes on Station:Test station: 
Station Wmo id
New: wmo id

This seems to be a bug. 145.23.254.101 11:47, 17 May 2013 (UTC)

Can anyone help me with this? Royvandenberg (talk) 15:10, 5 July 2013 (UTC)
I suspect this extension does not support internal objects. Don't quite remember though. Jeroen De Dauw (talk) 17:21, 7 July 2013 (UTC)

Send emails only if property holds a certain value?

Hi Jeroen,
I have a build a task system with a property holding the user who was assigned to this task.
Is it possible to send emails only if the property holds a certain value?
That means: user A should get an notification if the value of the property was set to A, user B should get an notification if the value is B and so on.
Thanks! Stefahn (talk) 19:47, 21 July 2013 (UTC)
This is not currently possible to specify, though the extension could be enriched to include that functionality without to much work. Jeroen De Dauw (talk) 06:52, 9 August 2013 (UTC)
Thanks for the info.
Maybe others would like that functionality too... :)
Can I file a feature request so that this idea won't get lost? Stefahn (talk) 07:39, 9 August 2013 (UTC)
Yeah, on Bugzilla Jeroen De Dauw (talk) 07:29, 10 August 2013 (UTC)
Done :)
See https://bugzilla.wikimedia.org/show_bug.cgi?id=52695 Stefahn (talk) 07:59, 10 August 2013 (UTC)
Has this functionality been implemented? Hazeldee0512 (talk) 15:41, 12 September 2017 (UTC)

Properties of type "date"

Hi all,

I want our wiki to send notifications upon a change of certain pages. As I usually have the propery "date" on relevant wiki pages I configured a notification group accordingly.

Now it seems, that a change of the property "date" does not trigger the extensions as long as the type of the property "date" is "date". Notificatins work, if the type of the property "date" is set to "string".

Any ideas?

Moritz 217.89.141.242 14:35, 23 September 2013 (UTC)

Semantic Watchlist not detecting changes

I've set up a property, and a watchgroup for values of that property, and I'm watching the property. However, when I change it, I get no messages and, when I go to the page title=Special:SemanticWatchlist it always says:

You have no items on your semantic watchlist."

I'm not sure if it's connected, but, on this site, the mediawiki site, my preferences show:

Email confirmation: Your email address was confirmed on 17 December 2013 at 14:15.

	 Enable email from other users
	 Send me copies of emails I send to other users
	 Email me when a page or file on my watchlist is changed
	 Email me on replies to a thread I am watching

But on my wiki I only see the options:

Email confirmation: Your email address was confirmed on 9 March 2014 at 10:11.

	 Enable email from other users
	 Send me copies of emails I send to other users Fustbariclation (talk) 10:42, 9 March 2014 (UTC)
Filed at https://github.com/SemanticMediaWiki/SemanticWatchlist/issues/14 Jeroen De Dauw (talk) 20:28, 18 March 2014 (UTC)
Any ideas about how I'd go about debugging this?
E-mail is working - I can use the EmailUser and it works:
http://kchclinics.com/wiki/index.php?title=Special:EmailUser/WikiSysop
Watch pages are working. I can set up a page in the watchlist, then create the page, and it shows in the watchlist.
However, the e-mail doesn't turn up - despite having set it up, as I said above.
What log or .php script should I be looking at to find out what is failing?
Fustbariclation (talk) 00:21, 14 April 2014 (UTC)

How do I modify the format of the e-mail sent?

I'd like to set the subject and text of the e-mail that is sent when a watched item changes, but I can't find where the text of the e-mail is set.

How can I configure the email to contain the information I'd like it to contain in the format I'd like, rather than just:

Subject: Properties have changed at page name

and

Text:

" One or more properties you watch at site name' have been changed by use at time and date. You can view these and other .. " Fustbariclation (talk) 12:29, 12 July 2014 (UTC)

You may change the system message on wiki by editing, e.g. "MediaWiki:Swl-email-propschanged" and "MediaWiki:Swl-email-propschanged-long" [[kgh]] (talk) 10:13, 13 July 2014 (UTC)

When I create a new page, it seems not to see this as a change to the property

I'm watching a property. I create a new page with that property - nothing happens.

I change the value of the property on the new page - and it triggers.

How do I get it to trigger on the new page? After all creation is a change.. Fustbariclation (talk) 16:59, 12 July 2014 (UTC)

I'm also experiencing this issue. Is there a config we can change to enable alerts on new items? Special:Contributions/SMW-user 11:51, 16 July 2014 (UTC)

Error in SpecialWatchlistConditions.php and SpecialSemanticWatchlist.php

There is a problem with the Extension right now:

Fatal error: Call to a member function text() on a non-object in /var/www/core/extensions/SemanticWatchlist/specials/SpecialWatchlistConditions.php on line 31

Commenting the two parts -- another or rather the same can be found in the SpecialSemanticWatchlist.php (line 41) -- leads to the result that on the one hand the extension can be used, while at another the display of the proper references in the special pages is missing of course.

And .... does this extensions have a composer entry? I tried numerous ways of writing the name of the extensions but to no avail. Temptuousinsolence (talk) 09:56, 21 October 2014 (UTC)

Notice: Undefined variable: type in /var/www/core/extensions/SemanticWatchlist/src/MediaWiki/Hooks/GetPreferences.php on line 100

Notice: Undefined variable: name in /var/www/core/extensions/SemanticWatchlist/src/MediaWiki/Hooks/GetPreferences.php on line 102
After I attempted to watch a group and did an edit, this error appeared.
LocalSettings.php has this entry:
$egSWLEnableSelfNotify = true; Temptuousinsolence (talk) 13:55, 22 October 2014 (UTC)
This is the result of a regression introduced by [0].
[0] https://gerrit.wikimedia.org/r/#/c/150550/ MWJames (talk) 17:20, 22 October 2014 (UTC)
The patches still do not work. I did not trace the error. I simply commented out the following lines (which contain errors), and then version 1.0alpha works fine (at least for me, I did not check which function is missing):
  • SpecialWatchlistConditions.php: comment out line 31
    #return wfMessage( 'special-' . strtolower( $this->getName()) )->text() );
    
  • SpecialSemanticWatchlist.php: comment out line 40
    #return wfMessage( 'special-' . strtolower( $this->getName() )->text() );
    
    Kappa (talk) 17:43, 24 November 2014 (UTC)

Prerequisites For SWL

I don't want to use the complete Semantic MediaWiki and want to use only Semantic Watchlist extension. Is this required to have SMW installed to use this extension? Could someone provide the list of prerequisites to install this extension on my mediawiki? Rahultyagi76 (talk) 11:26, 2 May 2016 (UTC)

This is not possible. You imperatively need to have Semantic MediaWiki installed to be able to use this extension. The Semantic Watchlist extension actually provides no functionality without the presence of Semantic MediaWiki. [[kgh]] (talk) 11:30, 2 May 2016 (UTC)

Error from line 304 of /mediawiki-1.29.1/extensions/SemanticWatchlist/specials/SpecialSemanticWatchlist.php: Call to undefined method ApiMain::getResultData()

Installed 1.1.0 version of this extension but sometimes when 'Semantic watchlist' clicked then the error from subject is thrown.

SMW has version 2.5.4

I found that ApiBase::getResultData() was depreciated in 1.25 mediawiki but do not understand how to fix script, Victor Itman (talk) 17:10, 16 October 2017 (UTC)

I am seeing this error too except from line 302. MW 1.30, SMW 2.5.6. Is there a solution yet? Hutchy68 (talk) 16:42, 28 August 2018 (UTC)
Well, it looks like it is fixed in master but not released.
return $api->getResult()->getResultData( null, [
   'BC' => [],
   'Types' => [],
   'Strip' => 'all',
 ] );
Shouldn't this be updated so a composer install can update to the latest. Right now it is still installing 1.1.0 released in April 2016. Hutchy68 (talk) 17:02, 28 August 2018 (UTC)

MW 1.30/31 compatibility status

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Does anyone know if this extension is capable of being used with MW 1.30 or 1.31? Revansx (talk) 17:38, 31 July 2019 (UTC)

It is installed on sandbox and not complaining in a way. Same when this wiki was using 1.30 and 1.31. Cannot tell it the intended functionality is working though. What did your test of this extension on the mentioned versions reveal? [[kgh]] (talk) 20:07, 31 July 2019 (UTC)
actually this doesn't do what I am looking for. I thought it would make the list a watchers for a given page part of the page's properties, but this doesn't do that. I think what I'm hoping to do could be part or SESP [1].
[1] Extension:Semantic_Extra_Special_Properties Revansx (talk) 21:07, 31 July 2019 (UTC)
I'm looking to be able to perform a semantic query like:
{{#ask:[[Category:something]][[Has Watcher::~*User:jsmith*]]|?Watchers|?VisitedWatchers|format=table}}
Revansx (talk) 21:13, 31 July 2019 (UTC)
This is indeed out of scope of this extension. [[kgh]] (talk) 22:37, 31 July 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

MW 1.32: Fix for 'Call to undefined function wfRunHooks()'

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


change all occurrences of wfRunHooks to Hooks::run MW Kappa (talk) 14:09, 30 January 2020 (UTC)

Thanks for noting. I created an issue on GitHub. [[kgh]] (talk) 20:56, 30 January 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
Category:Talk pages using deprecated source tags