Last modified: 2011-08-26 00:58:49 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 T32570, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30570 - Error when creating a campaign
Error when creating a campaign
Status: RESOLVED DUPLICATE of bug 30554
Product: MediaWiki extensions
Classification: Unclassified
UploadWizard (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-25 16:59 UTC by Sam Reed (reedy)
Modified: 2011-08-26 00:58 UTC (History)
3 users (show)

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


Attachments

Description Sam Reed (reedy) 2011-08-25 16:59:29 UTC
Looking at trying to fixup r90668, just trying to add a really simple campaign. Selected "Test" and then just pressed next on the next window...

A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:
INSERT INTO `mw_uw_campaign_conf` (cc_campaign_id,cc_property,cc_value) VALUES ('1','skipTutorial','')
from within function ‘DatabaseBase::insert.’ Database returned error ‘1062: Duplicate entry '1' for key 'PRIMARY' (localhost).’
Comment 1 Jeroen De Dauw 2011-08-25 17:05:36 UTC
What does this have to do with r90668? Also, I don't understand the steps to reproduce. 

> then just pressed next on the next window...

Do you mean "pressed back"? That was fixed by my recent commits.
Comment 2 Sam Reed (reedy) 2011-08-25 17:21:12 UTC
A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:
INSERT INTO `mw_uw_campaign_conf` (cc_campaign_id,cc_property,cc_value) VALUES ('4','skipTutorial','')
from within function ‘UploadWizardCampaign::writePropsToDB.’ Database returned error ‘1062: Duplicate entry '4' for key 'PRIMARY' (localhost).’

Nope.

Visit Special:UploadCampaigns

Enter a campaign name, press add, then on the page just press submit

You'll get the error above

Raymond is experiencing the same issue
Comment 3 Raimond Spekking 2011-08-25 17:27:41 UTC
(In reply to comment #2)

> 
> Raymond is experiencing the same issue

Not the same. Mine was bug 30554. I was able to save :)
Comment 4 Sam Reed (reedy) 2011-08-25 17:51:36 UTC

*** This bug has been marked as a duplicate of bug 30554 ***
Comment 5 Jeroen De Dauw 2011-08-25 18:29:25 UTC
So if it's not the same, why mark it as duplicate? In any case, I cannot reproduce this.
Comment 6 Sam Reed (reedy) 2011-08-25 18:34:18 UTC
It is the same issue, its an 

I can reproduce on demand... Have the tables been updated since they were added.

It seems to also do an insert when editing, so hence duplicate key
Comment 7 Jeroen De Dauw 2011-08-25 19:43:03 UTC
I don't see anything wrong. Maybe you got your wiki into a messed up state somehow before the fix was made, and are seeing the effects of that?
Comment 8 Jeroen De Dauw 2011-08-25 19:43:24 UTC
Can you try reproduce on another wiki?
Comment 9 Sam Reed (reedy) 2011-08-25 21:28:46 UTC
(In reply to comment #7)
> I don't see anything wrong. Maybe you got your wiki into a messed up state
> somehow before the fix was made, and are seeing the effects of that?

Dropping the tables and recreating them seems to have fixed it.


Mehhhh
Comment 10 Neil Kandalgaonkar 2011-08-25 23:42:22 UTC
Yes -- if you had installed this extension before, it incorrectly marked a certain field as being UNIQUE. Dropping the table and running update.php fixes it.
Comment 11 Jeroen De Dauw 2011-08-26 00:58:49 UTC
Really? What index was this?

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


Navigation
Links