Skip to content

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

@jamesmontalvo3

Description

@jamesmontalvo3

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}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions