我们的ubuntu服务器上有一个roundcube实例.
从昨天开始,我们无法再发送电子邮件了.点击圆形立方体中的发送按钮后,“Nachricht wird gesendet …” – 消息(正在发送电子邮件)无休止地加载.
搜索日志后,我发现错误消息:
[30-Jun-2015 10:33:50 UTC] PHP Warning: Missing argument 1 for Mail_mimePart::Mail_mimePart(), called in [***]/roundcube/vendor/pear/mail_mime/Mail/mime.php on line 1288 and defined in [***]/roundcube/vendor/pear/mail_mime-decode/Mail/mimePart.php on line 127
[30-Jun-2015 10:33:50 UTC] PHP Fatal error: Call to undefined method Mail_mimePart::encodeHeader() in [***]/roundcube/vendor/pear/mail_mime/Mail/mime.php on line 1289
它仍然可以通过SMTP / Dovecot直接发送电子邮件,所以这一切都应该没问题.
我的第一个想法是安装梨包,但它们似乎正确安装在圆形立方体内.
Stacktrace是:
[30-Jun-2015 11:52:26 UTC] Backtrace from warning 'Missing argument 1 for Mail_mimePart::Mail_mimePart(),
called in [...]/roundcube/vendor/pear/mail_mime/Mail/mime.php on line 1334 and
defined' at [...]/roundcube/vendor/pear/mail_mime-decode/Mail/mimePart.php 127: [...]/roundcube/index.php 290 calling include_once() |
[...]/roundcube/program/steps/mail/sendmail.inc 509 calling headers() |
[...]/roundcube/vendor/pear/mail_mime/Mail/mime.php 1101 calling encodeHeaders() |
[...]/roundcube/vendor/pear/mail_mime/Mail/mime.php 1314 calling encodeHeader() |
[...]/roundcube/vendor/pear/mail_mime/Mail/mime.php 1334 calling Mail_mimePart()
[30-Jun-2015 11:52:26 UTC] PHP Fatal error: Call to undefined method Mail_mimePart::encodeHeader() in [...]roundcube/vendor/pear/mail_mime/Mail/mime.php on line 1335
笔记:
>服务器是最新的.
>作曲家已更新
最佳答案 不确定报告的位置,但目前您可以通过更改/vendor/pear/mail_mime/Mail/mime.php中来自require_once’Mail / mimePart.php’的第75行来解决此问题; to require_once’mimePart.php’;