Zend Framework Default Application
Ошибка12
Application error
object(Zend_Db_Statement_Exception)#114 (8) {
["message":protected]=>
string(180) "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'enabled' in 'where clause', query was: SELECT count(*) as count FROM products WHERE enabled AND sup_id IN (12,36,42,100,177)"
["string":"Exception":private]=>
string(0) ""
["code":protected]=>
int(42)
["file":protected]=>
string(34) "/var/www/Zend/Db/Statement/Pdo.php"
["line":protected]=>
int(235)
["trace":"Exception":private]=>
array(12) {
[0]=>
array(5) {
["file"]=>
string(30) "/var/www/Zend/Db/Statement.php"
["line"]=>
int(303)
["function"]=>
string(8) "_execute"
["class"]=>
string(21) "Zend_Db_Statement_Pdo"
["type"]=>
string(2) "->"
}
[1]=>
array(5) {
["file"]=>
string(37) "/var/www/Zend/Db/Adapter/Abstract.php"
["line"]=>
int(480)
["function"]=>
string(7) "execute"
["class"]=>
string(17) "Zend_Db_Statement"
["type"]=>
string(2) "->"
}
[2]=>
array(5) {
["file"]=>
string(41) "/var/www/Zend/Db/Adapter/Pdo/Abstract.php"
["line"]=>
int(238)
["function"]=>
string(5) "query"
["class"]=>
string(24) "Zend_Db_Adapter_Abstract"
["type"]=>
string(2) "->"
}
[3]=>
array(5) {
["file"]=>
string(37) "/var/www/Zend/Db/Adapter/Abstract.php"
["line"]=>
int(759)
["function"]=>
string(5) "query"
["class"]=>
string(28) "Zend_Db_Adapter_Pdo_Abstract"
["type"]=>
string(2) "->"
}
[4]=>
array(5) {
["file"]=>
string(59) "/var/www/artis/application/models/DbTable/TotalProducts.php"
["line"]=>
int(20)
["function"]=>
string(8) "fetchRow"
["class"]=>
string(24) "Zend_Db_Adapter_Abstract"
["type"]=>
string(2) "->"
}
[5]=>
array(5) {
["file"]=>
string(77) "/var/www/artis/application/modules/default/controllers/ProductsController.php"
["line"]=>
int(9)
["function"]=>
string(14) "getAllProducts"
["class"]=>
string(39) "Application_Model_DbTable_TotalProducts"
["type"]=>
string(2) "->"
}
[6]=>
array(5) {
["file"]=>
string(35) "/var/www/Zend/Controller/Action.php"
["line"]=>
int(516)
["function"]=>
string(11) "indexAction"
["class"]=>
string(18) "ProductsController"
["type"]=>
string(2) "->"
}
[7]=>
array(5) {
["file"]=>
string(48) "/var/www/Zend/Controller/Dispatcher/Standard.php"
["line"]=>
int(308)
["function"]=>
string(8) "dispatch"
["class"]=>
string(22) "Zend_Controller_Action"
["type"]=>
string(2) "->"
}
[8]=>
array(5) {
["file"]=>
string(34) "/var/www/Zend/Controller/Front.php"
["line"]=>
int(954)
["function"]=>
string(8) "dispatch"
["class"]=>
string(35) "Zend_Controller_Dispatcher_Standard"
["type"]=>
string(2) "->"
}
[9]=>
array(5) {
["file"]=>
string(49) "/var/www/Zend/Application/Bootstrap/Bootstrap.php"
["line"]=>
int(105)
["function"]=>
string(8) "dispatch"
["class"]=>
string(21) "Zend_Controller_Front"
["type"]=>
string(2) "->"
}
[10]=>
array(5) {
["file"]=>
string(29) "/var/www/Zend/Application.php"
["line"]=>
int(400)
["function"]=>
string(3) "run"
["class"]=>
string(36) "Zend_Application_Bootstrap_Bootstrap"
["type"]=>
string(2) "->"
}
[11]=>
array(5) {
["file"]=>
string(31) "/var/www/artis/public/index.php"
["line"]=>
int(34)
["function"]=>
string(3) "run"
["class"]=>
string(16) "Zend_Application"
["type"]=>
string(2) "->"
}
}
["previous":"Exception":private]=>
object(PDOException)#113 (8) {
["message":protected]=>
string(82) "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'enabled' in 'where clause'"
["string":"Exception":private]=>
string(0) ""
["code":protected]=>
string(5) "42S22"
["file":protected]=>
string(34) "/var/www/Zend/Db/Statement/Pdo.php"
["line":protected]=>
int(228)
["trace":"Exception":private]=>
array(13) {
[0]=>
array(5) {
["file"]=>
string(34) "/var/www/Zend/Db/Statement/Pdo.php"
["line"]=>
int(228)
["function"]=>
string(7) "execute"
["class"]=>
string(12) "PDOStatement"
["type"]=>
string(2) "->"
}
[1]=>
array(5) {
["file"]=>
string(30) "/var/www/Zend/Db/Statement.php"
["line"]=>
int(303)
["function"]=>
string(8) "_execute"
["class"]=>
string(21) "Zend_Db_Statement_Pdo"
["type"]=>
string(2) "->"
}
[2]=>
array(5) {
["file"]=>
string(37) "/var/www/Zend/Db/Adapter/Abstract.php"
["line"]=>
int(480)
["function"]=>
string(7) "execute"
["class"]=>
string(17) "Zend_Db_Statement"
["type"]=>
string(2) "->"
}
[3]=>
array(5) {
["file"]=>
string(41) "/var/www/Zend/Db/Adapter/Pdo/Abstract.php"
["line"]=>
int(238)
["function"]=>
string(5) "query"
["class"]=>
string(24) "Zend_Db_Adapter_Abstract"
["type"]=>
string(2) "->"
}
[4]=>
array(5) {
["file"]=>
string(37) "/var/www/Zend/Db/Adapter/Abstract.php"
["line"]=>
int(759)
["function"]=>
string(5) "query"
["class"]=>
string(28) "Zend_Db_Adapter_Pdo_Abstract"
["type"]=>
string(2) "->"
}
[5]=>
array(5) {
["file"]=>
string(59) "/var/www/artis/application/models/DbTable/TotalProducts.php"
["line"]=>
int(20)
["function"]=>
string(8) "fetchRow"
["class"]=>
string(24) "Zend_Db_Adapter_Abstract"
["type"]=>
string(2) "->"
}
[6]=>
array(5) {
["file"]=>
string(77) "/var/www/artis/application/modules/default/controllers/ProductsController.php"
["line"]=>
int(9)
["function"]=>
string(14) "getAllProducts"
["class"]=>
string(39) "Application_Model_DbTable_TotalProducts"
["type"]=>
string(2) "->"
}
[7]=>
array(5) {
["file"]=>
string(35) "/var/www/Zend/Controller/Action.php"
["line"]=>
int(516)
["function"]=>
string(11) "indexAction"
["class"]=>
string(18) "ProductsController"
["type"]=>
string(2) "->"
}
[8]=>
array(5) {
["file"]=>
string(48) "/var/www/Zend/Controller/Dispatcher/Standard.php"
["line"]=>
int(308)
["function"]=>
string(8) "dispatch"
["class"]=>
string(22) "Zend_Controller_Action"
["type"]=>
string(2) "->"
}
[9]=>
array(5) {
["file"]=>
string(34) "/var/www/Zend/Controller/Front.php"
["line"]=>
int(954)
["function"]=>
string(8) "dispatch"
["class"]=>
string(35) "Zend_Controller_Dispatcher_Standard"
["type"]=>
string(2) "->"
}
[10]=>
array(5) {
["file"]=>
string(49) "/var/www/Zend/Application/Bootstrap/Bootstrap.php"
["line"]=>
int(105)
["function"]=>
string(8) "dispatch"
["class"]=>
string(21) "Zend_Controller_Front"
["type"]=>
string(2) "->"
}
[11]=>
array(5) {
["file"]=>
string(29) "/var/www/Zend/Application.php"
["line"]=>
int(400)
["function"]=>
string(3) "run"
["class"]=>
string(36) "Zend_Application_Bootstrap_Bootstrap"
["type"]=>
string(2) "->"
}
[12]=>
array(5) {
["file"]=>
string(31) "/var/www/artis/public/index.php"
["line"]=>
int(34)
["function"]=>
string(3) "run"
["class"]=>
string(16) "Zend_Application"
["type"]=>
string(2) "->"
}
}
["previous":"Exception":private]=>
NULL
["errorInfo"]=>
array(3) {
[0]=>
string(5) "42S22"
[1]=>
int(1054)
[2]=>
string(42) "Unknown column 'enabled' in 'where clause'"
}
}
["_previous":"Zend_Exception":private]=>
NULL
}