【问题标题】:Squirrelmail ERROR when loading read/new messages加载已读/新邮件时出现 Squirrelmail 错误
【发布时间】:2013-05-25 11:27:51
【问题描述】:

我能够成功安装我的网络邮件客户端;但是,每次加载消息时,我都会收到下面列出的这些错误....以前有没有人遇到过这样的错误?如果是这样,我该如何解决?提前致谢!

Strict Standards: Non-static method Message::parseStructure() should not be called statically in C:\Apache24\htdocs\squirrelmail\functions\mime.php on line 36

Strict Standards: Non-static method Message::parseBodyStructure() should not be called statically in C:\Apache24\htdocs\squirrelmail\class\mime\Message.class.php on line 296

Warning: Creating default object from empty value in C:\Apache24\htdocs\squirrelmail\class\mime\Message.class.php on line 367

Warning: Creating default object from empty value in C:\Apache24\htdocs\squirrelmail\class\mime\Message.class.php on line 367

Warning: Variable passed to each() is not an array or object in C:\Apache24\htdocs\squirrelmail\functions\mime.php on line 1594

【问题讨论】:

    标签: php squirrelmail


    【解决方案1】:

    将您的php.ini 更改为不严格。

    error_reporting = E_ALL & ~E_STRICT
    

    然后重启你的 apache 服务器。


    甚至,您可以在您的 php 代码中执行此操作:

    ini_set('display_errors', '0');     # don't show any errors...
    error_reporting(E_ALL | E_STRICT);  # ...but do log them
    

    参考:PHP 5 disable strict standards error

    【讨论】:

      猜你喜欢
      • 2015-06-20
      • 2018-08-30
      • 2015-08-26
      • 2016-09-11
      • 1970-01-01
      • 2015-05-17
      • 2020-06-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多