Can't create/write to file '/tmp/#sql-temptable-6716-10755d-3c719.MAI' (Errcode: 28 "No space left on device")
SELECT *
FROM ps_sgexpertsvoice
WHERE active = 1
AND FIND_IN_SET("392", categories) > 0
ORDER BY RAND() LIMIT 1
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 *
FROM ps_sgexpertsvoice
WHERE active = 1
AND FIND_IN_SET("392", categories) > 0
ORDER BY RAND() LIMIT 1
685. $this->last_cached = true;
686. return $result;
687. }
688. }
689.
690. $this->result = $this->query($sql);
691. if (!$this->result) {
692. $result = false;
693. } else {
694. $result = $this->nextRow($this->result);
695. }
Argument [0]
SELECT *
FROM ps_sgexpertsvoice
WHERE active = 1
AND FIND_IN_SET("392", categories) > 0
ORDER BY RAND() LIMIT 1
52. if($id_category){
53. return Db::getInstance(_PS_USE_SQL_SLAVE_)->getRow('
54. SELECT *
55. FROM ps_sgexpertsvoice
56. WHERE active = 1
57. AND FIND_IN_SET("' . (int)$id_category . '", categories) > 0
58. ORDER BY RAND()
59. ');
60. }else{
61. return Db::getInstance(_PS_USE_SQL_SLAVE_)->getRow('
62. SELECT *
Argument [0]
SELECT *
FROM ps_sgexpertsvoice
WHERE active = 1
AND FIND_IN_SET("392", categories) > 0
ORDER BY RAND() LIMIT 1
150. }
151. public function hookDisplayLeftColumnProduct($params) {
152. if ($this->context->controller->php_self == 'product') {
153. $product = $this->context->controller->getProduct();
154.
155. return $this->displayExpertsvoice(ExpertsVoice::getRandomExpertsvoice($product->universe_id), $product->universe_id);
156. }
157.
158. }
159. public function hookexpertsVoicesIndex($params) {
160. return $this->displayExpertsvoiceIndex(ExpertsVoice::getRandomExpertsvoice());
Argument [0] 392
586. }
587. }
588.
589. // Immediately return the result if we do not log performances
590. if (!Module::$_log_modules_perfs) {
591. return $module->{$method}($params);
592. }
593.
594. // Store time and memory before and after hook call and save the result in the database
595. $time_start = microtime(true);
596. $memory_start = memory_get_usage(true);
Argument [0]
541. Tools::waitUntilFileIsModified($moduleInstance->push_filename, $moduleInstance->push_time_limit);
542. }
543.
544. // Call hook method
545. if ($hook_callable) {
546. $display = Hook::coreCallHook($moduleInstance, 'hook'.$hook_name, $hook_args);
547. } elseif ($hook_retro_callable) {
548. $display = Hook::coreCallHook($moduleInstance, 'hook'.$retro_hook_name, $hook_args);
549. }
550.
551. // Live edit
Argument [0] Argument [1] hookdisplayLeftColumnProduct Argument [2]
269. 'token' => Tools::getToken(false),
270. 'features' => $this->product->getFrontFeatures($this->context->language->id),
271. 'attachments' => (($this->product->cache_has_attachments) ? $this->product->getAttachments($this->context->language->id) : array()),
272. 'allow_oosp' => $this->product->isAvailableWhenOutOfStock((int)$this->product->out_of_stock),
273. 'last_qties' => (int)Configuration::get('PS_LAST_QTIES'),
274. 'HOOK_EXTRA_LEFT' => Hook::exec('displayLeftColumnProduct'),
275. 'HOOK_EXTRA_RIGHT' => Hook::exec('displayRightColumnProduct'),
276. 'HOOK_PRODUCT_OOS' => Hook::exec('actionProductOutOfStock', array('product' => $this->product)),
277. 'HOOK_PRODUCT_ACTIONS' => Hook::exec('displayProductButtons', array('product' => $this->product)),
278. 'HOOK_PRODUCT_TAB' => Hook::exec('displayProductTab', array('product' => $this->product)),
279. 'HOOK_PRODUCT_TAB_CONTENT' => Hook::exec('displayProductTabContent', array('product' => $this->product)),
Argument [0] displayLeftColumnProduct
17. parent::init();
18. }
19. }
20.
21. public function initContent() {
22. parent::initContent();
23.
24. if (!$this->product->active) {
25. // afichage de tous les produits liés, même en brouillon pour aperçu plateforme
26. $accessories = $this->product->getAccessories($this->context->language->id, false);
27. $this->context->smarty->assign('accessories', $accessories);
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))) {
362. if (isset($params_hook_action_dispatcher)) {
363. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
364. }
365.
366. // Running controller
367. $controller->run();
368. } catch (PrestaShopException $e) {
369. $e->displayMessage();
370. }
371. }
372.
23. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
24. * International Registered Trademark & Property of PrestaShop SA
25. */
26.
27. require(dirname(__FILE__).'/config/config.inc.php');
28. Dispatcher::getInstance()->dispatch();