https://bugzilla.wikimedia.org/show_bug.cgi?id=54628
Web browser: ---
Bug ID: 54628
Summary: GlobalBlockingBlockedIpMsg hook passed a string
instead of an array
Product: MediaWiki extensions
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: GlobalBlocking
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
Stack trace on beta:
[26-Sep-2013 08:03:52] Catchable fatal error: Argument 2 passed to wfRunHooks()
must be an array, string given, called in
/data/project/apache/common-local/php-master/extensions/GlobalBlocking/GlobalBlocking.class.php
on line 79 and defined at
/data/project/apache/common-local/php-master/includes/GlobalFunctions.php on
line 3897
Server: i-0000031b
Method: GET
URL:
http://simple.wikipedia.beta.wmflabs.org/w/index.php?title=User:Pipeo15&action=edit
Backtrace:
#0
/data/project/apache/common-local/php-master/includes/GlobalFunctions.php(3897):
wfRunHooks()
#1
/data/project/apache/common-local/php-master/extensions/GlobalBlocking/GlobalBlocking.class.php(79):
wfRunHooks('GlobalBlockingB...', 'globalblocking-...')
#2
/data/project/apache/common-local/php-master/extensions/GlobalBlocking/GlobalBlocking.class.php(23):
GlobalBlocking::getUserBlockErrors(Object(User), 'XXX.XXX.XXX.XXX')
#3 [internal function]: GlobalBlocking::getUserPermissionsErrors(Object(Title),
Object(User), 'edit', '')
#4 /data/project/apache/common-local/php-master/includes/Hooks.php(199):
call_user_func_array('GlobalBlocking:...', Array)
#5
/data/project/apache/common-local/php-master/includes/GlobalFunctions.php(3898):
Hooks::run('getUserPermissi...', Array)
#6 /data/project/apache/common-local/php-master/includes/Title.php(1843):
wfRunHooks('getUserPermissi...', Array)
#7 /data/project/apache/common-local/php-master/includes/Title.php(2235):
Title->checkPermissionHooks('edit', Object(User), Array, true, false)
#8 /data/project/apache/common-local/php-master/includes/Title.php(1717):
Title->getUserPermissionsErrorsInternal('edit', Object(User), true)
#9 /data/project/apache/common-local/php-master/includes/EditPage.php(451):
Title->getUserPermissionsErrors('edit', Object(User))
#10 /data/project/apache/common-local/php-master/includes/EditPage.php(384):
EditPage->getEditPermissionErrors()
#11
/data/project/apache/common-local/php-master/includes/actions/EditAction.php(50):
EditPage->edit()
#12 /data/project/apache/common-local/php-master/includes/Wiki.php(441):
EditAction->show()
#13 /data/project/apache/common-local/php-master/includes/Wiki.php(305):
MediaWiki->performAction(Object(Article), Object(Title))
#14 /data/project/apache/common-local/php-master/includes/Wiki.php(591):
MediaWiki->performRequest()
#15 /data/project/apache/common-local/php-master/includes/Wiki.php(460):
MediaWiki->main()
#16 /data/project/apache/common-local/php-master/index.php(55):
MediaWiki->run()
#17 /data/project/apache/common-local/w/index.php(3):
require('/data/project/a...')
#18 {main}
The related code in GlobalBlocking extension:
// Allow site customization of blocked message.
$blockedIpMsg = 'globalblocking-ipblocked';
wfRunHooks( 'GlobalBlockingBlockedIpMsg', &$blockedIpMsg );
Probably caused by https://gerrit.wikimedia.org/r/#/c/84333/
- return $result = array( 'globalblocking-ipblocked',
+ // Allow site customization of blocked message.
+ $blockedIpMsg = 'globalblocking-ipblocked';
+ wfRunHooks( 'GlobalBlockingBlockedIpMsg', &$blockedIpMsg );
+ return $result = array( $blockedIpMsg,
CCing Nemo Bis and Parent5446
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l