Got error 28 from storage engine
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 639 in file classes/db/Db.php
634. WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
635. }
636. elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))
637. {
638. if ($sql)
639. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
640. throw new PrestaShopDatabaseException($this->getMsgError());
641. }
642. }
643.
644. /**
328. if ($sql instanceof DbQuery)
329. $sql = $sql->build();
330.
331. $this->result = $this->_query($sql);
332. if (_PS_DEBUG_SQL_)
333. $this->displayError($sql);
334. return $this->result;
335. }
336.
337. /**
338. * Execute an INSERT query
Argument [0] 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
504. {
505. $this->last_cached = true;
506. return $result;
507. }
508.
509. $this->result = $this->query($sql);
510.
511. if (!$this->result)
512. $result = false;
513. else
514. {
Argument [0] 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
223. $results = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS('
224. 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
225. FROM `'._DB_PREFIX_.'hook` h
226. INNER JOIN `'._DB_PREFIX_.'hook_module` hm ON (h.id_hook = hm.id_hook AND hm.id_shop = '.(int)Context::getContext()->shop->id.')
227. INNER JOIN `'._DB_PREFIX_.'module` as m ON (m.id_module = hm.id_module)
228. ORDER BY hm.position');
229. $list = array();
230. foreach ($results as $result)
231. {
232. if (!isset($list[$result['id_hook']]))
233. $list[$result['id_hook']] = array();
Argument [0] 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
261. * @param int $id_module
262. * @return array Modules List
263. */
264. public static function getModulesFromHook($id_hook, $id_module = null)
265. {
266. $hm_list = Hook::getHookModuleList();
267. $module_list = (isset($hm_list[$id_hook])) ? $hm_list[$id_hook] : array();
268.
269. if ($id_module)
270. return (isset($module_list[$id_module])) ? array($module_list[$id_module]) : array();
271. return $module_list;
62. *
63. * @return TaxManager
64. */
65. public static function execHookTaxManagerFactory(Address $address, $type)
66. {
67. $modules_infos = Hook::getModulesFromHook(Hook::getIdByName('taxManager'));
68. $tax_manager = false;
69.
70. foreach ($modules_infos as $module_infos)
71. {
72. $module_instance = Module::getInstanceByName($module_infos['name']);
Argument [0] 91
42. public static function getManager(Address $address, $type)
43. {
44. $cache_id = TaxManagerFactory::getCacheKey($address).'-'.$type;
45. if (!isset(TaxManagerFactory::$cache_tax_manager[$cache_id]))
46. {
47. $tax_manager = TaxManagerFactory::execHookTaxManagerFactory($address, $type);
48. if (!($tax_manager instanceof TaxManagerInterface))
49. $tax_manager = new TaxRulesTaxManager($address, $type);
50.
51. TaxManagerFactory::$cache_tax_manager[$cache_id] = $tax_manager;
52. }
Argument [0] Address Object ( [id_customer] => [id_manufacturer] => [id_supplier] => [id_warehouse] => [id_country] => 8 [id_state] => 0 [country] => [alias] => [company] => [lastname] => [firstname] => [address1] => [address2] => [postcode] => 0 [city] => [other] => [phone] => [phone_mobile] => [vat_number] => [dni] => [date_add] => [date_upd] => [deleted] => 0 [_includeVars:protected] => Array ( [addressType] => table ) [_includeContainer:protected] => [webserviceParameters:protected] => Array ( [objectsNodeName] => addresses [fields] => Array ( [id_customer] => Array ( [xlink_resource] => customers ) [id_manufacturer] => Array ( [xlink_resource] => manufacturers ) [id_supplier] => Array ( [xlink_resource] => suppliers ) [id_warehouse] => Array ( [xlink_resource] => warehouse ) [id_country] => Array ( [xlink_resource] => countries ) [id_state] => Array ( [xlink_resource] => states ) ) ) [id] => [id_lang:protected] => [id_shop:protected] => [id_shop_list] => [get_shop_from_context:protected] => 1 [table:protected] => address [identifier:protected] => id_address [fieldsRequired:protected] => Array ( [0] => id_country [1] => alias [2] => lastname [3] => firstname [4] => address1 [5] => city ) [fieldsSize:protected] => Array ( [alias] => 32 [company] => 64 [lastname] => 32 [firstname] => 32 [address1] => 128 [address2] => 128 [postcode] => 12 [city] => 64 [other] => 300 [phone] => 32 [phone_mobile] => 32 [dni] => 16 ) [fieldsValidate:protected] => Array ( [id_customer] => isNullOrUnsignedId [id_manufacturer] => isNullOrUnsignedId [id_supplier] => isNullOrUnsignedId [id_warehouse] => isNullOrUnsignedId [id_country] => isUnsignedId [id_state] => isNullOrUnsignedId [alias] => isGenericName [company] => isGenericName [lastname] => isName [firstname] => isName [vat_number] => isGenericName [address1] => isAddress [address2] => isAddress [postcode] => isPostCode [city] => isCityName [other] => isMessage [phone] => isPhoneNumber [phone_mobile] => isPhoneNumber [dni] => isDniLite [deleted] => isBool [date_add] => isDateFormat [date_upd] => isDateFormat ) [fieldsRequiredLang:protected] => Array ( ) [fieldsSizeLang:protected] => Array ( ) [fieldsValidateLang:protected] => Array ( ) [tables:protected] => Array ( ) [image_dir:protected] => [image_format:protected] => jpg [def:protected] => Array ( [table] => address [primary] => id_address [fields] => Array ( [id_customer] => Array ( [type] => 1 [validate] => isNullOrUnsignedId [copy_post] => ) [id_manufacturer] => Array ( [type] => 1 [validate] => isNullOrUnsignedId [copy_post] => ) [id_supplier] => Array ( [type] => 1 [validate] => isNullOrUnsignedId [copy_post] => ) [id_warehouse] => Array ( [type] => 1 [validate] => isNullOrUnsignedId [copy_post] => ) [id_country] => Array ( [type] => 1 [validate] => isUnsignedId [required] => 1 ) [id_state] => Array ( [type] => 1 [validate] => isNullOrUnsignedId ) [alias] => Array ( [type] => 3 [validate] => isGenericName [required] => 1 [size] => 32 ) [company] => Array ( [type] => 3 [validate] => isGenericName [size] => 64 ) [lastname] => Array ( [type] => 3 [validate] => isName [required] => 1 [size] => 32 ) [firstname] => Array ( [type] => 3 [validate] => isName [required] => 1 [size] => 32 ) [vat_number] => Array ( [type] => 3 [validate] => isGenericName ) [address1] => Array ( [type] => 3 [validate] => isAddress [required] => 1 [size] => 128 ) [address2] => Array ( [type] => 3 [validate] => isAddress [size] => 128 ) [postcode] => Array ( [type] => 3 [validate] => isPostCode [size] => 12 ) [city] => Array ( [type] => 3 [validate] => isCityName [required] => 1 [size] => 64 ) [other] => Array ( [type] => 3 [validate] => isMessage [size] => 300 ) [phone] => Array ( [type] => 3 [validate] => isPhoneNumber [size] => 32 ) [phone_mobile] => Array ( [type] => 3 [validate] => isPhoneNumber [size] => 32 ) [dni] => Array ( [type] => 3 [validate] => isDniLite [size] => 16 ) [deleted] => Array ( [type] => 2 [validate] => isBool [copy_post] => ) [date_add] => Array ( [type] => 5 [validate] => isDateFormat [copy_post] => ) [date_upd] => Array ( [type] => 5 [validate] => isDateFormat [copy_post] => ) ) [classname] => Address ) [update_fields:protected] => [force_id] => ) Argument [1] 0
4577. public function getTaxesRate(Address $address = null)
4578. {
4579. if (!$address || !$address->id_country)
4580. $address = Address::initialize();
4581.
4582. $tax_manager = TaxManagerFactory::getManager($address, $this->id_tax_rules_group);
4583. $tax_calculator = $tax_manager->getTaxCalculator();
4584.
4585. return $tax_calculator->getTotalRate();
4586. }
4587.
Argument [0] Address Object ( [id_customer] => [id_manufacturer] => [id_supplier] => [id_warehouse] => [id_country] => 8 [id_state] => 0 [country] => [alias] => [company] => [lastname] => [firstname] => [address1] => [address2] => [postcode] => 0 [city] => [other] => [phone] => [phone_mobile] => [vat_number] => [dni] => [date_add] => [date_upd] => [deleted] => 0 [_includeVars:protected] => Array ( [addressType] => table ) [_includeContainer:protected] => [webserviceParameters:protected] => Array ( [objectsNodeName] => addresses [fields] => Array ( [id_customer] => Array ( [xlink_resource] => customers ) [id_manufacturer] => Array ( [xlink_resource] => manufacturers ) [id_supplier] => Array ( [xlink_resource] => suppliers ) [id_warehouse] => Array ( [xlink_resource] => warehouse ) [id_country] => Array ( [xlink_resource] => countries ) [id_state] => Array ( [xlink_resource] => states ) ) ) [id] => [id_lang:protected] => [id_shop:protected] => [id_shop_list] => [get_shop_from_context:protected] => 1 [table:protected] => address [identifier:protected] => id_address [fieldsRequired:protected] => Array ( [0] => id_country [1] => alias [2] => lastname [3] => firstname [4] => address1 [5] => city ) [fieldsSize:protected] => Array ( [alias] => 32 [company] => 64 [lastname] => 32 [firstname] => 32 [address1] => 128 [address2] => 128 [postcode] => 12 [city] => 64 [other] => 300 [phone] => 32 [phone_mobile] => 32 [dni] => 16 ) [fieldsValidate:protected] => Array ( [id_customer] => isNullOrUnsignedId [id_manufacturer] => isNullOrUnsignedId [id_supplier] => isNullOrUnsignedId [id_warehouse] => isNullOrUnsignedId [id_country] => isUnsignedId [id_state] => isNullOrUnsignedId [alias] => isGenericName [company] => isGenericName [lastname] => isName [firstname] => isName [vat_number] => isGenericName [address1] => isAddress [address2] => isAddress [postcode] => isPostCode [city] => isCityName [other] => isMessage [phone] => isPhoneNumber [phone_mobile] => isPhoneNumber [dni] => isDniLite [deleted] => isBool [date_add] => isDateFormat [date_upd] => isDateFormat ) [fieldsRequiredLang:protected] => Array ( ) [fieldsSizeLang:protected] => Array ( ) [fieldsValidateLang:protected] => Array ( ) [tables:protected] => Array ( ) [image_dir:protected] => [image_format:protected] => jpg [def:protected] => Array ( [table] => address [primary] => id_address [fields] => Array ( [id_customer] => Array ( [type] => 1 [validate] => isNullOrUnsignedId [copy_post] => ) [id_manufacturer] => Array ( [type] => 1 [validate] => isNullOrUnsignedId [copy_post] => ) [id_supplier] => Array ( [type] => 1 [validate] => isNullOrUnsignedId [copy_post] => ) [id_warehouse] => Array ( [type] => 1 [validate] => isNullOrUnsignedId [copy_post] => ) [id_country] => Array ( [type] => 1 [validate] => isUnsignedId [required] => 1 ) [id_state] => Array ( [type] => 1 [validate] => isNullOrUnsignedId ) [alias] => Array ( [type] => 3 [validate] => isGenericName [required] => 1 [size] => 32 ) [company] => Array ( [type] => 3 [validate] => isGenericName [size] => 64 ) [lastname] => Array ( [type] => 3 [validate] => isName [required] => 1 [size] => 32 ) [firstname] => Array ( [type] => 3 [validate] => isName [required] => 1 [size] => 32 ) [vat_number] => Array ( [type] => 3 [validate] => isGenericName ) [address1] => Array ( [type] => 3 [validate] => isAddress [required] => 1 [size] => 128 ) [address2] => Array ( [type] => 3 [validate] => isAddress [size] => 128 ) [postcode] => Array ( [type] => 3 [validate] => isPostCode [size] => 12 ) [city] => Array ( [type] => 3 [validate] => isCityName [required] => 1 [size] => 64 ) [other] => Array ( [type] => 3 [validate] => isMessage [size] => 300 ) [phone] => Array ( [type] => 3 [validate] => isPhoneNumber [size] => 32 ) [phone_mobile] => Array ( [type] => 3 [validate] => isPhoneNumber [size] => 32 ) [dni] => Array ( [type] => 3 [validate] => isDniLite [size] => 16 ) [deleted] => Array ( [type] => 2 [validate] => isBool [copy_post] => ) [date_add] => Array ( [type] => 5 [validate] => isDateFormat [copy_post] => ) [date_upd] => Array ( [type] => 5 [validate] => isDateFormat [copy_post] => ) ) [classname] => Address ) [update_fields:protected] => [force_id] => ) Argument [1] 0
471. $this->supplier_name = Supplier::getNameById((int)$this->id_supplier);
472. $address = null;
473. if (is_object($context->cart) && $context->cart->{Configuration::get('PS_TAX_ADDRESS_TYPE')} != null)
474. $address = $context->cart->{Configuration::get('PS_TAX_ADDRESS_TYPE')};
475.
476. $this->tax_rate = $this->getTaxesRate(new Address($address));
477.
478. $this->new = $this->isNew();
479.
480. // keep base price
481. $this->base_price = $this->price;
Argument [0] Address Object ( [id_customer] => [id_manufacturer] => [id_supplier] => [id_warehouse] => [id_country] => [id_state] => [country] => [alias] => [company] => [lastname] => [firstname] => [address1] => [address2] => [postcode] => [city] => [other] => [phone] => [phone_mobile] => [vat_number] => [dni] => [date_add] => [date_upd] => [deleted] => 0 [_includeVars:protected] => Array ( [addressType] => table ) [_includeContainer:protected] => [webserviceParameters:protected] => Array ( [objectsNodeName] => addresses [fields] => Array ( [id_customer] => Array ( [xlink_resource] => customers ) [id_manufacturer] => Array ( [xlink_resource] => manufacturers ) [id_supplier] => Array ( [xlink_resource] => suppliers ) [id_warehouse] => Array ( [xlink_resource] => warehouse ) [id_country] => Array ( [xlink_resource] => countries ) [id_state] => Array ( [xlink_resource] => states ) ) ) [id] => [id_lang:protected] => [id_shop:protected] => [id_shop_list] => [get_shop_from_context:protected] => 1 [table:protected] => address [identifier:protected] => id_address [fieldsRequired:protected] => Array ( [0] => id_country [1] => alias [2] => lastname [3] => firstname [4] => address1 [5] => city ) [fieldsSize:protected] => Array ( [alias] => 32 [company] => 64 [lastname] => 32 [firstname] => 32 [address1] => 128 [address2] => 128 [postcode] => 12 [city] => 64 [other] => 300 [phone] => 32 [phone_mobile] => 32 [dni] => 16 ) [fieldsValidate:protected] => Array ( [id_customer] => isNullOrUnsignedId [id_manufacturer] => isNullOrUnsignedId [id_supplier] => isNullOrUnsignedId [id_warehouse] => isNullOrUnsignedId [id_country] => isUnsignedId [id_state] => isNullOrUnsignedId [alias] => isGenericName [company] => isGenericName [lastname] => isName [firstname] => isName [vat_number] => isGenericName [address1] => isAddress [address2] => isAddress [postcode] => isPostCode [city] => isCityName [other] => isMessage [phone] => isPhoneNumber [phone_mobile] => isPhoneNumber [dni] => isDniLite [deleted] => isBool [date_add] => isDateFormat [date_upd] => isDateFormat ) [fieldsRequiredLang:protected] => Array ( ) [fieldsSizeLang:protected] => Array ( ) [fieldsValidateLang:protected] => Array ( ) [tables:protected] => Array ( ) [image_dir:protected] => [image_format:protected] => jpg [def:protected] => Array ( [table] => address [primary] => id_address [fields] => Array ( [id_customer] => Array ( [type] => 1 [validate] => isNullOrUnsignedId [copy_post] => ) [id_manufacturer] => Array ( [type] => 1 [validate] => isNullOrUnsignedId [copy_post] => ) [id_supplier] => Array ( [type] => 1 [validate] => isNullOrUnsignedId [copy_post] => ) [id_warehouse] => Array ( [type] => 1 [validate] => isNullOrUnsignedId [copy_post] => ) [id_country] => Array ( [type] => 1 [validate] => isUnsignedId [required] => 1 ) [id_state] => Array ( [type] => 1 [validate] => isNullOrUnsignedId ) [alias] => Array ( [type] => 3 [validate] => isGenericName [required] => 1 [size] => 32 ) [company] => Array ( [type] => 3 [validate] => isGenericName [size] => 64 ) [lastname] => Array ( [type] => 3 [validate] => isName [required] => 1 [size] => 32 ) [firstname] => Array ( [type] => 3 [validate] => isName [required] => 1 [size] => 32 ) [vat_number] => Array ( [type] => 3 [validate] => isGenericName ) [address1] => Array ( [type] => 3 [validate] => isAddress [required] => 1 [size] => 128 ) [address2] => Array ( [type] => 3 [validate] => isAddress [size] => 128 ) [postcode] => Array ( [type] => 3 [validate] => isPostCode [size] => 12 ) [city] => Array ( [type] => 3 [validate] => isCityName [required] => 1 [size] => 64 ) [other] => Array ( [type] => 3 [validate] => isMessage [size] => 300 ) [phone] => Array ( [type] => 3 [validate] => isPhoneNumber [size] => 32 ) [phone_mobile] => Array ( [type] => 3 [validate] => isPhoneNumber [size] => 32 ) [dni] => Array ( [type] => 3 [validate] => isDniLite [size] => 16 ) [deleted] => Array ( [type] => 2 [validate] => isBool [copy_post] => ) [date_add] => Array ( [type] => 5 [validate] => isDateFormat [copy_post] => ) [date_upd] => Array ( [type] => 5 [validate] => isDateFormat [copy_post] => ) ) [classname] => Address ) [update_fields:protected] => [force_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');
Argument [0] 12483 Argument [1] 1 Argument [2] 1 Argument [3] 1
158. /**
159. * Start controller process (this method shouldn't be overriden !)
160. */
161. public function run()
162. {
163. $this->init();
164. if ($this->checkAccess())
165. {
166. // setMedia MUST be called before postProcess
167. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))
168. $this->setMedia();
369. // Execute hook dispatcher
370. if (isset($params_hook_action_dispatcher))
371. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
372.
373. // Running controller
374. $controller->run();
375. }
376. catch (PrestaShopException $e)
377. {
378. $e->displayMessage();
379. }
58. exit;
59. }
60. }
61.
62. require(dirname(__FILE__).'/config/config.inc.php');
63. Dispatcher::getInstance()->dispatch();
64.
65.