虫精灵 'undefined function make_url()'

The Bug Genie 'undefined function make_url()'

PHP Fatal error: Call to undefined function thebuggenie\core\helpers\make_url() in ../core/helpers/TextParser.php on line 706

这是我在 The Bug Genie 中尝试成功设置 VCS 集成时不断遇到的错误。它是一个具有 VCS (git) 集成的问题跟踪器。提交可以链接到一个项目,并使用 git-hook 将正确的提交消息与正确的问题联系起来。然后您可以在问题跟踪器中查看提交。显然,提交已链接到项目,但由于错误而未链接到问题。有人可以帮助我吗?

The source code on GitHub.

提前致谢!

据我所知,make_url 函数是在全局命名空间中定义的,但是是从命名空间 thebuggenie\core\helpers 中调用的。所以我想这是你的问题

我找到了解决方案。 vcs-integration 中似乎有错误。显然,使用 git-hook 时 ui.inc.php-library 没有加载。

所以临时解决方案(直到他们解决为止)是:

modules/vcs_integration/Vcs_integration.php:226 添加: framework\Context::loadLibrary('ui');