Jump to content

Extension talk:Semantic Watchlist

About this board

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

2
Summary by Kghbln

Tracked as issue 93 on GitHub

MW Kappa (talkcontribs)

change all occurrences of wfRunHooks to Hooks::run

Kghbln (talkcontribs)

MW 1.30/31 compatibility status

5
Summary by Kghbln

Appears to be working, at least it does not give fatals up to MW 1.33.x

Revansx (talkcontribs)

Does anyone know if this extension is capable of being used with MW 1.30 or 1.31?

Kghbln (talkcontribs)

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?

Revansx (talkcontribs)

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 (talkcontribs)

I'm looking to be able to perform a semantic query like:

{{#ask:[[Category:something]][[Has Watcher::~*User:jsmith*]]|?Watchers|?VisitedWatchers|format=table}}
Kghbln (talkcontribs)

This is indeed out of scope of this extension.

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

3
It4history (talkcontribs)

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,

Hutchy68 (talkcontribs)

I am seeing this error too except from line 302. MW 1.30, SMW 2.5.6. Is there a solution yet?

Hutchy68 (talkcontribs)

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.

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

Send emails only if property holds a certain value?

6
Stefahn (talkcontribs)

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!

Jeroen De Dauw (talkcontribs)

This is not currently possible to specify, though the extension could be enriched to include that functionality without to much work.

Hazeldee0512 (talkcontribs)

Has this functionality been implemented?

Reply to "Send emails only if property holds a certain value?"

Prerequisites For SWL

2
Rahultyagi76 (talkcontribs)

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?

Kghbln (talkcontribs)

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.

Reply to "Prerequisites For SWL"

Error in SpecialWatchlistConditions.php and SpecialSemanticWatchlist.php

4
Temptuousinsolence (talkcontribs)

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 (talkcontribs)

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;

MWJames (talkcontribs)
Kappa~mediawikiwiki (talkcontribs)

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() );
    

This post was posted by Kappa~mediawikiwiki, but signed as Kappa.

Reply to "Error in SpecialWatchlistConditions.php and SpecialSemanticWatchlist.php"

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

2
Fustbariclation (talkcontribs)

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..

138.162.0.41 (talkcontribs)

I'm also experiencing this issue. Is there a config we can change to enable alerts on new items?

This post was posted by 138.162.0.41, but signed as SMW-user.

Reply to "When I create a new page, it seems not to see this as a change to the property"
Dgennaro (talkcontribs)

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.

Jeroen De Dauw (talkcontribs)

This should already be there. If it's not, this is a bug.

Dgennaro (talkcontribs)

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.

Nilsmuc (talkcontribs)

I have the same problem. It there a chance to fix it?

Nilsmuc (talkcontribs)

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.

Kappa~mediawikiwiki (talkcontribs)

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.

This post was posted by Kappa~mediawikiwiki, but signed as Kappa.

Reply to "New Values"

[gelöst | done ]Database error

3
178.25.209.13 (talkcontribs)
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

This post was posted by 178.25.209.13, but signed as Kujawa0708.

Reply to "[gelöst | done ]Database error"

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

2
Fustbariclation (talkcontribs)

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 .. "

Kghbln (talkcontribs)

You may change the system message on wiki by editing, e.g. "MediaWiki:Swl-email-propschanged" and "MediaWiki:Swl-email-propschanged-long"

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