Disk full (/tmp/#sql_4e08_0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
SELECT c.*, cl.id_lang, cl.name, cl.description, cl.link_rewrite, cl.meta_title, cl.meta_keywords, cl.meta_description
FROM `ps_category` c
INNER JOIN ps_category_shop category_shop
ON (category_shop.id_category = c.id_category AND category_shop.id_shop = 1)
LEFT JOIN `ps_category_lang` cl ON (c.`id_category` = cl.`id_category` AND `id_lang` = 1 AND cl.id_shop = 1 )
LEFT JOIN `ps_category_group` cg ON (cg.`id_category` = c.`id_category`)
WHERE `id_parent` = 32
AND `active` = 1
AND cg.`id_group` IN (2)
GROUP BY c.`id_category`
ORDER BY `level_depth` ASC, category_shop.`position` ASC
at line 791 in file classes/db/Db.php
786. if ($webservice_call && $errno) {
787. $dbg = debug_backtrace();
788. WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
789. } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) {
790. if ($sql) {
791. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
792. }
793.
794. throw new PrestaShopDatabaseException($this->getMsgError());
795. }
796. }
420. $this->result = $this->_query($sql);
421. }
422. }
423.
424. if (_PS_DEBUG_SQL_) {
425. $this->displayError($sql);
426. }
427.
428. return $this->result;
429. }
430.
Argument [0] SELECT c.*, cl.id_lang, cl.name, cl.description, cl.link_rewrite, cl.meta_title, cl.meta_keywords, cl.meta_description FROM `ps_category` c INNER JOIN ps_category_shop category_shop ON (category_shop.id_category = c.id_category AND category_shop.id_shop = 1) LEFT JOIN `ps_category_lang` cl ON (c.`id_category` = cl.`id_category` AND `id_lang` = 1 AND cl.id_shop = 1 ) LEFT JOIN `ps_category_group` cg ON (cg.`id_category` = c.`id_category`) WHERE `id_parent` = 32 AND `active` = 1 AND cg.`id_group` IN (2) GROUP BY c.`id_category` ORDER BY `level_depth` ASC, category_shop.`position` ASC
638. throw new PrestaShopDatabaseException('Db->executeS() must be used only with select, show, explain or describe queries');
639. }
640. return $this->execute($sql, $use_cache);
641. }
642.
643. $this->result = $this->query($sql);
644.
645. if (!$this->result) {
646. $result = false;
647. } else {
648. if (!$array) {
Argument [0] SELECT c.*, cl.id_lang, cl.name, cl.description, cl.link_rewrite, cl.meta_title, cl.meta_keywords, cl.meta_description FROM `ps_category` c INNER JOIN ps_category_shop category_shop ON (category_shop.id_category = c.id_category AND category_shop.id_shop = 1) LEFT JOIN `ps_category_lang` cl ON (c.`id_category` = cl.`id_category` AND `id_lang` = 1 AND cl.id_shop = 1 ) LEFT JOIN `ps_category_group` cg ON (cg.`id_category` = c.`id_category`) WHERE `id_parent` = 32 AND `active` = 1 AND cg.`id_group` IN (2) GROUP BY c.`id_category` ORDER BY `level_depth` ASC, category_shop.`position` ASC
653. '.$sql_groups_join.'
654. WHERE `id_parent` = '.(int)$this->id.'
655. '.($active ? 'AND `active` = 1' : '').'
656. '.$sql_groups_where.'
657. GROUP BY c.`id_category`
658. ORDER BY `level_depth` ASC, category_shop.`position` ASC');
659.
660. $formated_medium = ImageType::getFormatedName('medium');
661.
662. foreach ($result as &$row) {
663. $row['id_image'] = (Tools::file_exists_cache(_PS_CAT_IMG_DIR_.(int)$row['id_category'].'.jpg') || Tools::file_exists_cache(_PS_CAT_IMG_DIR_.(int)$row['id_category'].'_thumb.jpg')) ? (int)$row['id_category'] : Language::getIsoById($id_lang).'-default';
Argument [0] SELECT c.*, cl.id_lang, cl.name, cl.description, cl.link_rewrite, cl.meta_title, cl.meta_keywords, cl.meta_description FROM `ps_category` c INNER JOIN ps_category_shop category_shop ON (category_shop.id_category = c.id_category AND category_shop.id_shop = 1) LEFT JOIN `ps_category_lang` cl ON (c.`id_category` = cl.`id_category` AND `id_lang` = 1 AND cl.id_shop = 1 ) LEFT JOIN `ps_category_group` cg ON (cg.`id_category` = c.`id_category`) WHERE `id_parent` = 32 AND `active` = 1 AND cg.`id_group` IN (2) GROUP BY c.`id_category` ORDER BY `level_depth` ASC, category_shop.`position` ASC
192. /**
193. * Assigns subcategory templates variables
194. */
195. protected function assignSubcategories()
196. {
197. if ($sub_categories = $this->category->getSubCategories($this->context->language->id)) {
198. $this->context->smarty->assign(array(
199. 'subcategories' => $sub_categories,
200. 'subcategories_nb_total' => count($sub_categories),
201. 'subcategories_nb_half' => ceil(count($sub_categories) / 2)
202. ));
Argument [0] 1
138.
139. // Product sort must be called before assignProductList()
140. $this->productSort();
141.
142. $this->assignScenes();
143. $this->assignSubcategories();
144. $this->assignProductList();
145.
146. $this->context->smarty->assign(array(
147. 'category' => $this->category,
148. 'description_short' => Tools::truncateString($this->category->description, 350),
184. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) {
185. $this->initHeader();
186. }
187.
188. if ($this->viewAccess()) {
189. $this->initContent();
190. } else {
191. $this->errors[] = Tools::displayError('Access denied.');
192. }
193.
194. if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className))) {
385. $controller = Controller::getController($controller_class);
386.
387. if (isset($params_hook_action_dispatcher))
388. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
389.
390. $controller->run();
391.
392. if ($this->_isPageCacheActive())
393. {
394. PageCache::displayStats(false, $pre_display_html);
395. }
119. * date: 2017-02-07 23:04:58
120. * version: 3.17
121. */
122. public function dispatch() {
123. if (Tools::version_compare(_PS_VERSION_,'1.6','>')) {
124. $this->dispatch_16();
125. } else {
126. $this->dispatch_15();
127. }
128. }
129.
28. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
29. * International Registered Trademark & Property of PrestaShop SA
30. */
31.
32. require(dirname(__FILE__).'/config/config.inc.php');
33. Dispatcher::getInstance()->dispatch();
34. ini_set('display_errors', 1);