Error Debugging - Use for Development Purposes Only

Omeka_Db_Exception:

An error occurred within the following SQL statement: SELECT i.*, added.time as added, modded.time as modified FROM items i LEFT JOIN entities_relations modded ON modded.relation_id = i.id LEFT JOIN entity_relationships mod_r ON mod_r.id = modded.relationship_id LEFT JOIN entities_relations added ON added.relation_id = i.id LEFT JOIN entity_relationships add_r ON add_r.id = added.relationship_id WHERE ( (added.type = "Item" AND add_r.name = "added" OR added.time IS NULL) OR (modded.type = "Item" AND mod_r.name = "modified" OR modded.time IS NULL) ) AND i.public = 1 AND i.id = 695 LIMIT 1 Stack Trace: #0 /websites/chnm/1989/application/libraries/Zend/Db/Statement.php(109): Zend_Db_Statement_Mysqli->_prepare('SELECT??i.*,??a...') #1 /websites/chnm/1989/application/libraries/Zend/Db/Adapter/Mysqli.php(284): Zend_Db_Statement->__construct(Object(Zend_Db_Adapter_Mysqli), 'SELECT??i.*,??a...') #2 /websites/chnm/1989/application/libraries/Zend/Db/Adapter/Abstract.php(261): Zend_Db_Adapter_Mysqli->prepare('SELECT??i.*,??a...') #3 /websites/chnm/1989/application/libraries/Omeka/Db.php(260): Zend_Db_Adapter_Abstract->query('SELECT??i.*,??a...', Array) #4 /websites/chnm/1989/application/libraries/Omeka/Table.php(180): Omeka_Db->query(Object(Omeka_Select), Array) #5 /websites/chnm/1989/application/models/ItemTable.php(484): Omeka_Table->fetchObjects(Object(Omeka_Select), Array, true) #6 /websites/chnm/1989/application/libraries/Omeka/Controller/Action.php(588): ItemTable->find('695') #7 /websites/chnm/1989/application/controllers/ItemsController.php(218): Omeka_Controller_Action->findById() #8 /websites/chnm/1989/application/libraries/Zend/Controller/Action.php(497): ItemsController->showAction() #9 /websites/chnm/1989/application/libraries/Zend/Controller/Dispatcher/Standard.php(237): Zend_Controller_Action->dispatch('showAction') #10 /websites/chnm/1989/application/libraries/Zend/Controller/Front.php(911): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #11 /websites/chnm/1989/application/libraries/Omeka/Core.php(317): Zend_Controller_Front->dispatch() #12 /websites/chnm/1989/index.php(15): Omeka_Core->dispatch() #13 {main} Dump of the exception: object(Zend_Db_Statement_Mysqli_Exception)#136 (6) { ["message:protected"]=> string(48) "Mysqli prepare error: MySQL server has gone away" ["string:private"]=> string(0) "" ["code:protected"]=> int(0) ["file:protected"]=> string(70) "/websites/chnm/1989/application/libraries/Zend/Db/Statement/Mysqli.php" ["line:protected"]=> int(85) ["trace:private"]=> array(13) { [0]=> array(6) { ["file"]=> string(63) "/websites/chnm/1989/application/libraries/Zend/Db/Statement.php" ["line"]=> int(109) ["function"]=> string(8) "_prepare" ["class"]=> string(24) "Zend_Db_Statement_Mysqli" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(555) "SELECT i.*, added.time as added, modded.time as modified FROM items i LEFT JOIN entities_relations modded ON modded.relation_id = i.id LEFT JOIN entity_relationships mod_r ON mod_r.id = modded.relationship_id LEFT JOIN entities_relations added ON added.relation_id = i.id LEFT JOIN entity_relationships add_r ON add_r.id = added.relationship_id WHERE ( (added.type = "Item" AND add_r.name = "added" OR added.time IS NULL) OR (modded.type = "Item" AND mod_r.name = "modified" OR modded.time IS NULL) ) AND i.public = 1 AND i.id = 695 LIMIT 1" } } [1]=> array(6) { ["file"]=> string(68) "/websites/chnm/1989/application/libraries/Zend/Db/Adapter/Mysqli.php" ["line"]=> int(284) ["function"]=> string(11) "__construct" ["class"]=> string(17) "Zend_Db_Statement" ["type"]=> string(2) "->" ["args"]=> array(2) { [0]=> object(Zend_Db_Adapter_Mysqli)#69 (6) { ["_config:protected"]=> array(6) { ["host"]=> string(17) "mysql.localdomain" ["username"]=> string(10) "1989_omeka" ["password"]=> string(16) "M4vpXb.BNqydH8w." ["dbname"]=> string(10) "1989_omeka" ["options"]=> array(2) { ["caseFolding"]=> int(0) ["autoQuoteIdentifiers"]=> bool(true) } ["driver_options"]=> array(0) { } } ["_fetchMode:protected"]=> int(2) ["_profiler:protected"]=> object(Zend_Db_Profiler)#70 (4) { ["_queryProfiles:protected"]=> array(0) { } ["_enabled:protected"]=> bool(false) ["_filterElapsedSecs:protected"]=> NULL ["_filterTypes:protected"]=> NULL } ["_connection:protected"]=> object(mysqli)#72 (0) { } ["_caseFolding:protected"]=> int(0) ["_autoQuoteIdentifiers:protected"]=> bool(true) } [1]=> string(555) "SELECT i.*, added.time as added, modded.time as modified FROM items i LEFT JOIN entities_relations modded ON modded.relation_id = i.id LEFT JOIN entity_relationships mod_r ON mod_r.id = modded.relationship_id LEFT JOIN entities_relations added ON added.relation_id = i.id LEFT JOIN entity_relationships add_r ON add_r.id = added.relationship_id WHERE ( (added.type = "Item" AND add_r.name = "added" OR added.time IS NULL) OR (modded.type = "Item" AND mod_r.name = "modified" OR modded.time IS NULL) ) AND i.public = 1 AND i.id = 695 LIMIT 1" } } [2]=> array(6) { ["file"]=> string(70) "/websites/chnm/1989/application/libraries/Zend/Db/Adapter/Abstract.php" ["line"]=> int(261) ["function"]=> string(7) "prepare" ["class"]=> string(22) "Zend_Db_Adapter_Mysqli" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(555) "SELECT i.*, added.time as added, modded.time as modified FROM items i LEFT JOIN entities_relations modded ON modded.relation_id = i.id LEFT JOIN entity_relationships mod_r ON mod_r.id = modded.relationship_id LEFT JOIN entities_relations added ON added.relation_id = i.id LEFT JOIN entity_relationships add_r ON add_r.id = added.relationship_id WHERE ( (added.type = "Item" AND add_r.name = "added" OR added.time IS NULL) OR (modded.type = "Item" AND mod_r.name = "modified" OR modded.time IS NULL) ) AND i.public = 1 AND i.id = 695 LIMIT 1" } } [3]=> array(6) { ["file"]=> string(54) "/websites/chnm/1989/application/libraries/Omeka/Db.php" ["line"]=> int(260) ["function"]=> string(5) "query" ["class"]=> string(24) "Zend_Db_Adapter_Abstract" ["type"]=> string(2) "->" ["args"]=> array(2) { [0]=> string(555) "SELECT i.*, added.time as added, modded.time as modified FROM items i LEFT JOIN entities_relations modded ON modded.relation_id = i.id LEFT JOIN entity_relationships mod_r ON mod_r.id = modded.relationship_id LEFT JOIN entities_relations added ON added.relation_id = i.id LEFT JOIN entity_relationships add_r ON add_r.id = added.relationship_id WHERE ( (added.type = "Item" AND add_r.name = "added" OR added.time IS NULL) OR (modded.type = "Item" AND mod_r.name = "modified" OR modded.time IS NULL) ) AND i.public = 1 AND i.id = 695 LIMIT 1" [1]=> array(0) { } } } [4]=> array(6) { ["file"]=> string(57) "/websites/chnm/1989/application/libraries/Omeka/Table.php" ["line"]=> int(180) ["function"]=> string(5) "query" ["class"]=> string(8) "Omeka_Db" ["type"]=> string(2) "->" ["args"]=> array(2) { [0]=> object(Omeka_Select)#134 (3) { ["_parts:protected"]=> array(11) { ["distinct"]=> bool(false) ["forUpdate"]=> bool(false) ["cols"]=> array(3) { [0]=> string(3) "i.*" [1]=> string(19) "added.time as added" [2]=> string(23) "modded.time as modified" } ["from"]=> array(1) { ["items i"]=> NULL } ["join"]=> array(4) { ["entities_relations modded"]=> array(3) { ["type"]=> string(4) "left" ["name"]=> string(25) "entities_relations modded" ["cond"]=> string(25) "modded.relation_id = i.id" } ["entity_relationships mod_r"]=> array(3) { ["type"]=> string(4) "left" ["name"]=> string(26) "entity_relationships mod_r" ["cond"]=> string(33) "mod_r.id = modded.relationship_id" } ["entities_relations added"]=> array(3) { ["type"]=> string(4) "left" ["name"]=> string(24) "entities_relations added" ["cond"]=> string(24) "added.relation_id = i.id" } ["entity_relationships add_r"]=> array(3) { ["type"]=> string(4) "left" ["name"]=> string(26) "entity_relationships add_r" ["cond"]=> string(32) "add_r.id = added.relationship_id" } } ["where"]=> array(3) { [0]=> string(158) "( (added.type = "Item" AND add_r.name = "added" OR added.time IS NULL) OR (modded.type = "Item" AND mod_r.name = "modified" OR modded.time IS NULL) )" [1]=> string(16) "AND i.public = 1" [2]=> string(14) "AND i.id = 695" } ["group"]=> array(0) { } ["having"]=> array(0) { } ["order"]=> array(0) { } ["limitCount"]=> int(1) ["limitOffset"]=> int(0) } ["_tableCols:protected"]=> array(0) { } ["_adapter"]=> object(Omeka_Db)#71 (3) { ["_conn:protected"]=> object(Zend_Db_Adapter_Mysqli)#69 (6) { ["_config:protected"]=> array(6) { ["host"]=> string(17) "mysql.localdomain" ["username"]=> string(10) "1989_omeka" ["password"]=> string(16) "M4vpXb.BNqydH8w." ["dbname"]=> string(10) "1989_omeka" ["options"]=> array(2) { ["caseFolding"]=> int(0) ["autoQuoteIdentifiers"]=> bool(true) } ["driver_options"]=> array(0) { } } ["_fetchMode:protected"]=> int(2) ["_profiler:protected"]=> object(Zend_Db_Profiler)#70 (4) { ["_queryProfiles:protected"]=> array(0) { } ["_enabled:protected"]=> bool(false) ["_filterElapsedSecs:protected"]=> NULL ["_filterTypes:protected"]=> NULL } ["_connection:protected"]=> object(mysqli)#72 (0) { } ["_caseFolding:protected"]=> int(0) ["_autoQuoteIdentifiers:protected"]=> bool(true) } ["_table_names:protected"]=> array(26) { ["Collection"]=> string(11) "collections" ["Entity"]=> string(8) "entities" ["EntitiesRelations"]=> string(18) "entities_relations" ["EntityRelationships"]=> string(20) "entity_relationships" ["Exhibit"]=> string(8) "exhibits" ["File"]=> string(5) "files" ["FilesImages"]=> string(12) "files_images" ["FilesVideos"]=> string(12) "files_videos" ["FileMetaLookup"]=> string(16) "file_meta_lookup" ["Item"]=> string(5) "items" ["ExhibitPageEntry"]=> string(19) "items_section_pages" ["Metafield"]=> string(10) "metafields" ["Metatext"]=> string(8) "metatext" ["Option"]=> string(7) "options" ["Person"]=> string(8) "entities" ["Institution"]=> string(8) "entities" ["Anonymous"]=> string(8) "entities" ["Plugin"]=> string(7) "plugins" ["ExhibitSection"]=> string(8) "sections" ["ExhibitPage"]=> string(13) "section_pages" ["Taggings"]=> string(8) "taggings" ["Tag"]=> string(4) "tags" ["Type"]=> string(5) "types" ["TypesMetafields"]=> string(16) "types_metafields" ["User"]=> string(5) "users" ["UsersActivations"]=> string(17) "users_activations" } ["prefix"]=> string(0) "" } } [1]=> &array(0) { } } } [5]=> array(6) { ["file"]=> string(52) "/websites/chnm/1989/application/models/ItemTable.php" ["line"]=> int(484) ["function"]=> string(12) "fetchObjects" ["class"]=> string(11) "Omeka_Table" ["type"]=> string(2) "->" ["args"]=> array(3) { [0]=> object(Omeka_Select)#134 (3) { ["_parts:protected"]=> array(11) { ["distinct"]=> bool(false) ["forUpdate"]=> bool(false) ["cols"]=> array(3) { [0]=> string(3) "i.*" [1]=> string(19) "added.time as added" [2]=> string(23) "modded.time as modified" } ["from"]=> array(1) { ["items i"]=> NULL } ["join"]=> array(4) { ["entities_relations modded"]=> array(3) { ["type"]=> string(4) "left" ["name"]=> string(25) "entities_relations modded" ["cond"]=> string(25) "modded.relation_id = i.id" } ["entity_relationships mod_r"]=> array(3) { ["type"]=> string(4) "left" ["name"]=> string(26) "entity_relationships mod_r" ["cond"]=> string(33) "mod_r.id = modded.relationship_id" } ["entities_relations added"]=> array(3) { ["type"]=> string(4) "left" ["name"]=> string(24) "entities_relations added" ["cond"]=> string(24) "added.relation_id = i.id" } ["entity_relationships add_r"]=> array(3) { ["type"]=> string(4) "left" ["name"]=> string(26) "entity_relationships add_r" ["cond"]=> string(32) "add_r.id = added.relationship_id" } } ["where"]=> array(3) { [0]=> string(158) "( (added.type = "Item" AND add_r.name = "added" OR added.time IS NULL) OR (modded.type = "Item" AND mod_r.name = "modified" OR modded.time IS NULL) )" [1]=> string(16) "AND i.public = 1" [2]=> string(14) "AND i.id = 695" } ["group"]=> array(0) { } ["having"]=> array(0) { } ["order"]=> array(0) { } ["limitCount"]=> int(1) ["limitOffset"]=> int(0) } ["_tableCols:protected"]=> array(0) { } ["_adapter"]=> object(Omeka_Db)#71 (3) { ["_conn:protected"]=> object(Zend_Db_Adapter_Mysqli)#69 (6) { ["_config:protected"]=> array(6) { ["host"]=> string(17) "mysql.localdomain" ["username"]=> string(10) "1989_omeka" ["password"]=> string(16) "M4vpXb.BNqydH8w." ["dbname"]=> string(10) "1989_omeka" ["options"]=> array(2) { ["caseFolding"]=> int(0) ["autoQuoteIdentifiers"]=> bool(true) } ["driver_options"]=> array(0) { } } ["_fetchMode:protected"]=> int(2) ["_profiler:protected"]=> object(Zend_Db_Profiler)#70 (4) { ["_queryProfiles:protected"]=> array(0) { } ["_enabled:protected"]=> bool(false) ["_filterElapsedSecs:protected"]=> NULL ["_filterTypes:protected"]=> NULL } ["_connection:protected"]=> object(mysqli)#72 (0) { } ["_caseFolding:protected"]=> int(0) ["_autoQuoteIdentifiers:protected"]=> bool(true) } ["_table_names:protected"]=> array(26) { ["Collection"]=> string(11) "collections" ["Entity"]=> string(8) "entities" ["EntitiesRelations"]=> string(18) "entities_relations" ["EntityRelationships"]=> string(20) "entity_relationships" ["Exhibit"]=> string(8) "exhibits" ["File"]=> string(5) "files" ["FilesImages"]=> string(12) "files_images" ["FilesVideos"]=> string(12) "files_videos" ["FileMetaLookup"]=> string(16) "file_meta_lookup" ["Item"]=> string(5) "items" ["ExhibitPageEntry"]=> string(19) "items_section_pages" ["Metafield"]=> string(10) "metafields" ["Metatext"]=> string(8) "metatext" ["Option"]=> string(7) "options" ["Person"]=> string(8) "entities" ["Institution"]=> string(8) "entities" ["Anonymous"]=> string(8) "entities" ["Plugin"]=> string(7) "plugins" ["ExhibitSection"]=> string(8) "sections" ["ExhibitPage"]=> string(13) "section_pages" ["Taggings"]=> string(8) "taggings" ["Tag"]=> string(4) "tags" ["Type"]=> string(5) "types" ["TypesMetafields"]=> string(16) "types_metafields" ["User"]=> string(5) "users" ["UsersActivations"]=> string(17) "users_activations" } ["prefix"]=> string(0) "" } } [1]=> &array(0) { } [2]=> &bool(true) } } [6]=> array(6) { ["file"]=> string(69) "/websites/chnm/1989/application/libraries/Omeka/Controller/Action.php" ["line"]=> int(588) ["function"]=> string(4) "find" ["class"]=> string(9) "ItemTable" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> &string(3) "695" } } [7]=> array(6) { ["file"]=> string(63) "/websites/chnm/1989/application/controllers/ItemsController.php" ["line"]=> int(218) ["function"]=> string(8) "findById" ["class"]=> string(23) "Omeka_Controller_Action" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [8]=> array(6) { ["file"]=> string(68) "/websites/chnm/1989/application/libraries/Zend/Controller/Action.php" ["line"]=> int(497) ["function"]=> string(10) "showAction" ["class"]=> string(15) "ItemsController" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [9]=> array(6) { ["file"]=> string(81) "/websites/chnm/1989/application/libraries/Zend/Controller/Dispatcher/Standard.php" ["line"]=> int(237) ["function"]=> string(8) "dispatch" ["class"]=> string(22) "Zend_Controller_Action" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> &string(10) "showAction" } } [10]=> array(6) { ["file"]=> string(67) "/websites/chnm/1989/application/libraries/Zend/Controller/Front.php" ["line"]=> int(911) ["function"]=> string(8) "dispatch" ["class"]=> string(35) "Zend_Controller_Dispatcher_Standard" ["type"]=> string(2) "->" ["args"]=> array(2) { [0]=> object(Zend_Controller_Request_Http)#126 (13) { ["_requestUri:protected"]=> string(20) "/1989/items/show/695" ["_baseUrl:protected"]=> string(5) "/1989" ["_basePath:protected"]=> NULL ["_pathInfo:protected"]=> string(15) "/items/show/695" ["_params:protected"]=> array(3) { ["controller"]=> string(5) "items" ["action"]=> string(4) "show" ["id"]=> string(3) "695" } ["_aliases:protected"]=> array(0) { } ["_dispatched:protected"]=> bool(true) ["_module:protected"]=> NULL ["_moduleKey:protected"]=> string(6) "module" ["_controller:protected"]=> string(5) "items" ["_controllerKey:protected"]=> string(10) "controller" ["_action:protected"]=> string(4) "show" ["_actionKey:protected"]=> string(6) "action" } [1]=> object(Zend_Controller_Response_Http)#127 (8) { ["_body:protected"]=> array(0) { } ["_exceptions:protected"]=> array(0) { } ["_headers:protected"]=> array(0) { } ["_headersRaw:protected"]=> array(0) { } ["_httpResponseCode:protected"]=> int(200) ["_isRedirect:protected"]=> bool(false) ["_renderExceptions:protected"]=> bool(false) ["headersSentThrowsException"]=> bool(true) } } } [11]=> array(6) { ["file"]=> string(56) "/websites/chnm/1989/application/libraries/Omeka/Core.php" ["line"]=> int(317) ["function"]=> string(8) "dispatch" ["class"]=> string(21) "Zend_Controller_Front" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [12]=> array(6) { ["file"]=> string(29) "/websites/chnm/1989/index.php" ["line"]=> int(15) ["function"]=> string(8) "dispatch" ["class"]=> string(10) "Omeka_Core" ["type"]=> string(2) "->" ["args"]=> array(0) { } } } }

Backtrace:
string(1062) "#0 /websites/chnm/1989/application/libraries/Omeka/Table.php(180): Omeka_Db->query(Object(Omeka_Select), Array)
#1 /websites/chnm/1989/application/models/ItemTable.php(484): Omeka_Table->fetchObjects(Object(Omeka_Select), Array, true)
#2 /websites/chnm/1989/application/libraries/Omeka/Controller/Action.php(588): ItemTable->find('695')
#3 /websites/chnm/1989/application/controllers/ItemsController.php(218): Omeka_Controller_Action->findById()
#4 /websites/chnm/1989/application/libraries/Zend/Controller/Action.php(497): ItemsController->showAction()
#5 /websites/chnm/1989/application/libraries/Zend/Controller/Dispatcher/Standard.php(237): Zend_Controller_Action->dispatch('showAction')
#6 /websites/chnm/1989/application/libraries/Zend/Controller/Front.php(911): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#7 /websites/chnm/1989/application/libraries/Omeka/Core.php(317): Zend_Controller_Front->dispatch()
#8 /websites/chnm/1989/index.php(15): Omeka_Core->dispatch()
#9 {main}"