Page MenuHomePhabricator

FlaggedRevs: Call to undefined method PageStabilityProtectForm::setReason()
Closed, ResolvedPublic

Description

[29-Jan-2013 10:30:41] Fatal error: Call to undefined method PageStabilityProtectForm::setReason() at /home/wikipedia/common/php-1.21wmf8/extensions/FlaggedRevs/api/ac$
Server: srv193
Method: POST
URL: http://test.wikipedia.org/w/api.php
Backtrace:
#0 /home/wikipedia/common/php-1.21wmf8/extensions/FlaggedRevs/api/actions/ApiStabilize.php(206): ApiStabilizeProtect->doExecute()
#1 /home/wikipedia/common/php-1.21wmf8/extensions/FlaggedRevs/api/actions/ApiStabilize.php(53): ApiStabilizeProtect->doExecute()
#2 /home/wikipedia/common/php-1.21wmf8/includes/api/ApiMain.php(826): ApiStabilize->execute()
#3 /home/wikipedia/common/php-1.21wmf8/includes/api/ApiMain.php(373): ApiMain->executeAction()
#4 /home/wikipedia/common/php-1.21wmf8/includes/api/ApiMain.php(350): ApiMain->executeActionWithErrorHandling()
#5 /home/wikipedia/common/php-1.21wmf8/api.php(77): ApiMain->execute()
#6 /usr/local/apache/common-local/live-1.5/api.php(3): require('/home/wikipedia...')
#7 {main}


Version: unspecified
Severity: normal

Details

Reference
bz44468

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:20 AM
bzimport added a project: FlaggedRevs.
bzimport set Reference to bz44468.
bzimport added a subscriber: Unknown Object (MLST).

It probably means setReasonExtra. There's another occurrence on line 89.

I also got this while trying that fix:
'<br />\n<b>Fatal error</b>: Call to undefined method PageStabilityGeneralForm::setExpiry() in <b>/var/www/MediaWiki/Git/extensions/FlaggedRevs/api/actions/ApiStabilize.php</b> on line <b>91</b><br />\n'

So setExpiry -> setExpiryCustom ?

  • Bug 44527 has been marked as a duplicate of this bug. ***

Blame/log points back to 16b87692cc7d0542bc225aedcd93949f46662444, which was r82832 - it's hard to believe this was broken since February 2011...

I believe this issue appears in class ApiStabilizeProtect extends ApiStabilize at lines 206 and 208 as well.

(In reply to comment #6)

I believe this issue appears in class ApiStabilizeProtect extends
ApiStabilize
at lines 206 and 208 as well.

Yup, thanks. https://gerrit.wikimedia.org/r/47417