{"record":{"id":"8234f5f1373ef25b","repo":"phalcon/cphalcon","slug":"meta-data-directory-cannot-be-written","errorCode":null,"errorMessage":"Meta-Data directory cannot be written","messagePattern":"Meta-Data directory cannot be written","errorType":"exception","errorClass":"Phalcon\\Mvc\\Model\\MetaData\\Exceptions\\MetaDataDirectoryNotWritable","httpStatus":null,"severity":"error","filePath":"phalcon/Mvc/Model/MetaData/Stream.zep","lineNumber":100,"sourceCode":"\n        try {\n            let path = this->metaDataDir . prepare_virtual_path(key, \"_\") . \".php\";\n\n            if false === this->phpFilePutContents(path, \"<?php return \" . var_export(data, true) . \"; \") {\n                this->throwWriteException(option);\n            }\n        } catch \\Exception {\n            this->throwWriteException(option);\n        }\n    }\n\n    /**\n     * Throws an exception when the metadata cannot be written\n     */\n    private function throwWriteException(var option) -> void\n    {\n        if option {\n            throw new MetaDataDirectoryNotWritable();\n        } else {\n            trigger_error(\n                \"Meta-Data directory cannot be written\"\n            );\n        }\n    }\n}\n","sourceCodeStart":82,"sourceCodeEnd":108,"githubUrl":"https://github.com/phalcon/cphalcon/blob/b7419de9cd0a8a3f48441ead84c9f8415d463e25/phalcon/Mvc/Model/MetaData/Stream.zep#L82-L108","documentation":"Error \"Meta-Data directory cannot be written\" thrown in phalcon/cphalcon.","triggerScenarios":"Thrown at phalcon/Mvc/Model/MetaData/Stream.zep:100 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"}