【问题标题】:October CMS Reflection Exception on Z-RayZ-Ray 上的 10 月 CMS 反射异常
【发布时间】:2015-11-13 09:15:20
【问题描述】:

当我使用 Z-Ray 在服务器上加载 10 月份的安装时,我收到此错误:

// 用作解析器以对这些对象进行更精细的解析。

if ($concrete instanceof Closure)
{
    return $concrete($this, $parameters);
}

$reflector = new ReflectionClass($concrete);

// If the type is not instantiable, the developer is attempting to resolve
// an abstract type such as an Interface of Abstract Class and there is
// no binding registered for the abstractions so we need to bail out.
if ( ! $reflector->isInstantiable())
{

错误来自这一行:$reflector = new ReflectionClass($concrete);

作为ReflectionException

我不知道为什么会这样,但是在 XAMPP 上,这不存在。

网址:With Z-Raywithout Z-Ray。相同的文件,复制/粘贴。

谢谢

【问题讨论】:

  • 试一试:composer dump-autoload in app根目录
  • @num8er 10 月份没有 composer.json。或者文件未加载。
  • 抱歉,它是如何从供应商文件夹中自动加载类的?
  • 好像是octobercms的问题:github.com/octobercms/october/issues/799
  • @num8er 我已经找到了答案,所以请随意复制它以获得50分(:

标签: php laravel zend-server octobercms


【解决方案1】:

我找到了问题。

Laravel 插件导致与十月 CMS 发生冲突。

我是怎么找到这个的? 首先,有这个错误,这个文件:

C:\Program Files (x86)\SiteExtensions\Zray55\0.9.6\plugins\Laravel\1.0.0\zray\zray.php(122): Illuminate\Container\Container->offsetGet('auth') #5 C:\Program Files (x86)\SiteExtensions\Zray55\0.9.6\plugins\Laravel\1.0.0\zray\zray.php(27): ZRay\Laravel->loadUserPane

之后,我说 laravel 面板是空白的,但有数字。

感谢@num8er,他花时间帮我解决这个问题!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-01-18
    • 2018-04-15
    • 2016-07-22
    • 1970-01-01
    • 2015-11-08
    • 1970-01-01
    相关资源
    最近更新 更多