http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9316

--- Comment #49 from Martin Renvoize <martin.renvo...@ptfs-europe.com> ---
OK.. I've been trying to narrow down the bug with requiring
Plack::Middleware::Debug.

I've narrowed it down to the following lines in koha.psgi:

    enable_if {
            $ENV{'KOHA_DEBUG'}
    } 'Debug',  panels => [[ 'DBITrace', level => 1 ], @$panels ];

I think the logic here is flawed somehow.  First up I think it should actually
be:

    enable_if {
             $_[0]->{'KOHA_DEBUG'}
    } 'Debug',  panels => [[ 'DBITrace', level => 1 ], @$panels ];

But this also doesn't work. I think the builder checks for the module
availability even if it's not actually to be loaded as part of the enable_if.

I'm baffled.. anyone got any idea's how to fix this?

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to