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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T19815, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 17815 - PHP Warning + Notice in Special:AbuseFilter/test
PHP Warning + Notice in Special:AbuseFilter/test
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
AbuseFilter (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Andrew Garrett
:
Depends on:
Blocks:
  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: ---


Attachments

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: http://rafb.net/p/Z1flVy17.html

---------------------------------------------------------------------

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: http://rafb.net/p/TVG5gT22.html

---------------------------------------------------------------------

Output of the debug code:

Invalid argument to AbuseFilterVariableHolder::addHolder: Array/Array

Backtrace:

#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.


Navigation
Links