Last modified: 2010-03-23 17:38:29 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 T24640, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 22640 - DonationInterface: Error appears when purging site cache
DonationInterface: Error appears when purging site cache
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Tomasz Finc
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-02-25 00:14 UTC by Church of emacs
Modified: 2010-03-23 17:38 UTC (History)
6 users (show)

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


Attachments

Description Church of emacs 2010-02-25 00:14:02 UTC
This is actually a bug of the extension DonationInterface, but it seems to be very WMF-specific, therefor I put it in this section.

When I clear the cache of a page on wikimediafoundation.org, the page appears and on top of the page "**Please enter a valid amount**" (this is the system message 'payflowpro_gateway-error-msg-invalid-amount').
Comment 1 Casey Brown 2010-02-25 00:50:48 UTC
(In reply to comment #0)
> This is actually a bug of the extension DonationInterface, but it seems to be
> very WMF-specific, therefor I put it in this section.

I think this is related to some JavaScript that Nimish added (=> ASSIGNEE) here: http://wikimediafoundation.org/wiki/Template:2009/Donate-now

> When I clear the cache of a page on wikimediafoundation.org, the page appears
> and on top of the page "**Please enter a valid amount**" (this is the system
> message 'payflowpro_gateway-error-msg-invalid-amount').

Nope, it doesn't happen to me when purging as a logged-in user (but it does when purging as an anon).  I think I've seen the same error message in other instances though, but I can't remember exactly what those were. :-(
Comment 2 Platonides 2010-02-25 00:54:07 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > This is actually a bug of the extension DonationInterface, but it seems to be
> > very WMF-specific, therefor I put it in this section.
> 
> I think this is related to some JavaScript that Nimish added (=> ASSIGNEE)
> here: http://wikimediafoundation.org/wiki/Template:2009/Donate-now

No. It's in the page source, not added by javascript.
Comment 3 Church of emacs 2010-02-25 19:08:27 UTC
I haven't really looked at the code, but could it be that the it checks for action=view and $wgRequest->wasPosted() and then assumes that the user tries to use the DonationInterface? (Just wild speculations, but they would explain why the error only occurs for anonymous users)
Comment 4 Casey Brown 2010-02-25 21:49:51 UTC
(In reply to comment #1)
> I think I've seen the same error message in other
> instances though, but I can't remember exactly what those were. :-(

Today I ran into it quite frequently when previewing pages too. (as a logged-in user)
Comment 5 Platonides 2010-03-23 17:38:29 UTC
The bug was introduced in r58589 and fixed (inadvertedly?) in r58868.
I added a note about this bug on r64081.

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


Navigation
Links