Php Zend Project Live On Server Random出现致命错误

Php Zend Project Live On Server Random出现致命错误,php,zend-framework,zfcuser,Php,Zend Framework,Zfcuser,我有一个Zend2项目在本地主机上运行,没有问题。该应用程序运行完美。我把它上传到我的服务器上,现在它得到一个致命的错误,但不是每次 有时候会这样说, Fatal error: Class name must be a valid object or a string in /home/public_html/vendor/zendframework/zend-stdlib/src/ArrayObject.php on line 230 public function getIterator

我有一个Zend2项目在本地主机上运行,没有问题。该应用程序运行完美。我把它上传到我的服务器上,现在它得到一个致命的错误,但不是每次

有时候会这样说,

Fatal error: Class name must be a valid object or a string in /home/public_html/vendor/zendframework/zend-stdlib/src/ArrayObject.php on line 230

 public function getIterator()
{
    $class = $this->iteratorClass;

    return new $class($this->storage); // line 230
}
 File
        /vendor/zendframework/zend-stdlib/src/ArrayObject.php:184

Message:
Passed variable is not an array or object, using empty array instead
This issue is caused by the layout.phtml when there is an error. The layout needs to render but it doesn't have $this->url
有时它会这样说

Fatal error: Class name must be a valid object or a string in /home/public_html/vendor/zendframework/zend-stdlib/src/ArrayObject.php on line 230

 public function getIterator()
{
    $class = $this->iteratorClass;

    return new $class($this->storage); // line 230
}
 File
        /vendor/zendframework/zend-stdlib/src/ArrayObject.php:184

Message:
Passed variable is not an array or object, using empty array instead
This issue is caused by the layout.phtml when there is an error. The layout needs to render but it doesn't have $this->url
从来不会两者兼而有之,有时它可以完美地加载而没有任何问题。它引用的文件位于供应商路径中这是链接

 public function exchangeArray($data)
    {
        if (!is_array($data) && !is_object($data)) {
            throw new Exception\InvalidArgumentException('Passed variable is not an array or object, using empty array instead');
        } // Line 184

        if (is_object($data) && ($data instanceof self || $data instanceof \ArrayObject)) {
            $data = $data->getArrayCopy();
        }
        if (!is_array($data)) {
            $data = (array) $data;
        }

        $storage = $this->storage;

        $this->storage = $data;

        return $storage;
    }
你知道为什么这会发生在带有zend站点的实时服务器上,而不是本地主机上吗

我在github上发现了这篇文章,我认为它与ZFCUser有关

评论中有人这样说,

Fatal error: Class name must be a valid object or a string in /home/public_html/vendor/zendframework/zend-stdlib/src/ArrayObject.php on line 230

 public function getIterator()
{
    $class = $this->iteratorClass;

    return new $class($this->storage); // line 230
}
 File
        /vendor/zendframework/zend-stdlib/src/ArrayObject.php:184

Message:
Passed variable is not an array or object, using empty array instead
This issue is caused by the layout.phtml when there is an error. The layout needs to render but it doesn't have $this->url

我不知道他在说什么。有人能向正确的方向射击我吗?

我没有使用ZFCUser,但从问题来看,这可能是那种只发生在错误页面(如404页面)上的事情吗?没有,先生,我在登录页面和用户页面上看到过这种情况。我认为这可能只发生在zfcuser页面上。这可能与服务器中缺少mbstring有关。我现在正在安装它。它导致在公开的错误日志中出错。