Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addCategoryToWatchlist.php use undefined method WatchedItem::fromUserTitle() #90

Open
jamesmontalvo3 opened this issue Nov 28, 2018 · 1 comment

Comments

@jamesmontalvo3
Copy link
Contributor

Maintenance script addCategoryToWatchlist.php failing with the following:

On Meza:

sudo WIKI=mywiki php /opt/htdocs/mediawiki/extensions/WatchAnalytics/maintenance/addCategoryToWatchlist.php --usernames=Someuser --categories=Somecategory
Start processing Category:Person

Adding watchers to [[Some Page]]...
    ...checking Someuser... [b7d62872c3b93403c123b18d] [no req]   Error from line 119 of /opt/htdocs/mediawiki/extensions/WatchAnalytics/maintenance/addCategoryToWatchlist.php: Call to undefined method WatchedItem::fromUserTitle()
Backtrace:
#0 /opt/htdocs/mediawiki/maintenance/doMaintenance.php(94): WatchAnalyticsAddCategoryToWatchlist->execute()
#1 /opt/htdocs/mediawiki/extensions/WatchAnalytics/maintenance/addCategoryToWatchlist.php(145): require_once(string)
#2 {main}
@cicalese
Copy link

That method and addWatch() were deprecated in MW 1.27 and subsequently removed. For MW 1.36+, use the WatchlistManager class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants