Ubuntu 11.04 升级到 Ubuntu 11.10 时的 Bugzilla 4.0.2 错误

标签 bugzilla

我的 Bugzilla 运行良好,直到上周我将操作系统升级到 Ubuntu 11.10。现在,当我输入 http://localhost/bugzilla 进入 Bugzilla 时,而不是将我定向到 Bugzilla 主页,这里显示的是:

#!/usr/bin/perl -wT
# -*- Mode: perl; indent-tabs-mode: nil -*-
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Bugzilla Bug Tracking System.
#
# The Initial Developer of the Original Code is Netscape Communications
# Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s): Jacob Steenhagen <jake@bugzilla.org>
#                 Frédéric Buclin <LpSolit@gmail.com>

###############################################################################
# Script Initialization
###############################################################################

# Make it harder for us to do dangerous things in Perl.
use strict;

# Include the Bugzilla CGI and general utility library.
use lib qw(. lib);

use Bugzilla;
use Bugzilla::Constants;
use Bugzilla::Error;
use Bugzilla::Update;

# Check whether or not the user is logged in
my $user = Bugzilla->login(LOGIN_OPTIONAL);
my $cgi = Bugzilla->cgi;
my $template = Bugzilla->template;
my $vars = {};

# And log out the user if requested. We do this first so that nothing
# else accidentally relies on the current login.
if ($cgi->param('logout')) {
    Bugzilla->logout();
    $user = Bugzilla->user;
    $vars->{'message'} = "logged_out";
    # Make sure that templates or other code doesn't get confused about this.
    $cgi->delete('logout');
}

###############################################################################
# Main Body Execution
###############################################################################

# Return the appropriate HTTP response headers.
print $cgi->header();

if ($user->in_group('admin')) {
    # If 'urlbase' is not set, display the Welcome page.
    unless (Bugzilla->params->{'urlbase'}) {
         $template->process('welcome-admin.html.tmpl')
           || ThrowTemplateError($template->error());
         exit;
    }
    # Inform the administrator about new releases, if any.
    $vars->{'release'} = Bugzilla::Update::get_notifications();
}

# Generate and return the UI (HTML page) from the appropriate template.
$template->process("index.html.tmpl", $vars)
  || ThrowTemplateError($template->error());

请帮忙。提前致谢。

最佳答案

我有同样的问题。帮助我的是数据库的备份和全新安装。

在这里看到我的回答 https://askubuntu.com/questions/77460/bugzilla-stopped-working-after-upgrade-to-11-10

关于Ubuntu 11.04 升级到 Ubuntu 11.10 时的 Bugzilla 4.0.2 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7832313/

相关文章:

perl - 无法为 BugZilla 运行 checksetup.pl 需要 ppm 安装 DBI

workflow - Bugzilla - 工作流程定制

linux - 安装后 Bugzilla 错误 : "TEST-FAILED Web Server is not executing CGI files"

git - 安装 Gitzilla 时的 PyBugz 版本

Bugzilla:软件错误:无法确定本地时区

ubuntu - 将 Debian 错误导入启动板

perl - 验证失败 : Must issue a STARTTLS command first