{"record":{"id":"0f0b5a44bde9e632","repo":"phalcon/cphalcon","slug":"there-is-no-active-transaction-0f0b5a","errorCode":null,"errorMessage":"There is no active transaction","messagePattern":"There is no active transaction","errorType":"exception","errorClass":"Phalcon\\Logger\\Exceptions\\TransactionNotActive","httpStatus":null,"severity":"error","filePath":"phalcon/Logger/Adapter/AbstractAdapter.zep","lineNumber":248,"sourceCode":"     */\n    protected function getFormattedItem(<Item> item) -> string\n    {\n        var formatter;\n\n        let formatter = this->getFormatter();\n\n        return formatter->format(item);\n    }\n\n    /**\n     * Checks if the transaction is active\n     *\n     * @throws TransactionNotActive\n     */\n    private function checkTransaction() -> void\n    {\n        if (true !== this->inTransaction) {\n            throw new TransactionNotActive();\n        }\n    }\n\n    /**\n     * Resets the transaction flag and queue array\n     */\n    private function resetTransaction() -> void\n    {\n        let this->queue         = [],\n            this->inTransaction = false;\n    }\n}\n","sourceCodeStart":230,"sourceCodeEnd":261,"githubUrl":"https://github.com/phalcon/cphalcon/blob/b7419de9cd0a8a3f48441ead84c9f8415d463e25/phalcon/Logger/Adapter/AbstractAdapter.zep#L230-L261","documentation":"Error \"There is no active transaction\" thrown in phalcon/cphalcon.","triggerScenarios":"Thrown at phalcon/Logger/Adapter/AbstractAdapter.zep:248 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"}