Last modified: 2014-03-05 15:04:50 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 T61214, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 59214 - Call to undefined method PNGHandler
Call to undefined method PNGHandler
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
CirrusSearch (Other open bugs)
REL1_22-branch
All Linux
: Unprioritized major (vote)
: ---
Assigned To: Nik Everett
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-02 15:52 UTC by keyler
Modified: 2014-03-05 15:04 UTC (History)
4 users (show)

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


Attachments

Description keyler 2014-01-02 15:52:19 UTC
When running the up to date master version of CirrusSearch with MW 1.20.0 and I then try to run this "php forceSearchIndex.php --forceUpdate" the following error appears:
PHP Fatal error:  Call to undefined method PNGHandler::getEntireText() in /var/www/wiki/extensions/CirrusSearch/includes/Updater.php on line 349
Comment 1 Nik Everett 2014-01-02 16:43:19 UTC
At this point CirrusSearch isn't compatible with 1.20.

CirrusSearch's master branch is compatible with MW's master branch.
CirrusSearch's REL1_22 branch is compatible with MW 1.22.

I'm resolving this WONTFIX unless there is a large groundswell of folks needing it to work at a particular version.
Comment 2 keyler 2014-01-02 16:46:52 UTC
Sorry, i meant 1.22.0 (brand new). Sorry again for misspelling!
Comment 3 Nik Everett 2014-01-02 16:49:24 UTC
Ah, in that case please try the REL1_22 branch.  I recently merged our master branch to it and patched it to get it working on 1.22.  If that doesn't work then please reopen the bug.
Comment 4 keyler 2014-01-02 16:49:54 UTC
ok, will do!
Comment 5 keyler 2014-01-12 12:25:04 UTC
I am still on mw1.22.0.
OK, downloaded the REL1.22 branch of CirrusSearch now through the working (thanks for this) link on the official mw site (not throug git tis time). I then removed the ElasticSearch DB and rebuild it. A blank page still apears whenever you search anything.

This is the output of $wgDebugLogFile = "/tmp/err_wiki.log";

Start request GET /index.php?search=testword&button=&title=Spezial%3ASuche
HTTP HEADERS:
HOST: [anonymized]
USER-AGENT: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0
ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
ACCEPT-LANGUAGE: de,de-de;q=0.8,en-us;q=0.5,en;q=0.3
ACCEPT-ENCODING: gzip, deflate
REFERER: http://[anonymized]/w/Hauptseite
COOKIE: wiki[anonymized]UserID=2; [anonymized]UserName=Martin; [anonymized]Token=89002517d8d1109c118da6cb389f758a; stopMobileRedirect=true; [anonymized]_session=ac39d1f8b7f00874618b8684c7ef111e
CONNECTION: keep-alive
CACHES: EmptyBagOStuff[main] SqlBagOStuff[message] SqlBagOStuff[parser]
[cookie] session_set_cookie_params: "0", "/", "", "", "1"
Class LanguageDe not found; skipped loading
LocalisationCache: using store LCStore_DB
Connected to database 0 at localhost
DatabaseBase::query: Writes done: UPDATE `user` SET user_touched = '20140112121759' WHERE user_id = 2
Fully initialised
User: cache miss for user 2
User: loading options for user 2 from database.
User: logged in from session
User: loading options for user 2 from override cache.
Connected to database 0 at localhost
MessageCache::load: Loading de... got from global cache
Unstubbing $wgParser on call of $wgParser::firstCallInit from MessageCache::getParser
Parser: using preprocessor: Preprocessor_DOM
Unstubbing $wgLang on call of $wgLang::_unstub from ParserOptions::__construct
[CirrusSearch] Lowercased title searching:  testword
Comment 6 keyler 2014-01-12 12:33:04 UTC
More info about this problem. I now also updated Elastica through the mw website (https://www.mediawiki.org/wiki/Special:ExtensionDistributor/Elastica and there I selected 1.22 stable)

Now i get this:

php updateSearchIndexConfig.php --reindexAndRemoveOk --indexIdentifier now

PHP Warning:  require(/var/www/wiki/extensions/Elastica/Elastica/lib/Elastica/Transport/Http.php): failed to open stream: No such file or directory in /var/www/wiki/includes/AutoLoader.php on line 1191
PHP Fatal error:  require(): Failed opening required '/var/www/wiki/extensions/Elastica/Elastica/lib/Elastica/Transport/Http.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/wiki/includes/AutoLoader.php on line 1191
Comment 7 keyler 2014-01-12 12:46:51 UTC
OF, I got it to work... one has to use:

1. MW 1.22.0
2. CirrusSearch Version for 1.22.0 
3. Elatica --> Master (not the 1.22.0 Version!!!)

So I am happy but maybe this should be fixed!
Comment 8 Larry Silverman 2014-02-26 17:17:10 UTC
I just hit this error as a result of runJobs.php.

PHP Fatal error:  Call to undefined method PNGHandler::getEntireText() in /usr/local/devmediawiki-1.22.2/w/extensions/CirrusSearch/includes/BuildDocument/PageDataBuilder.php on line 89

I'm running MW 1.22.2, Elasticsearch 0.90.11, CirrusSearch master (77858d4)
15:01, 20 February 2014, and Elastica master (928c69f)
14:19, 16 February 2014.

I attempted to use the REL1_22 versions of the extensions but met with failure which I documented on the talk page of CirrusSearch here: https://www.mediawiki.org/wiki/Extension_talk:CirrusSearch#Failed_opening_required_FunctionScore.php_37675
Comment 9 Nik Everett 2014-02-26 17:23:40 UTC
I imagine Elastica is going to be compatible with any version of any version of Mediawiki.  Cirrus won't though.  I'll go have a look at updating both those branches right now.
Comment 10 Nik Everett 2014-03-05 15:04:50 UTC
Resolved about a week ago by updating the REL1_22 branches.  I also backported text extraction for pdf/djvu files rather than disabling it.

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


Navigation
Links