phalcon/cphalcon · error · Phalcon\Mvc\Model\MetaData\Exceptions\MetaDataDirectoryNotWritable
Meta-Data directory cannot be written
Error message
Meta-Data directory cannot be written
What it means
Error "Meta-Data directory cannot be written" thrown in phalcon/cphalcon.
Source
Thrown at phalcon/Mvc/Model/MetaData/Stream.zep:100
try {
let path = this->metaDataDir . prepare_virtual_path(key, "_") . ".php";
if false === this->phpFilePutContents(path, "<?php return " . var_export(data, true) . "; ") {
this->throwWriteException(option);
}
} catch \Exception {
this->throwWriteException(option);
}
}
/**
* Throws an exception when the metadata cannot be written
*/
private function throwWriteException(var option) -> void
{
if option {
throw new MetaDataDirectoryNotWritable();
} else {
trigger_error(
"Meta-Data directory cannot be written"
);
}
}
}
View on GitHub (pinned to b7419de9cd)
When it happens
Trigger: Thrown at phalcon/Mvc/Model/MetaData/Stream.zep:100 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/8234f5f1373ef25b.
Report an issue: GitHub.