phalcon/cphalcon · error · Phalcon\Logger\Exceptions\TransactionNotActive

There is no active transaction

Error message

There is no active transaction

What it means

Error "There is no active transaction" thrown in phalcon/cphalcon.

Source

Thrown at phalcon/Logger/Adapter/AbstractAdapter.zep:248

     */
    protected function getFormattedItem(<Item> item) -> string
    {
        var formatter;

        let formatter = this->getFormatter();

        return formatter->format(item);
    }

    /**
     * Checks if the transaction is active
     *
     * @throws TransactionNotActive
     */
    private function checkTransaction() -> void
    {
        if (true !== this->inTransaction) {
            throw new TransactionNotActive();
        }
    }

    /**
     * Resets the transaction flag and queue array
     */
    private function resetTransaction() -> void
    {
        let this->queue         = [],
            this->inTransaction = false;
    }
}

View on GitHub (pinned to b7419de9cd)

When it happens

Trigger: Thrown at phalcon/Logger/Adapter/AbstractAdapter.zep:248 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/0f0b5a44bde9e632. Report an issue: GitHub.