Page MenuHomePhabricator

Users left staring at rcfilters-spinner
Closed, InvalidPublicBUG REPORT

Description

Users are left staring at rcfilters-spinner on e.g.,
https://radioscanningtw.jidanni.org/index.php?title=%E7%89%B9%E6%AE%8A:%E8%BF%91%E6%9C%9F%E8%AE%8A%E5%8B%95
apparently this feature does not check if whatever it depends on is also
installed or something.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Aklapper changed the task status from Open to Stalled.Apr 24 2019, 2:21 PM

Hi @Jidanni, please use your web browser's developer tools. They will show an error:
[XMBwT0BaKU4AACB-vP8AAAAI] 2019-04-24 14:18:56: Fatal exception of type "BadMethodCallException"
Please follow https://www.mediawiki.org/wiki/Manual:How_to_debug and provide a stacktrace.

For more information on using developer tools see:

That trace shows that session management is broken. Also see https://www.mediawiki.org/wiki/Manual:How_to_debug/Login_problems

Lines like #9 /home/jidanni/mediawiki/includes/Hooks.php(174): JidanniLessSpecialPages(array) also make me wonder if the problem still happens without having custom code in Hooks.php.

OK, from LocalSettings.php I took out

function JidanniLessSpecialPages(&$list){
  foreach(array('Uncategorizedimages','Unusedimages','Withoutinterwiki','Newimages','Listfiles','MIMEsearch',
		'FileDuplicateSearch','Filepath','Booksources','Mostimages','Tags','Disambiguations')as $i){
    unset($list[$i]);}global $wgUser;if(!$wgUser->isAllowed('editinterface')){unset($list['Ipblocklist']);}
  return true;}
$wgHooks['SpecialPage_initList'][]='JidanniLessSpecialPages';

and now it works. Gosh, I was just trying to reduce the clutter.