ikoniqoz - 1 week ago

BAH! HUMBUG!! I have got myself in a mess. After thinking that my install of 3.6.4 was scrambled somehow I deleted it and started again with a fresh install. So I have placed my copy of the image field type into /addons/shared/anomaly/ and when I reload the home page or login to admin - get this error:

/Users/Mac/Sites/pyro364.local/vendor/laravel/framework/src/Illuminate/Container/Container.php }

 * Instantiate a concrete instance of the given type.
 * @param  string  $concrete
 * @return mixed
 * @throws \Illuminate\Contracts\Container\BindingResolutionException
public function build($concrete)
    // If the concrete type is actually a Closure, we will just execute it and
    // hand back the results of the functions, which allows functions to be
    // used as resolvers for more fine-tuned resolution of these objects.
    if ($concrete instanceof Closure) {
        return $concrete($this, $this->getLastParameterOverride());

    $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()) {
        return $this->notInstantiable($concrete);

    $this->buildStack[] = $concrete;

    $constructor = $reflector->getConstructor();

    // If there are no constructors, that means there are no dependencies then
    // we can just resolve the instances of the objects right away, without
    // resolving any other types or dependencies out of these containers.
    if (is_null($constructor)) {

        return new $concrete;

Arguments "Class Anomaly\ImageFieldType\ImageFieldType does not exist"

What am I doing wrong ? Thanks in advance.

ryanthompson - 1 week ago

If you move addons around manually you MUST use composer dump-autoload in the base of your application to generate the autoload file.

ikoniqoz - 1 week ago

Thanks Ryan. Thats what I call a Gotcha.