User talk:CodeMonk

A beer for you!

 * Wonderful beer, thank you. --CodeMonk (talk) 15:49, 24 May 2012 (UTC)

MultiCategorySearch_body.php line 69
Hi Iaroslav, I'm having a look at MultiCategorySearch_body.php line 69 and 70:

$wgOut->showErrorPage( "Error: Upgrade required", "The News Channel extension " . "can't work on MediaWiki version older than 1.8. Please, upgrade." );

I'm guessing you might want to change "The News Channel extension " to "The Multi-Category Search Extension "

Am I right? Hope this helps. Thanks for writing Extension:Multi-Category Search! --Rogerhc (talk) 05:53, 9 November 2012 (UTC)


 * Oops... :)  --CodeMonk (talk) 02:57, 10 November 2012 (UTC)

MultiCategorySearch UnexpectedValueException with the new MediaWiki 1.34
Hi Iaroslav,

I'm an appreciative user of MultiCategorySearch. Thanks for your work on this important extension. It has become a feature of my site at www.mind-mapping.org.

I just updated WikiMedia to version 1.34 and had an UnexpectedValueException as follows:

[Xo7PkbmV@0j77xU6qch05AAAAAE] /index.php?title=Special:MultiCategorySearch UnexpectedValueException from line 462 of /home/mindmapping/www/www/includes/libs/rdbms/loadbalancer/LoadBalancer.php: Invalid server index index #DB_SLAVE Backtrace:
 * 1) 0 /home/mindmapping/www/www/includes/libs/rdbms/loadbalancer/LoadBalancer.php(896): Wikimedia\Rdbms\LoadBalancer->getConnectionIndex(string, array, string)
 * 2) 1 /home/mindmapping/www/www/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1043): Wikimedia\Rdbms\LoadBalancer->getConnection(string, array, string, integer)
 * 3) 2 /home/mindmapping/www/www/includes/GlobalFunctions.php(2576): Wikimedia\Rdbms\LoadBalancer->getMaintenanceConnectionRef(string, array, string)
 * 4) 3 /home/mindmapping/www/www/extensions/MultiCategorySearch/MultiCategorySearch_body.php(415): wfGetDB(string)
 * 5) 4 /home/mindmapping/www/www/extensions/MultiCategorySearch/MultiCategorySearch_body.php(663): MultiCategorySearch->getSubCategories(string)
 * 6) 5 /home/mindmapping/www/www/extensions/MultiCategorySearch/MultiCategorySearch_body.php(340): MultiCategorySearch->showDropdownLists
 * 7) 6 /home/mindmapping/www/www/extensions/MultiCategorySearch/MultiCategorySearch_body.php(111): MultiCategorySearch->showForm
 * 8) 7 /home/mindmapping/www/www/includes/specialpage/SpecialPage.php(575): MultiCategorySearch->execute(NULL)
 * 9) 8 /home/mindmapping/www/www/includes/specialpage/SpecialPageFactory.php(611): SpecialPage->run(NULL)
 * 10) 9 /home/mindmapping/www/www/includes/MediaWiki.php(296): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)
 * 11) 10 /home/mindmapping/www/www/includes/MediaWiki.php(900): MediaWiki->performRequest
 * 12) 11 /home/mindmapping/www/www/includes/MediaWiki.php(527): MediaWiki->main
 * 13) 12 /home/mindmapping/www/www/index.php(44): MediaWiki->run
 * 14) 13 {main}

line 462 of /home/mindmapping/www/www/includes/libs/rdbms/loadbalancer/LoadBalancer.php is 			throw new UnexpectedValueException( "Invalid server index index #$i" ); which is part of 	private function getConnectionIndex( $i, array $groups, $domain ) { if ( $i === self::DB_MASTER ) { $i = $this->getWriterIndex; } elseif ( $i === self::DB_REPLICA ) { foreach ( $groups as $group ) { $groupIndex = $this->getReaderIndex( $group, $domain ); if ( $groupIndex !== false ) { $i = $groupIndex; // group connection succeeded break; }			}		} elseif ( !isset( $this->servers[$i] ) ) { throw new UnexpectedValueException( "Invalid server index index #$i" ); }

User Ammarpad told me that: "DB_SLAVE constant has been renamed and old alias removed in 1.34. You should upgrade MultiCategorySearch extension too. If after upgrade, DB_SLAVE is still there, you should file a bug report against the extension."

Will you be able to update MultiCategorySearch so that it is compatible with MW vsn. 1.34?

Thanks a lot

Roygrubb (talk) 08:36, 11 April 2020 (UTC)