phalcon/cphalcon · error · Phalcon\Mvc\Micro\Exceptions\LazyHandlerNotFound
Handler ' ' does not exist
Error message
Handler '{definition}' does not exist What it means
Thrown by Micro LazyLoader::callMethod when the stored handler definition is a class name that does not exist (class_exists fails), so the lazy handler cannot be instantiated. Verify the handler class name passed to the Micro route definition.
Solutions
- Fix the class name string passed to the lazy loader/collection handler
- Register the class with the autoloader (or composer) so class_exists succeeds
Defensive patterns
Strategy: fallback
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.
Appendix: 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)