{"record":{"id":"396879b299806f69","repo":"phalcon/cphalcon","slug":"this-object-cannot-be-unserialized","errorCode":null,"errorMessage":"This object cannot be unserialized","messagePattern":"This object cannot be unserialized","errorType":"exception","errorClass":"Phalcon\\Logger\\Exceptions\\DeserializationFailed","httpStatus":null,"severity":"error","filePath":"phalcon/Logger/Adapter/AbstractAdapter.zep","lineNumber":82,"sourceCode":"        }\n\n        this->close();\n    }\n\n    /**\n     * Prevent serialization\n     */\n    public function __serialize() -> array\n    {\n        throw new SerializationFailed();\n    }\n\n    /**\n     * Prevent unserialization\n     */\n    public function __unserialize(array data) -> void\n    {\n        throw new DeserializationFailed();\n    }\n\n    /**\n     * Adds a message to the queue\n     *\n     * @param Item $item\n     *\n     * @return AdapterInterface\n     */\n    public function add(<Item> item) -> <AdapterInterface>\n    {\n        var firstKey;\n\n        if this->queueLimit > 0 && count(this->queue) >= this->queueLimit {\n            let firstKey = array_key_first(this->queue);\n            if firstKey !== null {\n                unset(this->queue[firstKey]);\n            }","sourceCodeStart":64,"sourceCodeEnd":100,"githubUrl":"https://github.com/phalcon/cphalcon/blob/b7419de9cd0a8a3f48441ead84c9f8415d463e25/phalcon/Logger/Adapter/AbstractAdapter.zep#L64-L100","documentation":"Error \"This object cannot be unserialized\" thrown in phalcon/cphalcon.","triggerScenarios":"Thrown at phalcon/Logger/Adapter/AbstractAdapter.zep:82 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"}