SQLSTATE[HY000]: General error: 1021 Disk full (/tmp/#sql_3893_7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
at line 151 in file classes/db/DbPDO.php
146. protected function _query($sql)
147. {
148. try {
149. return $this->link->query($sql);
150. } catch (\PDOException $exception) {
151. throw new PrestaShopException($exception->getMessage(), (int) $exception->getCode(), $exception);
152. }
153. }
154.
155. /**
156. * Returns the next row from the result set.
372. {
373. if ($sql instanceof DbQuery) {
374. $sql = $sql->build();
375. }
376.
377. $this->result = $this->_query($sql);
378.
379. if (!$this->result && $this->getNumberError() == 2006) {
380. $this->connect();
381. $this->result = $this->_query($sql);
382. }
Argument [0] SELECT c.*, cl.`id_lang`, cl.`name`, cl.`description`, cl.`additional_description`, cl.`link_rewrite`, cl.`meta_title`, cl.`meta_keywords`, cl.`meta_description` FROM `pr_category` c INNER JOIN pr_category_shop category_shop ON (category_shop.id_category = c.id_category AND category_shop.id_shop = 1) LEFT JOIN `pr_category_lang` cl ON (c.`id_category` = cl.`id_category` AND `id_lang` = 9 AND cl.id_shop = 1 ) LEFT JOIN `pr_category_group` cg ON (cg.`id_category` = c.`id_category`) WHERE `id_parent` = 1306 AND `active` = 1 AND cg.`id_group` =1 GROUP BY c.`id_category` ORDER BY `level_depth` ASC, category_shop.`position` ASC
609. || stripos($sql, 'dumpfile') !== false
610. ) {
611. throw new PrestaShopDatabaseException('Db->executeS() must be used only with select, show, explain or describe queries');
612. }
613.
614. $this->result = $this->query($sql);
615.
616. if (!$this->result) {
617. $result = false;
618. } else {
619. if (!$array) {
Argument [0] SELECT c.*, cl.`id_lang`, cl.`name`, cl.`description`, cl.`additional_description`, cl.`link_rewrite`, cl.`meta_title`, cl.`meta_keywords`, cl.`meta_description` FROM `pr_category` c INNER JOIN pr_category_shop category_shop ON (category_shop.id_category = c.id_category AND category_shop.id_shop = 1) LEFT JOIN `pr_category_lang` cl ON (c.`id_category` = cl.`id_category` AND `id_lang` = 9 AND cl.id_shop = 1 ) LEFT JOIN `pr_category_group` cg ON (cg.`id_category` = c.`id_category`) WHERE `id_parent` = 1306 AND `active` = 1 AND cg.`id_group` =1 GROUP BY c.`id_category` ORDER BY `level_depth` ASC, category_shop.`position` ASC
919. ' . Shop::addSqlAssociation('category', 'c') . '
920. LEFT JOIN `' . _DB_PREFIX_ . 'category_lang` cl ON (c.`id_category` = cl.`id_category` AND `id_lang` = ' . (int) $idLang . ' ' . Shop::addSqlRestrictionOnLang('cl') . ')
921. ' . $sqlGroupsJoin . '
922. WHERE `id_parent` = ' . (int) $this->id . '
923. ' . ($active ? 'AND `active` = 1' : '') . '
924. ' . $sqlGroupsWhere . '
925. GROUP BY c.`id_category`
926. ORDER BY `level_depth` ASC, category_shop.`position` ASC');
927.
928. foreach ($result as &$row) {
929. $row['id_image'] = Tools::file_exists_cache($this->image_dir . $row['id_category'] . '.jpg') ? (int) $row['id_category'] : Language::getIsoById($idLang) . '-default';
Argument [0] SELECT c.*, cl.`id_lang`, cl.`name`, cl.`description`, cl.`additional_description`, cl.`link_rewrite`, cl.`meta_title`, cl.`meta_keywords`, cl.`meta_description` FROM `pr_category` c INNER JOIN pr_category_shop category_shop ON (category_shop.id_category = c.id_category AND category_shop.id_shop = 1) LEFT JOIN `pr_category_lang` cl ON (c.`id_category` = cl.`id_category` AND `id_lang` = 9 AND cl.id_shop = 1 ) LEFT JOIN `pr_category_group` cg ON (cg.`id_category` = c.`id_category`) WHERE `id_parent` = 1306 AND `active` = 1 AND cg.`id_group` =1 GROUP BY c.`id_category` ORDER BY `level_depth` ASC, category_shop.`position` ASC
225. $category['id_category'],
226. $category['link_rewrite']
227. );
228.
229. return $category;
230. }, $this->category->getSubCategories($this->context->language->id));
231. }
232.
233. protected function getImage($object, $id_image)
234. {
235. $retriever = new ImageRetriever(
Argument [0] 9
113. $categoryVar = $filteredCategory['object'];
114. }
115.
116. $this->context->smarty->assign([
117. 'category' => $categoryVar,
118. 'subcategories' => $this->getTemplateVarSubCategories(),
119. ]);
120. }
121.
122. /**
123. * {@inheritdoc}
295. /**
296. * Starts the controller process (this method should not be overridden!).
297. */
298. public function run()
299. {
300. $this->init();
301. if ($this->checkAccess()) {
302. // setMedia MUST be called before postProcess
303. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) {
304. $this->setMedia();
305. }
505.
506. // Execute hook dispatcher
507. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
508.
509. // Running controller
510. $controller->run();
511.
512. // Execute hook dispatcher after
513. Hook::exec('actionDispatcherAfter', $params_hook_action_dispatcher);
514. } catch (PrestaShopException $e) {
515. $e->displayMessage();
23. * @copyright Since 2007 PrestaShop SA and Contributors
24. * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
25. */
26.
27. require dirname(__FILE__).'/config/config.inc.php';
28. Dispatcher::getInstance()->dispatch();