TDbException

Description

TDbTransaction is inactive.

Source File

/home/repararelcd/prado/framework_new/Data/TDbTransaction.php (70)

0059:      * Commits a transaction.
0060:      * @throws TDbException if the transaction or the DB connection is not active.
0061:      */
0062:     public function commit()
0063:     {
0064:         if($this->_active && $this->_connection->getActive())
0065:         {
0066:             $this->_connection->getPdoInstance()->commit();
0067:             $this->_active=false;
0068:         }
0069:         else
0070: throw new TDbException('dbtransaction_transaction_inactive');
0071: } 0072: 0073: /** 0074: * Rolls back a transaction. 0075: * @throws TDbException if the transaction or the DB connection is not active. 0076: */ 0077: public function rollback() 0078: { 0079: if($this->_active && $this->_connection->getActive()) 0080: { 0081: $this->_connection->getPdoInstance()->rollBack(); 0082: $this->_active=false;

Stack Trace

#0 /home/repararelcd/public_html/protected/Data/Helper/BasicHelperManager.php(142): TDbTransaction->commit()
#1 /home/repararelcd/public_html/protected/Data/Helper/ProductHelper.php(1153): BasicHelperManager->commitTransaction(Object(TDbTransaction))
#2 /home/repararelcd/public_html/protected/Pages/Catalog/ProductView.php(146): ProductHelper->updateProductVisitsCounter(Object(Product))
#3 /home/repararelcd/prado/framework_new/Web/UI/TControl.php(1270): ProductView->onInit(NULL)
#4 /home/repararelcd/prado/framework_new/Web/UI/TCompositeControl.php(35): TControl->initRecursive(NULL)
#5 /home/repararelcd/prado/framework_new/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(NULL)
#6 /home/repararelcd/prado/framework_new/Web/UI/TPage.php(207): TTemplateControl->initRecursive()
#7 /home/repararelcd/prado/framework_new/Web/UI/TPage.php(198): TPage->processNormalRequest(Object(THtmlWriter))
#8 /home/repararelcd/prado/framework_new/Web/Services/TPageService.php(498): TPage->run(Object(THtmlWriter))
#9 /home/repararelcd/prado/framework_new/Web/Services/TPageService.php(444): TPageService->runPage(Object(ProductView), Array)
#10 /home/repararelcd/prado/framework_new/TApplication.php(1095): TPageService->run()
#11 /home/repararelcd/prado/framework_new/TApplication.php(382): TApplication->runService()
#12 /home/repararelcd/public_html/init_framework_for_web.php(9): TApplication->run()
#13 /home/repararelcd/public_html/index.php(10): include('/home/repararel...')
#14 {main}
2019-11-18 17:06 Apache PRADO/3.1.7