SQLSTATE[HY000]: General error: 3 Error writing file '/tmp/MYfd=127' (OS 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. }
97.
98. $start = microtime(true);
99. }
100.
101. // Execute query
102. $result = parent::query($sql);
103.
104. if (!$explain) {
105. $end = microtime(true);
106.
107. $stack = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
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) {
494. $sql .= '
495. ORDER BY ' . $alias . '`' . bqSQL($orderBy) . '` ' . pSQL($orderWay) . '
496. LIMIT ' . (((int) $p - 1) * (int) $n) . ',' . (int) $n;
497. }
498.
499. $result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql);
500.
501. if (!$result) {
502. return false;
503. }
504.
66. $context->getIdLang(),
67. $query->getPage(),
68. $query->getResultsPerPage(),
69. $query->getSortOrder()->toLegacyOrderBy(),
70. $query->getSortOrder()->toLegacyOrderWay(),
71. $type !== 'products'
72. );
73.
74. return $type !== 'products' ? (int) $result : $result;
75. }
76.
82. */
83. public function runQuery(
84. ProductSearchContext $context,
85. ProductSearchQuery $query
86. ) {
87. $products = $this->getProductsOrCount($context, $query, 'products');
88. $count = $this->getProductsOrCount($context, $query, 'count');
89.
90. $result = new ProductSearchResult();
91.
92. if (!empty($products)) {
352.
353. // We're ready to run the actual query!
354.
355. /** @var ProductSearchResult $result */
356. $result = $provider->runQuery(
357. $context,
358. $query
359. );
360.
361. Hook::exec('actionProductSearchProviderRunQueryAfter', [
362. 'query' => $query,
630. header('Content-Type: application/json');
631. $this->ajaxRender(json_encode($this->getAjaxProductSearchVariables()));
632.
633. return;
634. } else {
635. $variables = $this->getProductSearchVariables();
636. $this->context->smarty->assign([
637. 'listing' => $variables,
638. ]);
639. $this->setTemplate($template, $params, $locale);
640. }
94. ],
95. 'Shop.Theme.Catalog'
96. );
97. $this->doProductSearch(
98. 'catalog/listing/manufacturer',
99. ['entity' => 'manufacturer', 'id' => $this->manufacturer->id]
100. );
101. } else {
102. $this->assignAll();
103. $this->label = $this->trans(
104. 'List of all brands',
55. if (!$this->content_only && ($this->display_header || !empty($this->className))) {
56. $this->initHeader();
57. $this->profiler->stamp('initHeader');
58. }
59.
60. $this->initContent();
61. $this->profiler->stamp('initContent');
62.
63. if (!$this->content_only && ($this->display_footer || !empty($this->className))) {
64. $this->initFooter();
65. $this->profiler->stamp('initFooter');
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();