Auth_imp:未找到所请求的 IMAP 扩展。nostrong.cn/ip/index.php

本文记录了一次使用Horde IMP过程中遇到的严重错误,主要问题是未找到所需的IMAP扩展,导致无法进行邮件认证。文章详细展示了错误的堆栈跟踪,从PEAR_Error异常到各个相关函数的调用流程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Warning: register_shutdown_function() [ function.register-shutdown-function]: Invalid shutdown callback 'imap_errors' passed in /usr/local/apache2/htdocs/horde/imp/lib/base.php on line 145

Warning: register_shutdown_function() [ function.register-shutdown-function]: Invalid shutdown callback 'imap_alerts' passed in /usr/local/apache2/htdocs/horde/imp/lib/base.php on line 146

Notice: Use of undefined constant OP_HALFOPEN - assumed 'OP_HALFOPEN' in /usr/local/apache2/htdocs/horde/imp/lib/Block/tree_folders.php on line 26

出现严重错误

Auth_imp:未找到所请求的 IMAP 扩展。

[行 44//usr/local/apache2/htdocs/horde/imp/lib/Auth/imp.php]

详情(也位于 Horde 日志文件中):

 

object(PEAR_Error)#14 (8) {
  ["error_message_prefix"]=>
  string(0) ""
  ["mode"]=>
  int(1)
  ["level"]=>
  int(1024)
  ["code"]=>
  NULL
  ["message"]=>
  string(47) "Auth_imp:未找到所请求的 IMAP 扩展。"
  ["userinfo"]=>
  NULL
  ["backtrace"]=>
  array(8) {
    [0]=>
    array(6) {
      ["file"]=>
      string(26) "/usr/lib/bin/pear/PEAR.php"
      ["line"]=>
      int(534)
      ["function"]=>
      string(10) "PEAR_Error"
      ["class"]=>
      string(10) "PEAR_Error"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(5) {
        [0]=>
        string(47) "Auth_imp:未找到所请求的 IMAP 扩展。"
        [1]=>
        NULL
        [2]=>
        int(1)
        [3]=>
        int(1024)
        [4]=>
        NULL
      }
    }
    [1]=>
    array(6) {
      ["file"]=>
      string(52) "/usr/local/apache2/htdocs/horde/imp/lib/Auth/imp.php"
      ["line"]=>
      int(44)
      ["function"]=>
      string(10) "raiseError"
      ["class"]=>
      string(4) "PEAR"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(1) {
        [0]=>
        string(47) "Auth_imp:未找到所请求的 IMAP 扩展。"
      }
    }
    [2]=>
    array(6) {
      ["file"]=>
      string(50) "/usr/local/apache2/htdocs/horde/lib/Horde/Auth.php"
      ["line"]=>
      int(1259)
      ["function"]=>
      string(8) "Auth_imp"
      ["class"]=>
      string(8) "Auth_imp"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(1) {
        [0]=>
        &array(2) {
          ["username"]=>
          string(13) "Administrator"
          ["requestuser"]=>
          bool(false)
        }
      }
    }
    [3]=>
    array(6) {
      ["file"]=>
      string(50) "/usr/local/apache2/htdocs/horde/lib/Horde/Auth.php"
      ["line"]=>
      int(1296)
      ["function"]=>
      string(7) "factory"
      ["class"]=>
      string(4) "Auth"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(2) {
        [0]=>
        &array(2) {
          [0]=>
          string(3) "imp"
          [1]=>
          string(3) "imp"
        }
        [1]=>
        &array(2) {
          ["username"]=>
          string(13) "Administrator"
          ["requestuser"]=>
          bool(false)
        }
      }
    }
    [4]=>
    array(6) {
      ["file"]=>
      string(47) "/usr/local/apache2/htdocs/horde/imp/lib/IMP.php"
      ["line"]=>
      int(204)
      ["function"]=>
      string(9) "singleton"
      ["class"]=>
      string(4) "Auth"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(1) {
        [0]=>
        &array(2) {
          [0]=>
          string(3) "imp"
          [1]=>
          string(3) "imp"
        }
      }
    }
    [5]=>
    array(6) {
      ["file"]=>
      string(62) "/usr/local/apache2/htdocs/horde/imp/lib/Block/tree_folders.php"
      ["line"]=>
      int(26)
      ["function"]=>
      string(19) "checkAuthentication"
      ["class"]=>
      string(3) "IMP"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(2) {
        [0]=>
        &string(11) "OP_HALFOPEN"
        [1]=>
        &bool(true)
      }
    }
    [6]=>
    array(6) {
      ["file"]=>
      string(51) "/usr/local/apache2/htdocs/horde/lib/Horde/Block.php"
      ["line"]=>
      int(167)
      ["function"]=>
      string(10) "_buildTree"
      ["class"]=>
      string(28) "Horde_Block_imp_tree_folders"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(3) {
        [0]=>
        &object(Horde_Tree_javascript)#10 (13) {
          ["_source_name"]=>
          NULL
          ["_options_name"]=>
          NULL
          ["_target_name"]=>
          NULL
          ["_instance"]=>
          string(10) "horde_menu"
          ["_header"]=>
          array(0) {
          }
          ["_nodes"]=>
          array(2) {
            ["horde"]=>
            array(5) {
              ["label"]=>
              string(5) "Horde"
              ["expanded"]=>
              bool(false)
              ["url"]=>
              string(16) "/horde/login.php"
              ["icon"]=>
              string(32) "/horde/themes/graphics/horde.png"
              ["icondir"]=>
              string(0) ""
            }
            ["imp"]=>
            array(5) {
              ["label"]=>
              string(6) "邮件"
              ["expanded"]=>
              bool(false)
              ["url"]=>
              string(11) "/horde/imp/"
              ["icon"]=>
              string(34) "/horde/imp/themes/graphics/imp.png"
              ["icondir"]=>
              string(0) ""
            }
          }
          ["_root_nodes"]=>
          array(2) {
            [0]=>
            string(5) "horde"
            [1]=>
            string(3) "imp"
          }
          ["_extra_cols_left"]=>
          int(0)
          ["_extra_cols_right"]=>
          int(0)
          ["_options"]=>
          array(2) {
            ["lines"]=>
            bool(true)
            ["target"]=>
            string(10) "horde_main"
          }
          ["_sortCriteria"]=>
          NULL
          ["_usesession"]=>
          bool(true)
          ["_static"]=>
          bool(false)
        }
        [1]=>
        &int(0)
        [2]=>
        &string(3) "imp"
      }
    }
    [7]=>
    array(6) {
      ["file"]=>
      string(59) "/usr/local/apache2/htdocs/horde/services/portal/sidebar.php"
      ["line"]=>
      int(241)
      ["function"]=>
      string(9) "buildTree"
      ["class"]=>
      string(11) "Horde_Block"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(3) {
        [0]=>
        &object(Horde_Tree_javascript)#10 (13) {
          ["_source_name"]=>
          NULL
          ["_options_name"]=>
          NULL
          ["_target_name"]=>
          NULL
          ["_instance"]=>
          string(10) "horde_menu"
          ["_header"]=>
          array(0) {
          }
          ["_nodes"]=>
          array(2) {
            ["horde"]=>
            array(5) {
              ["label"]=>
              string(5) "Horde"
              ["expanded"]=>
              bool(false)
              ["url"]=>
              string(16) "/horde/login.php"
              ["icon"]=>
              string(32) "/horde/themes/graphics/horde.png"
              ["icondir"]=>
              string(0) ""
            }
            ["imp"]=>
            array(5) {
              ["label"]=>
              string(6) "邮件"
              ["expanded"]=>
              bool(false)
              ["url"]=>
              string(11) "/horde/imp/"
              ["icon"]=>
              string(34) "/horde/imp/themes/graphics/imp.png"
              ["icondir"]=>
              string(0) ""
            }
          }
          ["_root_nodes"]=>
          array(2) {
            [0]=>
            string(5) "horde"
            [1]=>
            string(3) "imp"
          }
          ["_extra_cols_left"]=>
          int(0)
          ["_extra_cols_right"]=>
          int(0)
          ["_options"]=>
          array(2) {
            ["lines"]=>
            bool(true)
            ["target"]=>
            string(10) "horde_main"
          }
          ["_sortCriteria"]=>
          NULL
          ["_usesession"]=>
          bool(true)
          ["_static"]=>
          bool(false)
        }
        [1]=>
        &int(0)
        [2]=>
        &string(3) "imp"
      }
    }
  }
  ["callback"]=>
  NULL
}
 如何解决?
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值