Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

clb

PHP ERRO

Recommended Posts

Prezados, necessito da ajuda, 

Estou com um trabalho parado necessitando desta solução.

Ao acessar a página ocorre o erro.

Já reinstalei, troquei todas as tabelas no php, etc............

Como sou leigo na leitura de PHP necessito da ajuda para me direcionar ao erro,

Já vou deixar meus agradeceimentos

 

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'date(created_time)' in 'where clause', query was: SELECT `main_table`.*, SUM(commission) AS `commission_total` FROM `affiliateplus_transaction` AS `main_table` WHERE (`account_id` = '7') AND (`date(created_time)` = '2018-08-08') GROUP BY date(created_time)

Trace:
#0 /var/www/webroot/ROOT/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /var/www/webroot/ROOT/app/code/core/Zend/Db/Statement.php(291): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /var/www/webroot/ROOT/lib/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#3 /var/www/webroot/ROOT/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT `main_ta...', Array)
#4 /var/www/webroot/ROOT/lib/Varien/Db/Adapter/Pdo/Mysql.php(504): Zend_Db_Adapter_Pdo_Abstract->query('SELECT `main_ta...', Array)
#5 /var/www/webroot/ROOT/lib/Zend/Db/Adapter/Abstract.php(737): Varien_Db_Adapter_Pdo_Mysql->query('SELECT `main_ta...', Array)
#6 /var/www/webroot/ROOT/lib/Varien/Data/Collection/Db.php(740): Zend_Db_Adapter_Abstract->fetchAll('SELECT `main_ta...', Array)
#7 /var/www/webroot/ROOT/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php(521): Varien_Data_Collection_Db->_fetchAll('SELECT `main_ta...', Array)
#8 /var/www/webroot/ROOT/lib/Varien/Data/Collection/Db.php(572): Mage_Core_Model_Resource_Db_Collection_Abstract->getData()
#9 /var/www/webroot/ROOT/lib/Varien/Data/Collection.php(268): Varien_Data_Collection_Db->load()
#10 /var/www/webroot/ROOT/app/code/local/Magestore/Affiliateplus/Block/Referrer.php(176): Varien_Data_Collection->getFirstItem()
#11 /var/www/webroot/ROOT/app/code/local/Magestore/Affiliateplus/Block/Referrer.php(152): Magestore_Affiliateplus_Block_Referrer->getCommissionInfo()
#12 /var/www/webroot/ROOT/app/design/frontend/base/default/template/affiliateplus/referrer.phtml(23): Magestore_Affiliateplus_Block_Referrer->getTraffics()
#13 /var/www/webroot/ROOT/app/code/core/Mage/Core/Block/Template.php(241): include('/var/www/webroo...')
#14 /var/www/webroot/ROOT/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/base/d...')
#15 /var/www/webroot/ROOT/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#16 /var/www/webroot/ROOT/app/code/local/Magestore/Affiliateplus/Block/Referrer.php(147): Mage_Core_Block_Template->_toHtml()
#17 /var/www/webroot/ROOT/app/code/core/Mage/Core/Block/Abstract.php(923): Magestore_Affiliateplus_Block_Referrer->_toHtml()
#18 /var/www/webroot/ROOT/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
#19 /var/www/webroot/ROOT/app/code/core/Mage/Core/Block/Abstract.php(923): Mage_Core_Block_Text_List->_toHtml()
#20 /var/www/webroot/ROOT/app/code/core/Mage/Core/Block/Abstract.php(641): Mage_Core_Block_Abstract->toHtml()
#21 /var/www/webroot/ROOT/app/code/core/Mage/Core/Block/Abstract.php(585): Mage_Core_Block_Abstract->_getChildHtml('content', true)
#22 /var/www/webroot/ROOT/app/design/frontend/rwd/default/template/page/2columns-left.phtml(59): Mage_Core_Block_Abstract->getChildHtml('content')
#23 /var/www/webroot/ROOT/app/code/core/Mage/Core/Block/Template.php(241): include('/var/www/webroo...')
#24 /var/www/webroot/ROOT/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/rwd/de...')
#25 /var/www/webroot/ROOT/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#26 /var/www/webroot/ROOT/app/code/core/Mage/Core/Block/Abstract.php(923): Mage_Core_Block_Template->_toHtml()
#27 /var/www/webroot/ROOT/app/code/core/Mage/Core/Model/Layout.php(555): Mage_Core_Block_Abstract->toHtml()
#28 /var/www/webroot/ROOT/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput()
#29 /var/www/webroot/ROOT/app/code/local/Magestore/Affiliateplus/controllers/IndexController.php(389): Mage_Core_Controller_Varien_Action->renderLayout()
#30 /var/www/webroot/ROOT/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Magestore_Affiliateplus_IndexController->referrersAction()
#31 /var/www/webroot/ROOT/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('referrers')
#32 /var/www/webroot/ROOT/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#33 /var/www/webroot/ROOT/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#34 /var/www/webroot/ROOT/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#35 /var/www/webroot/ROOT/index.php(83): Mage::run('', 'store')
#36 {main}

 

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.