Last modified: 2009-03-09 13:24:25 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 17815 - PHP Warning + Notice in Special:AbuseFilter/test
PHP Warning + Notice in Special:AbuseFilter/test
Product: MediaWiki extensions
Classification: Unclassified
AbuseFilter (Other open bugs)
All All
: Normal normal (vote)
: ---
Assigned To: Andrew Garrett
Depends on:
  Show dependency treegraph
Reported: 2009-03-06 16:00 UTC by Raimond Spekking
Modified: 2009-03-09 13:24 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Raimond Spekking 2009-03-06 16:00:37 UTC
I get the following warning/notice:

Notice: Trying to get property of non-object in F:\xampp\htdocs\wiki2\extensions\AbuseFilter\AbuseFilterVariableHolder.php on line 47

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in F:\xampp\htdocs\wiki2\extensions\AbuseFilter\AbuseFilterVariableHolder.php on line 47

Filter rule:
  "Foo" in summary
Comment 1 Andrew Garrett 2009-03-06 23:12:06 UTC
It's a matter of the edit, not the filter, which is causing this error.

I've added some debugging code in r48100 which will help diagnose this issue.

Thanks for the report.
Comment 2 Raimond Spekking 2009-03-07 14:01:01 UTC
Short summary after some tests: I seems that page moves with [redirect suppressed] results to this error.


The contributions of my testwiki:


I modified the debug code a bit:

	function addHolder( $addHolder ) {
		if ( !is_object($addHolder) ) {
			var_dump($addHolder, $this->mVars);
			throw new MWException( "Invalid argument to AbuseFilterVariableHolder::addHolder: ". $addHolder . '/' . $this->mVars );

Output of var_dump:


Output of the debug code:

Invalid argument to AbuseFilterVariableHolder::addHolder: Array/Array


#0 F:\xampp\htdocs\wiki2\extensions\AbuseFilter\AbuseFilterVariableHolder.php(40): AbuseFilterVariableHolder->addHolder(Array)
#1 F:\xampp\htdocs\wiki2\extensions\AbuseFilter\AbuseFilter.class.php(1164): AbuseFilterVariableHolder::merge(Object(AbuseFilterVariableHolder), Object(AbuseFilterVariableHolder), Object(AbuseFilterVariableHolder), Array)
#2 F:\xampp\htdocs\wiki2\extensions\AbuseFilter\AbuseFilter.class.php(1098): AbuseFilter::getMoveVarsFromRCRow(Object(stdClass))
#3 F:\xampp\htdocs\wiki2\extensions\AbuseFilter\Views\AbuseFilterViewTestBatch.php(100): AbuseFilter::getVarsFromRCRow(Object(stdClass))
#4 F:\xampp\htdocs\wiki2\extensions\AbuseFilter\Views\AbuseFilterViewTestBatch.php(66): AbuseFilterViewTestBatch->doTest()
#5 F:\xampp\htdocs\wiki2\extensions\AbuseFilter\SpecialAbuseFilter.php(83): AbuseFilterViewTestBatch->show()
#6 F:\xampp\htdocs\wiki2\includes\SpecialPage.php(559): SpecialAbuseFilter->execute('test')
#7 F:\xampp\htdocs\wiki2\includes\Wiki.php(229): SpecialPage::executePath(Object(Title))
#8 F:\xampp\htdocs\wiki2\includes\Wiki.php(59): MediaWiki->initializeSpecialCases(Object(Title), Object(OutputPage), Object(WebRequest))
#9 F:\xampp\htdocs\wiki2\index.php(114): MediaWiki->initialize(Object(Title), NULL, Object(OutputPage), Object(User), Object(WebRequest))
#10 {main}

Comment 3 Andrew Garrett 2009-03-09 13:24:25 UTC
Should be sorted out by r48224.

Note You need to log in before you can comment on or make changes to this bug.