Disk full (/tmp/#sql-temptable-a4af6-6ae17-11f90d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")<br /><br /><pre>
SELECT c.id_parent, c.id_category, cl.name, cl.description, cl.link_rewrite
FROM `prstshp_category` c
INNER JOIN `prstshp_category_lang` cl ON (c.`id_category` = cl.`id_category` AND cl.`id_lang` = 2 AND cl.id_shop = 1 )
INNER JOIN `prstshp_category_shop` cs ON (cs.`id_category` = c.`id_category` AND cs.`id_shop` = 1)
WHERE (c.`active` = 1 OR c.`id_category` = 2)
AND c.`id_category` != 1
AND `level_depth` <= 5
AND nleft >= 2 AND nright <= 745
AND c.id_category IN (
SELECT id_category
FROM `prstshp_category_group`
WHERE `id_group` IN (1)
)
ORDER BY `level_depth` ASC, cs.`position` ASC</pre>
at line 769 in file classes/db/Db.php
764. if ($webservice_call && $errno) {
765. $dbg = debug_backtrace();
766. WebserviceRequest::getInstance()->setError(500, '[SQL Error] ' . $this->getMsgError() . '. From ' . (isset($dbg[3]['class']) ? $dbg[3]['class'] : '') . '->' . $dbg[3]['function'] . '() Query was : ' . $sql, 97);
767. } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) {
768. if ($sql) {
769. throw new PrestaShopDatabaseException($this->getMsgError() . '<br /><br /><pre>' . $sql . '</pre>');
770. }
771.
772. throw new PrestaShopDatabaseException($this->getMsgError());
773. }
774. }
380. $this->result = $this->_query($sql);
381. }
382. }
383.
384. if (_PS_DEBUG_SQL_) {
385. $this->displayError($sql);
386. }
387.
388. return $this->result;
389. }
390.
608. }
609.
610. return $this->execute($sql, $use_cache);
611. }
612.
613. $this->result = $this->query($sql);
614.
615. if (!$this->result) {
616. $result = false;
617. } else {
618. if (!$array) {
144. AND c.id_category IN (
145. SELECT id_category
146. FROM `' . _DB_PREFIX_ . 'category_group`
147. WHERE `id_group` IN (' . pSQL(implode(', ', Customer::getGroupsStatic((int) $this->context->customer->id))) . ')
148. )
149. ORDER BY `level_depth` ASC, ' . (Configuration::get('BLOCK_CATEG_SORT') ? 'cl.`name`' : 'cs.`position`') . ' ' . (Configuration::get('BLOCK_CATEG_SORT_WAY') ? 'DESC' : 'ASC'));
150. foreach ($result as &$row) {
151. $resultParents[$row['id_parent']][] = &$row;
152. $resultIds[$row['id_category']] = &$row;
153. }
154.
327. $category = new Category($category->id_parent, $this->context->language->id);
328. }
329. }
330.
331. return [
332. 'categories' => $this->getCategories($category),
333. 'currentCategory' => $category->id,
334. ];
335. }
336. }
308. }
309.
310. public function renderWidget($hookName = null, array $configuration = [])
311. {
312. $this->setLastVisitedCategory();
313. $this->smarty->assign($this->getWidgetVariables($hookName, $configuration));
314.
315. return $this->fetch('module:ps_categorytree/views/templates/hook/ps_categorytree.tpl');
316. }
317.
318. public function getWidgetVariables($hookName = null, array $configuration = [])
990. return $module->{$method}($params);
991. }
992.
993. public static function coreRenderWidget($module, $hook_name, $params)
994. {
995. return $module->renderWidget($hook_name, $params);
996. }
997.
998. /**
999. * @return \PrestaShopBundle\DataCollector\HookRegistry|null
1000. */
942. if ($moduleInstance instanceof WidgetInterface) {
943. if (0 !== $key && true === $chain) {
944. $hook_args = $output;
945. }
946.
947. $display = Hook::coreRenderWidget($moduleInstance, $registeredHookName, $hook_args);
948.
949. if ($array_return) {
950. $output[$moduleInstance->name] = $display;
951. } else {
952. if (true === $chain) {
162.
163. return $result;
164. }
165. unset($hook_params['h']);
166.
167. return Hook::exec($params['h'], $hook_params, $id_module);
168. }
169.
170. function smartyCleanHtml($data)
171. {
172. // Prevent xss injection.
78. } else {
79. $args[] = &$arguments[$a];
80. }
81. }
82.
83. return call_user_func_array($item, $args);
84. }
85. }
86.
87. public static function getInstance($smarty)
88. {
242. <div id="left-column" class="col-xs-12 col-sm-4 col-md-3">
243. <?php if ($_smarty_tpl->tpl_vars['page']->value['page_name'] == 'product') {?>
244. <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0], array( array('h'=>'displayLeftColumnProduct'),$_smarty_tpl ) );?>
245.
246. <?php } else { ?>
247. <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0], array( array('h'=>"displayLeftColumn"),$_smarty_tpl ) );?>
248.
249. <?php }?>
250. </div>
251. <?php
252. }
243. */
244. public function callBlock(Smarty_Internal_Block $block, Smarty_Internal_Template $tpl)
245. {
246. $this->sourceStack[] = $tpl->source;
247. $tpl->source = $this->sources[ $block->tplIndex ];
248. $block->callBlock($tpl);
249. $tpl->source = array_pop($this->sourceStack);
250. }
251. }
179. $block->parent = $parent;
180. if ($block->append && !$block->prepend && isset($parent)) {
181. $this->callParent($tpl, $block, '\'{block append}\'');
182. }
183. if ($block->callsChild || !isset($block->child) || ($block->child->hide && !isset($block->child->child))) {
184. $this->callBlock($block, $tpl);
185. } else {
186. $this->process($tpl, $block->child, $block);
187. }
188. if ($block->prepend && isset($parent)) {
189. $this->callParent($tpl, $block, '{block prepend}');
151. }
152. // make sure we got child block of child template of current block
153. while ($block->child && $block->child->child && $block->tplIndex <= $block->child->tplIndex) {
154. $block->child = $block->child->child;
155. }
156. $this->process($tpl, $block);
157. }
158.
159. /**
160. * Goto child block or render this
161. *
77. $_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_61018275864525578046ed8_55984862', 'breadcrumb');
78. ?>
79.
80.
81. <?php
82. $_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_38955484264525578048da1_80944249', "left_column");
83. ?>
84.
85.
86. <?php
87. $_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_6150408956452557804cb01_26127036', "content_wrapper");
118. if ($_template->startRenderCallbacks) {
119. foreach ($_template->startRenderCallbacks as $callback) {
120. call_user_func($callback, $_template);
121. }
122. }
123. $unifunc($_template);
124. foreach ($_template->endRenderCallbacks as $callback) {
125. call_user_func($callback, $_template);
126. }
127. $_template->isRenderingCache = false;
128. } catch (Exception $e) {
109. array_merge($_template->cached->file_dependency, $this->file_dependency);
110. }
111. if ($_template->source->handler->uncompiled) {
112. $_template->source->handler->renderUncompiled($_template->source, $_template);
113. } else {
114. $this->getRenderedTemplateCode($_template);
115. }
116. if ($_template->caching && $this->has_nocache_code) {
117. $_template->cached->hashes[ $this->nocache_hash ] = true;
118. }
119. if ($_template->smarty->debugging) {
211. $this->cached->render($this, $no_output_filter);
212. } else {
213. if (!isset($this->compiled) || $this->compiled->compile_id !== $this->compile_id) {
214. $this->loadCompiled(true);
215. }
216. $this->compiled->render($this);
217. }
218. // display or fetch
219. if ($display) {
220. if ($this->caching && $this->smarty->cache_modified_check) {
221. $this->smarty->ext->_cacheModify->cacheModifiedCheck(
380. }
381. } else {
382. if (isset($tpl->compiled)) {
383. $tpl->compiled->render($tpl);
384. } else {
385. $tpl->render();
386. }
387. }
388. }
389.
390. /**
111. }
112. if (isset($template) && (($tpl->parent->_isTplObj() && $tpl->parent->source->type !== 'extends')
113. || $tpl->smarty->extends_recursion)
114. ) {
115. $tpl->_subTemplateRender(
116. $template,
117. $tpl->cache_id,
118. $tpl->compile_id,
119. $tpl->caching ? 9999 : 0,
120. $tpl->cache_lifetime,
121. array(),
33.
34. <?php
35. $_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_20482456106452557802df17_20245969', 'content_wrapper');
36. ?>
37.
38. <?php $_smarty_tpl->inheritance->endChild($_smarty_tpl, 'layouts/layout-both-columns.tpl');
39. }
40. /* {block 'right_column'} */
41. class Block_2904439596452557802cd97_80412775 extends Smarty_Internal_Block
42. {
43. public $subBlocks = array (
118. if ($_template->startRenderCallbacks) {
119. foreach ($_template->startRenderCallbacks as $callback) {
120. call_user_func($callback, $_template);
121. }
122. }
123. $unifunc($_template);
124. foreach ($_template->endRenderCallbacks as $callback) {
125. call_user_func($callback, $_template);
126. }
127. $_template->isRenderingCache = false;
128. } catch (Exception $e) {
109. array_merge($_template->cached->file_dependency, $this->file_dependency);
110. }
111. if ($_template->source->handler->uncompiled) {
112. $_template->source->handler->renderUncompiled($_template->source, $_template);
113. } else {
114. $this->getRenderedTemplateCode($_template);
115. }
116. if ($_template->caching && $this->has_nocache_code) {
117. $_template->cached->hashes[ $this->nocache_hash ] = true;
118. }
119. if ($_template->smarty->debugging) {
211. $this->cached->render($this, $no_output_filter);
212. } else {
213. if (!isset($this->compiled) || $this->compiled->compile_id !== $this->compile_id) {
214. $this->loadCompiled(true);
215. }
216. $this->compiled->render($this);
217. }
218. // display or fetch
219. if ($display) {
220. if ($this->caching && $this->smarty->cache_modified_check) {
221. $this->smarty->ext->_cacheModify->cacheModifiedCheck(
380. }
381. } else {
382. if (isset($tpl->compiled)) {
383. $tpl->compiled->render($tpl);
384. } else {
385. $tpl->render();
386. }
387. }
388. }
389.
390. /**
111. }
112. if (isset($template) && (($tpl->parent->_isTplObj() && $tpl->parent->source->type !== 'extends')
113. || $tpl->smarty->extends_recursion)
114. ) {
115. $tpl->_subTemplateRender(
116. $template,
117. $tpl->cache_id,
118. $tpl->compile_id,
119. $tpl->caching ? 9999 : 0,
120. $tpl->cache_lifetime,
121. array(),
32.
33. <?php
34. $_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_195305467964525577f373e7_39847619', 'content');
35. ?>
36.
37. <?php $_smarty_tpl->inheritance->endChild($_smarty_tpl, $_smarty_tpl->tpl_vars['layout']->value);
38. }
39. /* {block 'product_list_header'} */
40. class Block_162729549264525577f38015_32259902 extends Smarty_Internal_Block
41. {
42. public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
118. if ($_template->startRenderCallbacks) {
119. foreach ($_template->startRenderCallbacks as $callback) {
120. call_user_func($callback, $_template);
121. }
122. }
123. $unifunc($_template);
124. foreach ($_template->endRenderCallbacks as $callback) {
125. call_user_func($callback, $_template);
126. }
127. $_template->isRenderingCache = false;
128. } catch (Exception $e) {
109. array_merge($_template->cached->file_dependency, $this->file_dependency);
110. }
111. if ($_template->source->handler->uncompiled) {
112. $_template->source->handler->renderUncompiled($_template->source, $_template);
113. } else {
114. $this->getRenderedTemplateCode($_template);
115. }
116. if ($_template->caching && $this->has_nocache_code) {
117. $_template->cached->hashes[ $this->nocache_hash ] = true;
118. }
119. if ($_template->smarty->debugging) {
211. $this->cached->render($this, $no_output_filter);
212. } else {
213. if (!isset($this->compiled) || $this->compiled->compile_id !== $this->compile_id) {
214. $this->loadCompiled(true);
215. }
216. $this->compiled->render($this);
217. }
218. // display or fetch
219. if ($display) {
220. if ($this->caching && $this->smarty->cache_modified_check) {
221. $this->smarty->ext->_cacheModify->cacheModifiedCheck(
380. }
381. } else {
382. if (isset($tpl->compiled)) {
383. $tpl->compiled->render($tpl);
384. } else {
385. $tpl->render();
386. }
387. }
388. }
389.
390. /**
111. }
112. if (isset($template) && (($tpl->parent->_isTplObj() && $tpl->parent->source->type !== 'extends')
113. || $tpl->smarty->extends_recursion)
114. ) {
115. $tpl->_subTemplateRender(
116. $template,
117. $tpl->cache_id,
118. $tpl->compile_id,
119. $tpl->caching ? 9999 : 0,
120. $tpl->cache_lifetime,
121. array(),
29.
30. <?php
31. $_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_196583814645255817f0412_16962818', 'product_list_header');
32. ?>
33.
34. <?php $_smarty_tpl->inheritance->endChild($_smarty_tpl, 'catalog/listing/product-list.tpl');
35. }
36. /* {block 'product_list_header'} */
37. class Block_196583814645255817f0412_16962818 extends Smarty_Internal_Block
38. {
39. public $subBlocks = array (
118. if ($_template->startRenderCallbacks) {
119. foreach ($_template->startRenderCallbacks as $callback) {
120. call_user_func($callback, $_template);
121. }
122. }
123. $unifunc($_template);
124. foreach ($_template->endRenderCallbacks as $callback) {
125. call_user_func($callback, $_template);
126. }
127. $_template->isRenderingCache = false;
128. } catch (Exception $e) {
109. array_merge($_template->cached->file_dependency, $this->file_dependency);
110. }
111. if ($_template->source->handler->uncompiled) {
112. $_template->source->handler->renderUncompiled($_template->source, $_template);
113. } else {
114. $this->getRenderedTemplateCode($_template);
115. }
116. if ($_template->caching && $this->has_nocache_code) {
117. $_template->cached->hashes[ $this->nocache_hash ] = true;
118. }
119. if ($_template->smarty->debugging) {
211. $this->cached->render($this, $no_output_filter);
212. } else {
213. if (!isset($this->compiled) || $this->compiled->compile_id !== $this->compile_id) {
214. $this->loadCompiled(true);
215. }
216. $this->compiled->render($this);
217. }
218. // display or fetch
219. if ($display) {
220. if ($this->caching && $this->smarty->cache_modified_check) {
221. $this->smarty->ext->_cacheModify->cacheModifiedCheck(
227. ob_start();
228. $template->_mergeVars();
229. if (!empty(Smarty::$global_tpl_vars)) {
230. $template->tpl_vars = array_merge(Smarty::$global_tpl_vars, $template->tpl_vars);
231. }
232. $result = $template->render(false, $function);
233. $template->_cleanUp();
234. if ($saveVars) {
235. $template->tpl_vars = $savedTplVars;
236. $template->config_vars = $savedConfigVars;
237. } else {
111. * @throws SmartyException
112. * @return string rendered template output
113. */
114. public function fetch($template = null, $cache_id = null, $compile_id = null, $parent = null)
115. {
116. $result = $this->_execute($template, $cache_id, $compile_id, $parent, 0);
117. return $result === null ? ob_get_clean() : $result;
118. }
119.
120. /**
121. * displays a Smarty template
35. * {@inheritdoc}
36. */
37. public function fetch($template = null, $cache_id = null, $compile_id = null, $parent = null, $display = false, $merge_tpl_vars = true, $no_output_filter = false)
38. {
39. return "\n<!-- begin $template -->\n"
40. . parent::fetch($template, $cache_id, $compile_id, $parent, $display, $merge_tpl_vars, $no_output_filter)
41. . "\n<!-- end $template -->\n";
42. }
43. }
699. if (is_array($content)) {
700. foreach ($content as $tpl) {
701. $html .= $this->context->smarty->fetch($tpl, null, $theme . $this->getLayout());
702. }
703. } else {
704. $html = $this->context->smarty->fetch($content, null, $theme . $this->getLayout());
705. }
706.
707. Hook::exec('actionOutputHTMLBefore', ['html' => &$html]);
708. echo trim($html);
709. }
681. 'javascript' => $this->getJavascript(),
682. 'js_custom_vars' => Media::getJsDef(),
683. 'notifications' => $this->prepareNotifications(),
684. ]);
685.
686. $this->smartyOutputContent($this->template);
687.
688. return true;
689. }
690.
691. protected function smartyOutputContent($content)
321. $this->{'displayAjax' . $action}();
322. } elseif (method_exists($this, 'displayAjax')) {
323. $this->displayAjax();
324. }
325. } else {
326. $this->display();
327. }
328. } else {
329. $this->initCursedPage();
330. $this->smartyOutputContent($this->layout);
331. }
513. if (isset($params_hook_action_dispatcher)) {
514. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
515. }
516.
517. // Running controller
518. $controller->run();
519.
520. // Execute hook dispatcher after
521. if (isset($params_hook_action_dispatcher)) {
522. Hook::exec('actionDispatcherAfter', $params_hook_action_dispatcher);
523. }
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();