[Mediawiki-l] Announcing Easy Lucene Search for Mediawiki
Brian
Brian.Mingus at colorado.edu
Fri May 8 22:27:05 UTC 2009
Ryan, could I have a brief overview of your config?
On Fri, May 8, 2009 at 3:31 PM, Lane, Ryan <Ryan.Lane at ocean.navo.navy.mil>wrote:
> > service.sh has funky windows newlines that simply don't work
> > on linux. I
> > used the ubuntu package tofrodos, which contains the program
> > fromdos, which
> > cleaned it up for me.
> >
> > http://packages.ubuntu.com/jaunty/tofrodos
> >
>
> dos2unix also works, if you are on a RHEL system.
>
> Have you had problems uploading new files? I'm getting a php crash on it. I
> fixed the issue with the following patch:
>
> --- EzMwLuceneIndexer.php.old 2009-05-08 16:26:28.000000000 -0500
> +++ EzMwLuceneIndexer.php 2009-05-08 16:26:00.000000000 -0500
> @@ -38,7 +38,7 @@
> $xml .=
> "<content><![CDATA[{$revision->getRawText()}]]></content>";
> /* If the article is in the Image namespace, add the file
> url */
> if ($article->getTitle()->getNamespace()==6) {
> - $file = wfFindFile($article->getTitle());
> + $file =
> wfFindFile($article->getTitle(),false,0,true);
> $xml .=
> "<attachment><![CDATA[{$file->getFullUrl()}]]></attachment>";
> }
> $xml .= '</article>';
>
>
>
> The php error I was getting was:
>
> PHP Fatal error: Call to a member function getFullUrl() on a non-object in
> /var/www/html/wiki/extensions/EzMwLucene/EzMwLuceneIndexer.php on line 42,
> referer: https://<servername>/wiki/index.php/Special:Upload
>
> The extension doesn't currently work with wikis that are using img_auth.php
> either.
>
> V/r,
>
> Ryan Lane
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
>
More information about the MediaWiki-l
mailing list