Can't create/write to file '/tmp/#sql-temptable-17341-61ad90-1cb09.MAI' (Errcode: 28 "No space left on device")
SELECT h.id_hook, h.name as h_name, title, description, h.position, live_edit, hm.position as hm_position, m.id_module, m.name, active
FROM `ps_hook` h
INNER JOIN `ps_hook_module` hm ON (h.id_hook = hm.id_hook AND hm.id_shop = 1)
INNER JOIN `ps_module` as m ON (m.id_module = hm.id_module)
ORDER BY hm.position
at line 605 in file classes/db/Db.php
599. WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
600. }
601. else if (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))
602. {
603. if ($sql)
604. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
605. throw new PrestaShopDatabaseException($this->getMsgError());
606. }
607. }
608.
609. /**
301. if ($sql instanceof DbQuery)
302. $sql = $sql->build();
303.
304. $this->result = $this->_query($sql);
305. if (_PS_DEBUG_SQL_)
306. $this->displayError($sql);
307. return $this->result;
308. }
309.
310. /**
311. * Execute an INSERT query
476. {
477. $this->last_cached = true;
478. return $result;
479. }
480.
481. $this->result = $this->query($sql);
482. if (!$this->result)
483. return false;
484.
485. $this->last_cached = false;
486. if (!$array)
180. {
181. $results = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS('
182. SELECT h.id_hook, h.name as h_name, title, description, h.position, live_edit, hm.position as hm_position, m.id_module, m.name, active
183. FROM `'._DB_PREFIX_.'hook` h
184. INNER JOIN `'._DB_PREFIX_.'hook_module` hm ON (h.id_hook = hm.id_hook AND hm.id_shop = '.(int)Context::getContext()->shop->id.')
185. INNER JOIN `'._DB_PREFIX_.'module` as m ON (m.id_module = hm.id_module)
186. ORDER BY hm.position');
187. $list = array();
188. foreach ($results as $result)
189. {
190. if (!isset($list[$result['id_hook']]))
219. * @param int $id_module
220. * @return array Modules List
221. */
222. public static function getModulesFromHook($id_hook, $id_module = null)
223. {
224. $hm_list = Hook::getHookModuleList();
225. $module_list = (isset($hm_list[$id_hook])) ? $hm_list[$id_hook] : array();
226.
227. if ($id_module)
228. return (isset($module_list[$id_module])) ? array($module_list[$id_module]) : array();
229. return $module_list;
61. *
62. * @return TaxManager
63. */
64. public static function execHookTaxManagerFactory(Address $address, $type)
65. {
66. $modules_infos = Hook::getModulesFromHook(Hook::getIdByName('taxManager'));
67. $tax_manager = false;
68.
69. foreach ($modules_infos as $module_infos)
70. {
71. $module_instance = Module::getInstanceByName($module_infos['name']);
41. public static function getManager(Address $address, $type)
42. {
43. $cache_id = TaxManagerFactory::getCacheKey($address).'-'.$type;
44. if (!isset(TaxManagerFactory::$cache_tax_manager[$cache_id]))
45. {
46. $tax_manager = TaxManagerFactory::execHookTaxManagerFactory($address, $type);
47. if (!($tax_manager instanceof TaxManagerInterface))
48. $tax_manager = new TaxRulesTaxManager($address, $type);
49.
50. TaxManagerFactory::$cache_tax_manager[$cache_id] = $tax_manager;
51. }
4288. public function getTaxesRate(Address $address = null)
4289. {
4290. if (!$address || !$address->id_country)
4291. $address = Address::initialize();
4292.
4293. $tax_manager = TaxManagerFactory::getManager($address, $this->id_tax_rules_group);
4294. $tax_calculator = $tax_manager->getTaxCalculator();
4295.
4296. return $tax_calculator->getTotalRate();
4297. }
4298.
441. $this->supplier_name = Supplier::getNameById((int)$this->id_supplier);
442. $address = null;
443. if (is_object($context->cart) && $context->cart->{Configuration::get('PS_TAX_ADDRESS_TYPE')} != null)
444. $address = $context->cart->{Configuration::get('PS_TAX_ADDRESS_TYPE')};
445.
446. $this->tax_rate = $this->getTaxesRate(new Address($address));
447.
448. $this->new = $this->isNew();
449. $this->price = Product::getPriceStatic((int)$this->id, false, null, 6, null, false, true, 1, false, null, null, null, $this->specificPrice);
450. $this->unit_price = ($this->unit_price_ratio != 0 ? $this->price / $this->unit_price_ratio : 0);
451. if ($this->id)
76. public function init()
77. {
78. parent::init();
79.
80. if ($id_product = (int)Tools::getValue('id_product'))
81. $this->product = new Product($id_product, true, $this->context->language->id, $this->context->shop->id);
82.
83. if (!Validate::isLoadedObject($this->product))
84. {
85. header('HTTP/1.1 404 Not Found');
86. header('Status: 404 Not Found');
144. /**
145. * Start controller process (this method shouldn't be overriden !)
146. */
147. public function run()
148. {
149. $this->init();
150. if ($this->checkAccess())
151. {
152. // setMedia MUST be called before postProcess
153. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))
154. $this->setMedia();
342. // Execute hook dispatcher
343. if (isset($params_hook_action_dispatcher))
344. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
345.
346. // Running controller
347. $controller->run();
348. }
349. catch (PrestaShopException $e)
350. {
351. $e->displayMessage();
352. }
32. */
33.
34.
35.
36. require(dirname(__FILE__).'/config/config.inc.php');
37. Dispatcher::getInstance()->dispatch();
38.