[EP-tech] Re: Problem with the RSS plugin
Sebastien Francois
sf2 at ecs.soton.ac.uk
Tue Oct 23 15:01:15 BST 2012
Hi Malcolm:
You can copy .pm files to:
1- perl_lib/EPrints/Plugin/ .... -> usually considered "hacky" as you're
changing the core. It will work but as PERL told you, you need to first
"use" the plugin somewhere (usually this is done in perl_lib/EPrints.pm
-> add "use EPrints::Plugin::Export::ALLRSS" there and restart the web
server). But see, you've just patched a core file (EPrints.pm).
2- (EPrints 3.1+) local archive:
archives/{id}/cfg/plugins/EPrints/Plugin/Export/ -> nothing else required
3- (EPrints 3.3+) the bazaar directory:
lib/plugins/EPrints/Plugin/Export/ - this time you need to explicitly
enable that plugin in your local conf, something like:
$c->{plugins}{"Export::ALLRSS"}{params}{disable} = 0;
and restart the web server.
If you have only one repository running in your EPrints install, I would
go for option #2. If more than one, option #3.
Seb.
On 23/10/12 10:22, Malcolm Bodger wrote:
>
> Hi,
>
> I'm having a problem installing the RSS plugin
>
> http://files.eprints.org/492
>
> I get the error:
>
> Can't locate object method "new" via package
> "EPrints::Plugin::Export::ALLRSS
> " (perhaps you forgot to load "EPrints::Plugin::Export::ALLRSS"?) at
> /usr/share/eprints3/perl_lib/EPrints/Plugin
> Factory.pm line 242.\n
>
> I thought I just had to copy it to the perl_lib/Eprints/Plugin/Export
> folder, but am I missing something?
>
> Thanks,
>
> Malcolm.
>
> The University of Westminster is a charity and a company
> limited by guarantee. Registration number: 977818 England.
> Registered Office: 309 Regent Street, London W1B 2UW.
>
>
>
> *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive: http://www.eprints.org/tech.php/
> *** EPrints community wiki: http://wiki.eprints.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20121023/66fe43d8/attachment.html
More information about the Eprints-tech
mailing list