Database_Exception [ 2006 ]: MySQL server has gone away [ SELECT `category`.`id` AS `id`, `category`.`name` AS `name`, `category`.`url` AS `url`, `category`.`count` AS `count` FROM `categories` AS `category` WHERE `category`.`id` = '2' LIMIT 1 ]

MODPATH/database/classes/Database/MySQLi.php [ 174 ]

169 			{
170 				// This benchmark is worthless
171 				Profiler::delete($benchmark);
172 			}
173 
174 			throw new Database_Exception(':error [ :query ]',
175 				array(':error' => mysqli_error($this->_connection), ':query' => $sql),
176 				mysqli_errno($this->_connection));
177 		}
178 
179 		if (isset($benchmark))
  1. MODPATH/database/classes/Kohana/Database/Query.php [ 251 ] » Database_MySQLi->query(arguments)

  2. MODPATH/orm/classes/Kohana/ORM.php [ 1072 ] » Kohana_Database_Query->execute(arguments)

  3. MODPATH/orm/classes/Kohana/ORM.php [ 979 ] » Kohana_ORM->_load_result(arguments)

  4. MODPATH/orm/classes/Kohana/ORM.php [ 640 ] » Kohana_ORM->find()

  5. MODPATH/orm/classes/Kohana/ORM.php [ 603 ] » Kohana_ORM->get(arguments)

  6. APPPATH/classes/Model/Task.php [ 44 ] » Kohana_ORM->__get(arguments)

  7. APPPATH/views/index/v_task.php [ 202 ] » Model_Task->get_url()

  8. SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)

  9. SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture(arguments)

  10. SYSPATH/classes/Kohana/View.php [ 228 ] » Kohana_View->render()

  11. APPPATH/views/v_base.php [ 69 ] » Kohana_View->__toString()

  12. SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)

  13. SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture(arguments)

  14. SYSPATH/classes/Kohana/Controller/Template.php [ 44 ] » Kohana_View->render()

  15. SYSPATH/classes/Kohana/Controller.php [ 87 ] » Kohana_Controller_Template->after()

  16. {PHP internal call} » Kohana_Controller->execute()

  17. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)

  18. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  19. SYSPATH/classes/Kohana/Request.php [ 986 ] » Kohana_Request_Client->execute(arguments)

  20. DOCROOT/index.php [ 137 ] » Kohana_Request->execute()

Environment

Задать вопрос