Page MenuHomePhabricator

Extension MsCatSelect uses deprecated wgTitle in JavaScript code
Closed, ResolvedPublic

Description

When adding a category to the page with the Category Selector the page is not added to the category. As soon as the 'Add' button is clicked the browser error console shows the warning

Use of "wgTitle" is deprecated. Use mw.config instead

(see 1st screenshot). Initially it appears the category has been added ('Zandbak' in my example on the screenshot) by the Category Selector, but after saving the page, the page in not in the category and a subsequent edit won't show the category in the Category Selector.
(Existing categories do show up in the Category Selector)

Interestingly enough the category name does show up in the Categories section on the page, BUT the corresponding Category page doesn't show the page, which leaves the reader totally puzzled. (see 2nd screenshot: page 'Zandbak test' shows category 'Zandbak')

The behaviour is consisted with the branches REL1_27, REL1_28 and master of MsCatSelect. I tested all 3 versions against MW 1.27

In our MW 1.26 instance using the REL1_26 branch (version ae221c5) of MsCatSelect it does show the same deprecation warning, however it works as expected.

Related Objects

Event Timeline

I have removed the mscatselect extension for additional testing to see if there are no issues with adding categories to a page, and I do have this issue, even without mscatselect. According to here https://www.mediawiki.org/wiki/Topic:T8jd8uxlq4jqb0np the issue maybe with a backlog on the job queue (which I currently have).
Will report back later (or withdraw the bug report here).

After running runJobs.php the job queue was emptied in my test wiki (had 2944 entries, oops!) and the pages showed up on the category page. So that problem is gone.

The warning about wgTitle is still there (using the latest code). Let me know if I can assist with further testing.

PeterBodifee renamed this task from Extension MsCatSelect won't add category to a page in MW 1.27 to Extension MsCatSelect uses deprecated wgTitle in JavaScript code.May 16 2017, 6:03 PM
Sophivorus closed this task as Resolved.EditedApr 28 2020, 4:33 PM
Sophivorus claimed this task.
Sophivorus added a subscriber: Sophivorus.

The latest versions no longer use wgTitle and the initial bug report seems fixed.