Last modified: 2013-07-02 12:36:28 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 T52500, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 50500 - Form submission error for AFTv5 master with MW 1.20.0
Form submission error for AFTv5 master with MW 1.20.0
Status: RESOLVED WORKSFORME
Product: MediaWiki extensions
Classification: Unclassified
ArticleFeedbackv5 (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
aklapper-moreinfo
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-01 15:08 UTC by Adam Lonsdale
Modified: 2013-07-02 12:36 UTC (History)
2 users (show)

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


Attachments

Description Adam Lonsdale 2013-07-01 15:08:27 UTC
Just getting a "Form submission error." that I can reproduce every time on a new installation of MW with this article. Is this an installation error / are there any diagnostics?
Comment 1 Andre Klapper 2013-07-01 16:02:02 UTC
Hi Adam, 
unfortunately this report is not very useful because it does not describe the problem well. If you have time and can still reproduce the problem, please check https://www.mediawiki.org/wiki/How_to_report_a_bug , and http://www.mediawiki.org/wiki/Manual:How_to_debug for debugging. MW version information plus what "this article" means is also welcome. Thanks!
Comment 2 Adam Lonsdale 2013-07-01 16:13:01 UTC
Apologies, We're running MW 1.20.0 on a Unix/Apache server with MySQL 5. After placing the include to the main file in our LocalSettings.php and running the update.php, the form is displaywed well on all forms. However on *every* article (typo in my origional post) I get the error aforementioned when clicking Post. 

I've tried changing the exception handling in ApiArticleFeedbackv5.php to 
$this->dieUsage( $e->getMessage(), 'inserterror' ); 
instead of 
$this->dieUsage( $this->msg( 'articlefeedbackv5-error-submit' ), 'inserterror' );
however am still getting the same message.

The following settings prevent the display of the rating box completely when turned on, and I am unable to debug using these (hence my need to change the exception handling).

error_reporting( -1 );
ini_set( 'display_errors', 1 );
Comment 3 Andre Klapper 2013-07-01 16:32:15 UTC
Which git branch / version of ArticleFeedbackv5 is this about? Also see Special:Version
Comment 4 Adam Lonsdale 2013-07-02 09:19:44 UTC
This was a get from the master branch. Version 5.1.0 (2e57588)
Comment 5 Adam Lonsdale 2013-07-02 10:07:10 UTC
Some more information. 

The Ajax query to call the API returns a 500 Internal Server Error. From what I can see, the $.articleFeedbackv5.apiUrl variable is just set to "/api.php" - is this correct?
Comment 6 Adam Lonsdale 2013-07-02 12:21:28 UTC
Upgrade to MW 1.21.1 Fixes this
Comment 7 Andre Klapper 2013-07-02 12:36:28 UTC
master might not be compatible with 1.20. In general I'd recommend to run MW 1.20 with corresponding REL_1_20 branches of extensions, or run MW 1.21 with REL_1_21. 
Using master (=unstable) for extensions but a stable version of MediaWiki might create issues the more the codebases evolve...

Anyway, glad that you found a way to fix the problem.

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


Navigation
Links