首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Ubuntu18.04上加载SimpleXML失败

在Ubuntu18.04上加载SimpleXML失败
EN

Stack Overflow用户
提问于 2020-07-10 14:47:35
回答 1查看 106关注 0票数 0

我最近在Ubuntu 18.04服务器上安装了一个phabricator本地实例,我正在将其配置为使用Amazon SES处理出站电子邮件,在配置完上述所有步骤后,我正在尝试使用./bin/mail send-test --to测试电子邮件功能,该测试失败并出现以下错误:

代码语言:javascript
复制
Reading message body from stdin...
[2020-07-10 06:28:19] EXCEPTION: (Exception) The PHP SimpleXML extension is not available, but this extension is required to send mail via Amazon SES, because Amazon SES returns API responses in XML format. Install or enable the SimpleXML extension. at [<phabricator>/externals/amazon-ses/ses.php:84]
arcanist(head=master, ref.master=65cda1596f25), phabricator(head=master, ref.master=205657ac76a2)
  #0 SimpleEmailService::__construct called at [<phabricator>/src/applications/metamta/adapter/PhabricatorMailAmazonSESAdapter.php:62]
  #1 PhabricatorMailAmazonSESAdapter::executeSend called at [<phabricator>/externals/phpmailer/class.phpmailer-lite.php:592]
  #2 PHPMailerLite::Send called at [<phabricator>/src/applications/metamta/adapter/PhabricatorMailAmazonSESAdapter.php:45]
  #3 PhabricatorMailAmazonSESAdapter::sendMessage called at [<phabricator>/src/applications/metamta/storage/PhabricatorMetaMTAMail.php:750]
  #4 PhabricatorMetaMTAMail::sendWithMailers called at [<phabricator>/src/applications/metamta/storage/PhabricatorMetaMTAMail.php:555]
  #5 PhabricatorMetaMTAMail::sendNow called at [<phabricator>/src/applications/metamta/PhabricatorMetaMTAWorker.php:22]
  #6 PhabricatorMetaMTAWorker::doWork called at [<phabricator>/src/infrastructure/daemon/workers/PhabricatorWorker.php:124]
  #7 PhabricatorWorker::executeTask called at [<phabricator>/src/infrastructure/daemon/workers/PhabricatorWorker.php:163]
  #8 PhabricatorWorker::scheduleTask called at [<phabricator>/src/applications/metamta/storage/PhabricatorMetaMTAMail.php:525]
  #9 PhabricatorMetaMTAMail::save called at [<phabricator>/src/applications/metamta/management/PhabricatorMailManagementSendTestWorkflow.php:228]
  #10 PhabricatorMailManagementSendTestWorkflow::execute called at [<arcanist>/src/parser/argument/PhutilArgumentParser.php:492]
  #11 PhutilArgumentParser::parseWorkflowsFull called at [<arcanist>/src/parser/argument/PhutilArgumentParser.php:377]
  #12 PhutilArgumentParser::parseWorkflows called at [<phabricator>/scripts/mail/manage_mail.php:21]

我已经安装了php7.2-xml

我的部署环境如下:

代码语言:javascript
复制
Description:    Ubuntu 18.04.4 LTS
Release:    18.04
Codename:   bionic

PHP:

代码语言:javascript
复制
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.7, Copyright (c), by Zend Technologies
EN

回答 1

Stack Overflow用户

发布于 2020-07-18 03:41:49

php-7.2-xml与7.4不兼容,我安装了7.4-xml,它工作了!

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/62828724

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档