Last modified: 2013-08-09 12:10:51 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 T54668, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52668 - Catchable fatal error: Argument 1 passed to AbuseFilter::getEmergencyValue() must be of the type array, double given
Catchable fatal error: Argument 1 passed to AbuseFilter::getEmergencyValue() ...
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
AbuseFilter (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-09 11:49 UTC by Helder
Modified: 2013-08-09 12:10 UTC (History)
3 users (show)

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


Attachments
Screenshot of Special:AbuseFilter/1, showing how the filter configuration (68.83 KB, image/png)
2013-08-09 12:00 UTC, Helder
Details

Description Helder 2013-08-09 11:49:26 UTC
After updating an existing filter (the only one) in my local installation of MW from
+---------------------------------------+
| false & false & false & false & false |
+---------------------------------------+
to
+---------------------------------------+
| 'FILTRAR' in summary                  |
+---------------------------------------+
I made an edit in the "Main page" with an empty summary, and then tried to do another edit with "FILTRAR" in the summary. I wasn't able to save this second edit, because after I clicked in the save button it showed a blank page with the following message:

Catchable fatal error: Argument 1 passed to AbuseFilter::getEmergencyValue() must be of the type array, double given, called in /var/www/w/extensions/AbuseFilter/AbuseFilter.class.php on line 1552 and defined in /var/www/w/extensions/AbuseFilter/AbuseFilter.class.php on line 1593

Just a few moments before the test above, I updated MW, AbuseFilter and all other extensions (git checkout master && git pull) and executed maintenance/update.php.
Comment 1 Helder 2013-08-09 11:52:26 UTC
Pressing the "back" button in the browser and then clicking on save again caused the same error.

Each attempt to save the edit increased the number of actions in the line
"Of the last 5 actions, this filter has matched 0 (0.00%). On average, its run time is 0.23 ms, and it consumes 1 condition of the condition limit."
of the page Special:AbuseFilter/1
Comment 2 Helder 2013-08-09 12:00:10 UTC
Created attachment 13079 [details]
Screenshot of Special:AbuseFilter/1, showing how the filter configuration

Even after the fatal errors, I was able to save edits which didn't contain the string "FILTRAR" in the summary. Besides, none of the failed edit attempts were logged at Special:AbuseLog.

In the screenshot, you see the current configuration of the filter (if that helps).
Comment 3 Helder 2013-08-09 12:10:51 UTC
Never mind, this was caused by me using
$wgAbuseFilterEmergencyDisableThreshold = 0.95;
instead of
$wgAbuseFilterEmergencyDisableThreshold['default'] = 0.95;
in my LocalSettings.php.

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


Navigation
Links