Topic on Extension talk:Semantic Watchlist

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"