{"record":{"id":"9a9c2030acf760bb","repo":"phalcon/cphalcon","slug":"module-definition-path-path-does-not-exist-9a9c20","errorCode":null,"errorMessage":"Module definition path '{path}' does not exist","messagePattern":"Module definition path '(.+?)' does not exist","errorType":"exception","errorClass":"Phalcon\\Mvc\\Application\\Exceptions\\ModuleDefinitionPathNotFound","httpStatus":null,"severity":"error","filePath":"phalcon/Mvc/Application.zep","lineNumber":223,"sourceCode":"\n            /**\n             * An array module definition contains a path to a module definition\n             * class\n             */\n            if typeof module === \"array\" {\n                /**\n                 * Class name used to load the module definition\n                 */\n                if !fetch className, module[\"className\"] {\n                    let className = \"Module\";\n                }\n\n                /**\n                 * If developer specify a path try to include the file\n                 */\n                if fetch path, module[\"path\"] {\n                    if unlikely !this->phpFileExists(path) {\n                        throw new ModuleDefinitionPathNotFound(path);\n                    }\n\n                    if !class_exists(className, false) {\n                        require_once path;\n                    }\n                }\n\n                let moduleObject = <ModuleDefinitionInterface> container->get(className);\n\n                /**\n                 * 'registerAutoloaders' and 'registerServices' are\n                 * automatically called\n                 */\n                moduleObject->registerAutoloaders(container);\n                moduleObject->registerServices(container);\n            } else {\n                /**\n                 * A module definition object, can be a Closure instance","sourceCodeStart":205,"sourceCodeEnd":241,"githubUrl":"https://github.com/phalcon/cphalcon/blob/b7419de9cd0a8a3f48441ead84c9f8415d463e25/phalcon/Mvc/Application.zep#L205-L241","documentation":"Error \"Module definition path '{path}' does not exist\" thrown in phalcon/cphalcon.","triggerScenarios":"Thrown at phalcon/Mvc/Application.zep:223 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b7419de9cd0a8a3f48441ead84c9f8415d463e25","analyzedAt":"2026-08-21T06:21:18.811Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}