Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

October CMS Reflection Exception on Z-Ray

When I load my October installation on a server with Z-Ray, I get this error:

// used as resolvers for more fine-tuned resolution of these objects.

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())
{

The error come from this line: $reflector = new ReflectionClass($concrete);

As a ReflectionException.

I don't know why it's do that, but on XAMPP, this is not present.

URL: With Z-Ray and without Z-Ray. Same files, copy/pasted.

Thanks

like image 557
Félix Desjardins Avatar asked Aug 19 '15 21:08

Félix Desjardins


1 Answers

I have found the problem.

The Laravel plugin was causing a conflict with October CMS.

How I found this? First, there was this error, with this file:

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

After, I have remarqued that the laravel panel was blank, but with numbers.

Thanks to @num8er who takes its times to help me resolve this!

like image 160
Félix Desjardins Avatar answered Sep 19 '22 14:09

Félix Desjardins