phalcon/cphalcon · error · Phalcon\Logger\Exceptions\SerializationFailed
This object cannot be serialized
Error message
This object cannot be serialized
What it means
Error "This object cannot be serialized" thrown in phalcon/cphalcon.
Source
Thrown at phalcon/Logger/Adapter/AbstractAdapter.zep:74
* Throwing from a destructor is fatal during script shutdown, so an open
* transaction is auto-committed here (flushing the queued items) rather
* than throwing.
*/
public function __destruct()
{
if this->inTransaction {
this->commit();
}
this->close();
}
/**
* Prevent serialization
*/
public function __serialize() -> array
{
throw new SerializationFailed();
}
/**
* Prevent unserialization
*/
public function __unserialize(array data) -> void
{
throw new DeserializationFailed();
}
/**
* Adds a message to the queue
*
* @param Item $item
*
* @return AdapterInterface
*/
public function add(<Item> item) -> <AdapterInterface>View on GitHub (pinned to b7419de9cd)
When it happens
Trigger: Thrown at phalcon/Logger/Adapter/AbstractAdapter.zep:74 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/d3b57af520ea2a78.
Report an issue: GitHub.