Page MenuHomeMiraheze

PHP Notice: Undefined offset: 1 in CustomNavBlocks.php on line 51
Closed, InvalidPublic

Description

[11-Nov-2016 15:54:28 UTC] PHP Notice: Undefined offset: 1 in /srv/mediawiki/w/ extensions/CustomNavBlocks/CustomNavBlocks.php on line 51
https://github.com/mathiasertl/CustomNavBlocks/blob/master/CustomNavBlocks.php#L51

Related Objects

Event Timeline

2016-11-06 13:07:37 mw1 extloadwiki: [ca938474f188797ec36752c9] /wiki/Special:MobileDiff/74   ErrorException from line 51 of /srv/mediawiki/w/extensions/CustomNavBlocks/CustomNavBlocks.php: PHP Notice: Undefined offset: 1
#0 /srv/mediawiki/w/extensions/CustomNavBlocks/CustomNavBlocks.php(51): MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 [internal function]: addCustomNavBlocks(SkinVector, VectorTemplate)
#2 /srv/mediawiki/w/includes/Hooks.php(195): call_user_func_array(string, array)
#3 /srv/mediawiki/w/includes/skins/SkinTemplate.php(489): Hooks::run(string, array)
#4 /srv/mediawiki/w/includes/skins/SkinTemplate.php(246): SkinTemplate->prepareQuickTemplate(OutputPage)
#5 /srv/mediawiki/w/includes/OutputPage.php(2324): SkinTemplate->outputPage()
#6 /srv/mediawiki/w/includes/exception/PermissionsError.php(60): OutputPage->output()
#7 /srv/mediawiki/w/includes/MediaWiki.php(525): PermissionsError->report()
#8 /srv/mediawiki/w/index.php(43): MediaWiki->run()
#9 {main}
Southparkfan renamed this task from CustomNavBlocks error to PHP Notice: Undefined offset: 1 in CustomNavBlocks.php on line 51.Nov 11 2016, 16:13

I don't see an issue upstream.

Opening again as this is resurfacing in the logs when trying to use PdfBook (T1838), and is possibly a blocker for using that extension.

2017-07-27 17:34:46 mw2 extloadwiki: [17db6fd71e727aa65ae1229f] /w/index.php?title=Category:Test&action=pdfbook   ErrorException from line 51 of /srv/mediawiki/w/extensions/CustomNavBlocks/CustomNavBlocks.php: PHP Notice: Undefined offset: 1
John changed the task status from Open to Stalled.Aug 14 2017, 13:49
John lowered the priority of this task from Normal to Low.

As this is now an unused extension and it seems to be nothing more special than MediaWiki:Sidebar, seems like this could just be dropped as an extension.

Further more as far as I am aware this was never reported upstream so this ticket has been useless.

Unused, unmaintained, unnecessary. Uninstalled.