Hi, with timeless on mediawiki 1.31 i am seeing this in the logs alot:
[25-May-2018 18:23:34 UTC] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /srv/mediawiki/w/skins/Timeless/TimelessTemplate.php on line 197 2018-05-25 18:23:34 test1 test1wiki: [d9a41fdcc296d73d327dc783] /wiki/Special:SpecialPages ErrorException from line 197 of /srv/mediawiki/w/skins/Timeless/TimelessTemplate.php: PHP Warning: count(): Parameter must be an array or an object that implements Countable #0 /srv/mediawiki/w/skins/Timeless/TimelessTemplate.php(197): MWExceptionHandler::handleError(integer, string, string, integer, array) #1 /srv/mediawiki/w/skins/Timeless/TimelessTemplate.php(361): TimelessTemplate->getPortlet(string, string) #2 /srv/mediawiki/w/skins/Timeless/TimelessTemplate.php(41): TimelessTemplate->getMainNavigation() #3 /srv/mediawiki/w/includes/skins/SkinTemplate.php(251): TimelessTemplate->execute() #4 /srv/mediawiki/w/includes/OutputPage.php(2388): SkinTemplate->outputPage() #5 /srv/mediawiki/w/includes/MediaWiki.php(868): OutputPage->output(boolean) #6 /srv/mediawiki/w/includes/MediaWiki.php(880): MediaWiki->{closure}() #7 /srv/mediawiki/w/includes/MediaWiki.php(524): MediaWiki->main() #8 /srv/mediawiki/w/index.php(42): MediaWiki->run() #9 {main}
I think this was caused by https://github.com/wikimedia/mediawiki-skins-Timeless/commit/212357d9b8a58e0028c6ab521db42420460c81e8