phalcon/cphalcon · error · Phalcon\Logger\Adapter\Exceptions\InvalidStreamMode
Adapter cannot be opened in read mode
Error message
Adapter cannot be opened in read mode
What it means
Error "Adapter cannot be opened in read mode" thrown in phalcon/cphalcon.
Source
Thrown at phalcon/Logger/Adapter/Stream.zep:73
* Stream name
*/
protected string name;
/**
* Stream constructor.
*
* @throws InvalidStreamMode
*/
public function __construct(string name, array options = [])
{
var mode;
/**
* Mode
*/
let mode = true === isset(options["mode"]) ? options["mode"] : "ab";
if (false !== mb_strpos(mode, "r")) {
throw new InvalidStreamMode();
}
let this->name = name,
this->mode = mode;
}
/**
* Closes the stream
*/
public function close() -> bool
{
var handler;
if (this->handler !== null) {
let handler = this->handler,
this->handler = null;
return this->phpFclose(handler);
}View on GitHub (pinned to b7419de9cd)
When it happens
Trigger: Thrown at phalcon/Logger/Adapter/Stream.zep:73 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/d5e9dc836875689c.
Report an issue: GitHub.