Skip Menu |

This queue is for tickets about the Apache-ASP CPAN distribution.

Report information
The Basics
Id: 107118
Status: open
Priority: 0/
Queue: Apache-ASP

People
Owner: Nobody in particular
Requestors: perlboy [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Hi, As the Apache mod_perl API has changed under Apache 2.4 the following error occurs: Can't locate object method "remote_ip" via package "Apache2::Connection" at /usr/local/share/perl5/Apache/ASP/StateManager.pm line 85 The fix is fairly simple: Change line 85: $self->{remote_ip} = $r->connection()->remote_ip(); To: if (defined $r->useragent_ip()) { $self->{remote_ip} = $r->useragent_ip(); } else { $self->{remote_ip} = $r->connection->remote_ip(); } Regards, Niels