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

There is an active transaction

Error message

There is an active transaction

What it means

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

Source

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

                unset(this->queue[firstKey]);
            }
        }

        let this->queue[] = item;

        return this;
    }

    /**
     * Starts a transaction
     *
     * @return AdapterInterface
     * @throws TransactionAlreadyActive
     */
    public function begin() -> <AdapterInterface>
    {
        if this->inTransaction {
            throw new TransactionAlreadyActive();
        }

        let this->inTransaction = true;

        return this;
    }

    /**
     * Closes the logger
     *
     * @return bool
     */
    abstract public function close() -> bool;

    /**
     * Commits the internal transaction
     *
     * @return AdapterInterface

View on GitHub (pinned to b7419de9cd)

When it happens

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