ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

SVN: Apache initialization error (Bug #466)


Added by Artem Naluzhnyy at 2011-06-11 02:19 am. Updated at 2011-06-16 07:13 pm.


Status:Closed Start date:2011-06-11
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:SCM
Target version:2.0.0
Remote issue URL: Affected version:

Description

Missing Apache2::Module::get_config call causes Apache initialization error:

Global symbol "$cfg" requires explicit package name

Introduced by 90c713d2.

Fix:

--- Redmine.pm.orig 2011-06-11 05:13:32.000000000 +0300
+++ Redmine.pm 2011-06-11 04:32:54.000000000 +0300
@@ -480,6 +480,7 @@
 sub get_project_identifier {
     my $r = shift;

+    my $cfg = Apache2::Module::get_config(__PACKAGE__, $r->server, $r->per_dir_config);
     my $location = $r->location;
     my ($identifier) = $r->uri =~ m{$location/*([^/]+)};
     $identifier =~ s/\.git$// if (defined $cfg->{RedmineGitSmartHttp} and $cfg->{RedmineGitSmartHttp});


Associated revisions

Revision 0c031428
Added by Felix Schäfer at 2011-06-16 09:12 pm

Fix an apache perl module error. #466

Contributed by Artem Naluzhnyy.

History

Updated by Artem Naluzhnyy at 2011-06-11 04:54 pm

  • Target version set to 2.0.0

Updated by Felix Schäfer at 2011-06-16 07:13 pm

Mmh, I can't remember having had this problem, might be because I probably don't use that version yet.

Committed in 0c03142832614e397e1795090d776fe4e51320fb, thanks!

  • Status changed from Open to Closed

Also available in: Atom PDF