phalcon/cphalcon · error · Phalcon\Mvc\Micro\Exceptions\LazyHandlerNotFound

Handler '{definition}' does not exist

Error message

Handler '{definition}' does not exist

What it means

Error "Handler '{definition}' does not exist" thrown in phalcon/cphalcon.

Source

Thrown at phalcon/Mvc/Micro/LazyLoader.zep:56

        let this->definition = definition;
    }

    /**
     * Calling __call method
     *
     * @param  array arguments
     * @return mixed
     */
    public function callMethod( string method, arguments, <BinderInterface> modelBinder = null)
    {
         var handler, definition, bindCacheKey;

        let handler    = this->handler,
            definition = this->definition;

        if typeof handler != "object" {
            if !class_exists(definition) {
                throw new LazyHandlerNotFound(definition);
            }

            let handler = create_instance(definition);

            let this->handler = handler;
        }

        if modelBinder != null {
            let bindCacheKey = "_PHMB_" . definition . "_" . method;

            let arguments = modelBinder->bindToHandler(
                handler,
                arguments,
                bindCacheKey,
                method
            );
        }

View on GitHub (pinned to b7419de9cd)

When it happens

Trigger: Thrown at phalcon/Mvc/Micro/LazyLoader.zep:56 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of phalcon/cphalcon@b7419de9cd (2026-08-21). Data as JSON: /api/errors/bcc4b2ce1a9d3aeb. Report an issue: GitHub.