Last modified: 2013-07-24 16:58:33 UTC
I made a test edit to this course page: https://en.wikipedia.org/wiki/Education_Program:Example_University/Example_Course_%282013_Q1%29 After the edit, clicking "View history" gives a fatal error. https://en.wikipedia.org/w/index.php?title=Education_Program:Example_University/Example_Course_%282013_Q1%29&action=history PHP fatal error in /usr/local/apache/common-local/php-1.22wmf7/includes/db/ORMTable.php line 924: Argument 1 passed to ORMTable::newRow() must be an array, string given, called in /usr/local/apache/common-local/php-1.22wmf7/extensions/EducationProgram/includes/rows/EPRevision.php on line 50 and defined
[21-Jun-2013 18:06:18] Catchable fatal error: Argument 1 passed to ORMTable::newRow() must be an array, string given, called in /usr/local/apache/common-local/php-1.22wmf7/extensions/EducationProgram/includes/rows/EPRevision.php on line 50 and defined at /usr/local/apache/common-local/php-1.22wmf7/includes/db/ORMTable.php on line 924 Server: mw1088 Method: GET URL: http://en.wikipedia.org/w/index.php?title=Education_Program:Example_University/Example_Course_%282013_Q1%29&action=history Backtrace: #0 /usr/local/apache/common-local/php-1.22wmf7/includes/db/ORMTable.php(924): ORMTable::newRow() #1 /usr/local/apache/common-local/php-1.22wmf7/extensions/EducationProgram/includes/rows/EPRevision.php(50): ORMTable->newRow('a:13:{s:2:"id";...', true) #2 /usr/local/apache/common-local/php-1.22wmf7/extensions/EducationProgram/includes/pagers/RevisionPager.php(80): EducationProgram\EPRevision->getObject() #3 /usr/local/apache/common-local/php-1.22wmf7/includes/Pager.php(434): EducationProgram\RevisionPager->formatRow(Object(stdClass)) #4 /usr/local/apache/common-local/php-1.22wmf7/extensions/EducationProgram/includes/actions/HistoryAction.php(118): IndexPager->getBody() #5 /usr/local/apache/common-local/php-1.22wmf7/extensions/EducationProgram/includes/actions/HistoryAction.php(38): EducationProgram\HistoryAction->displayRevisions(Object(EducationProgram\Course)) #6 /usr/local/apache/common-local/php-1.22wmf7/includes/Action.php(547): EducationProgram\HistoryAction->onView() #7 /usr/local/apache/common-local/php-1.22wmf7/includes/Wiki.php(439): FormlessAction->show() #8 /usr/local/apache/common-local/php-1.22wmf7/includes/Wiki.php(305): MediaWiki->performAction(Object(EducationProgram\CoursePage), Object(Title)) #9 /usr/local/apache/common-local/php-1.22wmf7/includes/Wiki.php(565): MediaWiki->performRequest() #10 /usr/local/apache/common-local/php-1.22wmf7/includes/Wiki.php(458): MediaWiki->main() #11 /usr/local/apache/common-local/php-1.22wmf7/index.php(55): MediaWiki->run() #12 /usr/local/apache/common-local/w/index.php(3): require('/usr/local/apac...') #13 {main}
Which revision of the software is being used here?
I believe that as of yesterday, it is running the up-to-date version including all the recently merged commits.
You can see from the stack trace that it is 1.22wmf7. Can this be reproduced on test/test2.wikipedia.org or on mediawiki.org (which are running 1.22wmf8)? Actually, it appears the education program extension is only installed on test2. Can you repro it there?
Yes, I can reproduce it on test2.
Related URL: https://gerrit.wikimedia.org/r/69978 (Gerrit Change Id719b27e9fb83be0d54a211b7006189b9444c2a0)
Looks like I fixed it... Really need to get rid of this old course/org/revision code :)
Thanks.
Oops, wrong bug.
(In reply to comment #7) > Looks like I fixed it... Jeroen: So can this be closed as RESOLVED FIXED or is there more to do?
*** Bug 51168 has been marked as a duplicate of this bug. ***
I believe this was not deployed because of the related bug 50740, which was revealed when this patch deployed to test2.
This has been deployed (so bug 50740 is now live).