Last modified: 2012-02-06 20:56:57 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 T36227, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 34227 - Undefined property: stdClass::$rev_len
Undefined property: stdClass::$rev_len
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
OAI (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-02-06 15:17 UTC by Dan Barrett
Modified: 2012-02-06 20:56 UTC (History)
1 user (show)

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


Attachments
Provisional patch to OAIRepo_body.php (1.11 KB, patch)
2012-02-06 17:28 UTC, Brion Vibber
Details

Description Dan Barrett 2012-02-06 15:17:52 UTC
When our remote Lucene index server hits our wiki through OAI, the following PHP notices are generated:

PHP Notice: Undefined property: stdClass::$rev_len in /path/w/includes/Export.php on line 514

PHP Notice: Undefined property: stdClass::$rev_len in /path/w/includes/Export.php on line 541

The hits causing these kinds of errors look like:

GET /w/index.php?title=Special:OAIRepository&verb=ListRecords&metadataPrefix=mediawiki&from=2012-02-06T14:20:02Z HTTP/1.1" 301 434 "-" "Java/1.6.0_20"

GET /w/index.php?title=Special:OAIRepository&verb=ListRecords&metadataPrefix=mediawiki&from=2012-02-06T14:20:02Z HTTP/1.1" 200 161605 "-" "Java/1.6.0_20"
Comment 1 Dan Barrett 2012-02-06 15:20:38 UTC
This occurs in 1.18.1.  We are running the 1.18 versions of OAI, lucene-search, and MWSearch.
Comment 2 Dan Barrett 2012-02-06 15:20:51 UTC
It happened in 1.17.1 as well.
Comment 3 Dan Barrett 2012-02-06 15:24:21 UTC
Our OAI is actually out of date. I'll update and see if this fixes the problem.
Comment 4 Dan Barrett 2012-02-06 16:09:40 UTC
I updated to the 1.18.x versions of OAI and MWSearch. The problem still exists.
Comment 5 Dan Barrett 2012-02-06 16:10:18 UTC
We run lucene-search 2.1.3.
Comment 6 Brion Vibber 2012-02-06 17:28:22 UTC
Created attachment 9961 [details]
Provisional patch to OAIRepo_body.php

This adds rev_len to the columns that get fetched from the OAI repo stuff; does it help?
Comment 7 Dan Barrett 2012-02-06 20:26:58 UTC
Brion, your provisional patch seems to be working for us. The error has disappeared. Thank you!
Comment 8 Sam Reed (reedy) 2012-02-06 20:56:57 UTC
Applied Brions patch in r110778 with some related refactoring

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


Navigation
Links