Last modified: 2013-09-05 05:37:47 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 T55519, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 53519 - errors running maintenance/InsertDefaultDefinitions.php
errors running maintenance/InsertDefaultDefinitions.php
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Flow (Other open bugs)
master
All All
: Unprioritized major (vote)
: ---
Assigned To: Matthias Mullie
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-29 06:07 UTC by spage
Modified: 2013-09-05 05:37 UTC (History)
2 users (show)

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


Attachments

Description spage 2013-08-29 06:07:20 UTC
After updating my local Flow extension to master I was getting

   Notice: Undefined index: rev_mod_state in /home/spage/projects/core/extensions/Flow/includes/Model/AbstractRevision.php on line 81
  (repeat for Undefined indices rev_mod_user_id, rev_mod_user_text, rev_mod_timestamp)

so I ran
   $ php ../../maintenance/update.php

but that failed with

PHP Fatal error:  Class 'MWEchoDbFactory' not found in /home/spage/projects/core/extensions/Flow/maintenance/FlowInsertDefaultDefinitions.php on line 22

indeed, this is the only mention of the class in the Flow codebase. I hacked a factory invocation together that seems to work (gerrit update coming), but even after dropping the tables, when I rerun this I get the same "Undefined index" errors.  flow_revision has the fields rev_mod_xxx so I'm not sure what the problem is.
Comment 1 spage 2013-08-29 06:23:43 UTC
Gerrit change #81628 replaces the MWEchoDbFactory call, but not the missing index failures.
Comment 2 Gerrit Notification Bot 2013-08-29 16:31:44 UTC
Change 81628 had a related patch set uploaded by EBernhardson (WMF):
fix missing MWEchoDbFactory::getDB() call

https://gerrit.wikimedia.org/r/81628
Comment 3 Erik Bernhardson 2013-08-29 16:36:01 UTC
i fixed up that patch, i must have been thinking about echo for some reason and used its dbfactory instead of flows, no clue why but fixed now :-)

For the undefined indices, first try bouncing memcached.  We cache a ton of stuff and to keep the pace of development up we havn't been worying about BC with existing cached data yet.  Almost always when i get those errors its because the row came from old memcache values  rather than mysql.
Comment 4 Gerrit Notification Bot 2013-08-29 16:36:48 UTC
Change 81628 merged by EBernhardson (WMF):
fix missing MWEchoDbFactory::getDB() call

https://gerrit.wikimedia.org/r/81628

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


Navigation
Links