Error writing file '/tmp/#sql-temptable-a4af6-6ae19-11e32c.MAD' (Errcode: 28 "No space left on device")<br /><br /><pre>
SELECT m.*, ml.`description`, ml.`short_description`
FROM `prstshp_manufacturer` m INNER JOIN prstshp_manufacturer_shop manufacturer_shop
ON (manufacturer_shop.id_manufacturer = m.id_manufacturer AND manufacturer_shop.id_shop = 1)INNER JOIN `prstshp_manufacturer_lang` ml ON (m.`id_manufacturer` = ml.`id_manufacturer` AND ml.`id_lang` = 2)WHERE 1 AND m.`active` = 1 ORDER BY m.`name` 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) {
202. 'WHERE 1 ' .
203. ($active ? 'AND m.`active` = 1 ' : '') .
204. ($withProduct ? 'AND m.`id_manufacturer` IN (SELECT `id_manufacturer` FROM `' . _DB_PREFIX_ . 'product`) ' : '') .
205. ($group_by ? ' GROUP BY m.`id_manufacturer`' : '') .
206. 'ORDER BY m.`name` ASC
207. ' . ($p ? ' LIMIT ' . (((int) $p - 1) * (int) $n) . ',' . (int) $n : ''));
208. if ($manufacturers === false) {
209. return false;
210. }
211.
212. if ($getNbProducts) {
503. private function getManufacturersBlock($filter, $selectedFilters, $idLang)
504. {
505. $manufacturersArray = $manufacturers = [];
506. $filteredSearchAdapter = $this->searchAdapter->getFilteredSearchAdapter('id_manufacturer');
507.
508. $tempManufacturers = Manufacturer::getManufacturers(false, $idLang);
509. if (empty($tempManufacturers)) {
510. return $manufacturersArray;
511. }
512.
513. foreach ($tempManufacturers as $key => $manufacturer) {
123. break;
124. case 'quantity':
125. $filterBlocks[] = $this->getQuantitiesBlock($filter, $selectedFilters);
126. break;
127. case 'manufacturer':
128. $filterBlocks[] = $this->getManufacturersBlock($filter, $selectedFilters, $idLang);
129. break;
130. case 'id_attribute_group':
131. $filterBlocks =
132. array_merge($filterBlocks, $this->getAttributesBlock($filter, $selectedFilters, $idLang));
133. break;
174. )
175. );
176.
177. $filterBlock = $filterBlockSearch->getFromCache($filterHash);
178. if (empty($filterBlock)) {
179. $filterBlock = $filterBlockSearch->getFilterBlock($productsAndCount['count'], $facetedSearchFilters);
180. $filterBlockSearch->insertIntoCache($filterHash, $filterBlock);
181. }
182.
183. $facets = $this->filtersConverter->getFacetsFromFilterBlocks(
184. $filterBlock['filters']
302.
303. // We're ready to run the actual query!
304.
305. /** @var ProductSearchResult $result */
306. $result = $provider->runQuery(
307. $context,
308. $query
309. );
310.
311. if (Configuration::get('PS_CATALOG_MODE') && !Configuration::get('PS_CATALOG_MODE_WITH_PRICES')) {
312. $this->disablePriceControls($result);
575. header('Content-Type: application/json');
576. $this->ajaxRender(json_encode($this->getAjaxProductSearchVariables()));
577.
578. return;
579. } else {
580. $variables = $this->getProductSearchVariables();
581. $this->context->smarty->assign([
582. 'listing' => $variables,
583. ]);
584. $this->setTemplate($template, $params, $locale);
585. }
132. if ($this->category->checkAccess($this->context->customer->id)) {
133. $this->doProductSearch(
134. 'catalog/listing/category',
135. [
136. 'entity' => 'category',
137. 'id' => $this->category->id,
138. ]
139. );
140. }
141. }
142.
301. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) {
302. $this->initHeader();
303. }
304.
305. if ($this->viewAccess()) {
306. $this->initContent();
307. } else {
308. $this->errors[] = $this->trans('Access denied.', [], 'Admin.Notifications.Error');
309. }
310.
311. if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className))) {
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();