Topic on Project:Support desk

Watchlist error after upgrade to 1.18.1

11
ThT (talkcontribs)

After upgrading from 1.10.1. to 1.18.1 the change of the watchlist using the link on the page does not work, instead the message MediaWiki:Watcherrortext turns up. Special:Watchlist works fine. I detected, that the target address generated by the link after action=watch&token= contains a different token as in Special:Preferences#mw-prefsection-watchlist, if that matters.

  • MediaWiki 1.18.1
  • PHP 5.2.14 (apache2handler)
  • MySQL 5.0.26

Any piece of advice is welcome.

Reach Out to the Truth (talkcontribs)

They're different tokens, with different purposes.

ThT (talkcontribs)

Thanks, I assumed so, but wasn't sure. Meanwhile I also checked the template "watch", which we copied from w:en:template:watch. The template generates &action=watch, i.e. without a token, and it works fine. So the token seems to be the reason of the watchlist error, but I don't know how to fix it yet.

Bawolff (talkcontribs)
After upgrading from 1.10.1. to 1.18.1 the change of the watchlist using the link on the page does not work

You mean the link that's part of the skin? If you're using a non-standard skin it could be a bug in that skin.


Wikipedia is using 1.19 which may account for the differences in behavior. (I'm not at my home computer so I can't easily check how/if the behavior changed between versions)

ThT (talkcontribs)

Thanks, but actually it's about the standard skin Vector. Your question brought me to check MonoBook, which shows the same behavior. Then I tried Cologne Blue, and this one works fine.

ThT (talkcontribs)
Cavila (talkcontribs)

The same issue occurs on MW 1.19.2 (Vector, Mozilla + IE). Sure I could set $wgAjaxWatch to "false", but I need it to be set to "true" in order to run Extension:CategoryTree. There is a slim chance that in my case, this is related to a recent upgrade of SMW from 1.8.0.3 to SMW 1.8.0.4, but that doesn't seem very likely.

Ciencia Al Poder (talkcontribs)

Check the JavaScript error console to be sure it has no JavaScript errors when loading the page. Maybe you have any conflicting script that breaks the load of other MediaWiki stuff, including the watch/unwatch tab.

Cavila (talkcontribs)

Sure enough, though I haven't been to locate the issue yet. I'll let you know when I have.

Cavila (talkcontribs)

Using Firebug just helped me to pin the issue down to the following error:

TypeError: $link.attr(...) is undefined

which refers to line 23 (beginning with "accesskeyTip...") in the file .../resources/mediawiki.action/mediawiki/mediawiki.action.watch.ajax.js. The fuller context is as follows:

function updateWatchLink( $link, action, state ) {
	// message keys 'watch', 'watching', 'unwatch' or 'unwatching'.
	var	msgKey = state === 'loading' ? action + 'ing' : action,
		accesskeyTip = $link.attr( 'title' ).match( mw.util.tooltipAccessKeyRegexp ),
		$li = $link.closest( 'li' );
Cavila (talkcontribs)

Could this be bug Bug 47480? If so, what would be the solution?

Reply to "Watchlist error after upgrade to 1.18.1"