EPrints Technical Mailing List Archive
Message: #02751
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] remote_ip via package "Apache2::Connection"
- To: "'eprints-tech@ecs.soton.ac.uk'" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] remote_ip via package "Apache2::Connection"
- From: David McElroy <D.Mcelroy@uel.ac.uk>
- Date: Wed, 12 Mar 2014 11:24:19 +0000
Just finished setting up Eprints in ubuntu 13.10 server and I was getting the following error in my apache log:
Can't locate object method "remote_ip" via package "Apache2::Connection" at /usr/share/eprints3/perl_lib/EPrints/DataObj/LoginTicket.pm line 143.\n
this corrected the issue:
#my $ip = $r->connection->remote_ip;
my $ip = $r->connection->client_ip;
and on line 118:
#$data->{ip} = $repo->get_request->connection->remote_ip;
$data->{ip} = $repo->get_request->connection->client_ip;
I can’t see this issue on the github, should I submit it? Or am I correcting something that I should be fixing in my perl modules?
Thanks,
David McElroy
Research Data Management Officer
University of East London
Docklands Library
University Way
London E16 2RD
t: 020 8223 6467
- Follow-Ups:
- [EP-tech] Re: remote_ip via package "Apache2::Connection"
- From: Sebastien Francois <sf2@ecs.soton.ac.uk>
- [EP-tech] Re: remote_ip via package "Apache2::Connection"
- Prev by Date: [EP-tech] Re: Access table "missing entries"
- Next by Date: [EP-tech] Re: remote_ip via package "Apache2::Connection"
- Previous by thread: [EP-tech] Access table "missing entries"
- Next by thread: [EP-tech] Re: remote_ip via package "Apache2::Connection"
- Index(es):