in reply to CPAN-Forum -- problem with "Use of uninitialized value"

OK. Further reading seems to indicate this is a known issue.
From: http://search.cpan.org/~szabgab/CPAN-Forum-0.11/lib/CPAN/Forum.pm#TODO...
Shlomi: The Forum uses cgiapp_prerun to set the mode according to the PATH_INFO instead of using a mode_param code-reference. This causes a lot of warnings in the logs, and doesn't really belong in cgiapp_prerun.

It cannot be hosted on a URL except for its own virtual host, as it uses absolute URLs. ("/login/", "/register/", etc.) A better idea would be to track the path that the web-server gives (it's in one of the environment variables) and then to construct a /cpan-forum/login/ /cpan-forum/register/ etc. path. (or use relative URLs).
Anyone care to venture a solution, or avenue I could travel to allow this to live one level deeper that the web site's document root -- how I might "pin" cpan-forum ahead of the current links?

Thank you for all your time, and consideration.

--chris

#!/usr/bin/perl -Tw
use perl::always;
my $perl_version = "5.12.5";
print $perl_version;
  • Comment on Re: CPAN-Forum -- problem with "Use of uninitialized value"

Replies are listed 'Best First'.
Re^2: CPAN-Forum -- problem with "Use of uninitialized value"
by taint (Chaplain) on Oct 02, 2013 at 00:38 UTC
    OK. Still trying to work this out...
    Would something like this:

    if ($self->query->url_param($self->mode_param)) {

    work?
    Yea, I know -- I don't know, did you try it?
    I would, but don't know how to introduce it properly.
    Sorry.

    Thank you for all your time, and consideration.

    --chris

    #!/usr/bin/perl -Tw
    use perl::always;
    my $perl_version = "5.12.5";
    print $perl_version;