【问题标题】:Redmine git Can't locate object method "some_auth_required"Redmine git找不到对象方法“some_auth_required”
【发布时间】:2014-03-22 20:26:19
【问题描述】:

我正在尝试在 Freebsd 上配置 git auththought reedmine。当我克隆我的仓库时,我在 httpd_error.log 看到错误

Can't locate object method "some_auth_required" via package "Apache2::Redmine" at /usr/local/lib/perl5/site_perl/5.16/mach/Apache2/Redmine.pm line 322.\n

我不明白我是否需要安装一些东西或其他东西? 谢谢帮助

【问题讨论】:

  • 我找不到 Apache2::Redmine。我可以找到 Net::Redmine。我想知道 Apache2::Redmine 是从哪里来的。也许它与 Redmine 一起提供。
  • 是的,我从 redmine/extra/svn 复制了它

标签: git perl redmine freebsd


【解决方案1】:

我建议为 some_auth_required 获取 Redmine 代码的其余部分。

您将找到它所调用的任何其他位置(/usr/local/lib/perl5/site_perl/5.16/mach/Apache2/Redmine.pm line 322 除外),并查看它是否在任何地方定义。

如果已定义,则找出定义它的文件为什么不是 Apache2/Redmine.pm 的 used

【讨论】:

  • Apache2>grep 'sub add' * PerlSections.pm:sub add_config { ServerUtil.pm: sub add_my_version { SizeLimit.pm:sub add_cleanup_handler { 但我安装了所有必需的 apache perl lib
  • 当缺少的子例程被称为 'some_auth_required' 时,你为什么要 grep 为 'sub add'?
  • 甚至 some_ grep 'some_' * -R Access.pm: $need_auth = $r->some_auth_required(); Access.pm:=head2 C Access.pm: $need_auth = $r->some_auth_required(); RequestRec.pm: $r->status($some_code);我已经使用 Apache2::Access qw();在 redmine.pm 中
  • 但尝试“grep -R 'sub some_auth_required'” 来查找该方法的定义位置。如果你没有找到定义,那么它可能是一个错误,我会联系制造商。
猜你喜欢
  • 2015-03-26
  • 1970-01-01
  • 2020-01-06
  • 1970-01-01
  • 1970-01-01
  • 2013-08-14
  • 2013-02-28
  • 1970-01-01
  • 2021-06-04
相关资源
最近更新 更多