Jump to content

Edit History

klifort

klifort

Witam

Prestashop 1.6.1.23

Zawsze kiedy wchodzę w produkty (BackOffice), jest błąd

Złe zapytanie SQL
MySQL server has gone away 

kiedy w defines.inc.php - _PS_MODE_DEV_', true

MySQL server has gone away

SELECT
								a.`id_product`, b.`name` AS `name`, `reference`, a.`price` AS `price`, sa.`active` AS `active`
			, shop.`name` AS `shopname`, a.`id_shop_default`, image_shop.`id_image` AS `id_image`, cl.`name` AS `name_category`, sa.`price`, 0 AS `price_final`, a.`is_virtual`, pd.`nb_downloadable`, sav.`quantity` AS `sav_quantity`, sa.`active`, IF(sav.`quantity`<=0, 1, 0) AS `badge_danger`
			FROM `ps_product` a 
			LEFT JOIN `ps_product_lang` b ON (b.`id_product` = a.`id_product` AND b.`id_lang` = 1 AND b.`id_shop` = 1)
			
		LEFT JOIN `ps_stock_available` sav ON (sav.`id_product` = a.`id_product` AND sav.`id_product_attribute` = 0
		 AND sav.id_shop = 1  AND sav.id_shop_group = 0 )  JOIN `ps_product_shop` sa ON (a.`id_product` = sa.`id_product` AND sa.id_shop = a.id_shop_default)
				LEFT JOIN `ps_category_lang` cl ON (sa.`id_category_default` = cl.`id_category` AND b.`id_lang` = cl.`id_lang` AND cl.id_shop = a.id_shop_default)
				LEFT JOIN `ps_shop` shop ON (shop.id_shop = a.id_shop_default)
				LEFT JOIN `ps_image_shop` image_shop ON (image_shop.`id_product` = a.`id_product` AND image_shop.`cover` = 1 AND image_shop.id_shop = a.id_shop_default)
				LEFT JOIN `ps_image` i ON (i.`id_image` = image_shop.`id_image`)
				LEFT JOIN `ps_product_download` pd ON (pd.`id_product` = a.`id_product` AND pd.`active` = 1) 
			 WHERE 1  
			 
			 ORDER BY a.`id_product` ASC  LIMIT 0, 50


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.     }

    DbCore->displayError - [line 425 - classes/db/Db.php] - [1 Arguments]
    DbCore->query - [line 643 - classes/db/Db.php] - [1 Arguments]
    DbCore->executeS - [line 3238 - classes/controller/AdminController.php] - [3 Arguments]
    AdminControllerCore->getList - [line 409 - controllers/admin/AdminProductsController.php] - [6 Arguments]
    AdminProductsControllerCore->getList - [line 2364 - classes/controller/AdminController.php] - [1 Arguments]
    AdminControllerCore->renderList - [line 2597 - controllers/admin/AdminProductsController.php]
    AdminProductsControllerCore->renderList - [line 2065 - classes/controller/AdminController.php]
    AdminControllerCore->initContent - [line 2515 - controllers/admin/AdminProductsController.php]
    AdminProductsControllerCore->initContent - [line 189 - classes/controller/Controller.php]
    ControllerCore->run - [line 367 - classes/Dispatcher.php]
    DispatcherCore->dispatch - [line 58 - admin/index.php]

i nie pokazuje produktów

 

Hosting Home.pl

klifort

klifort

Witam

Zawsze kiedy wchodzę w produkty (BackOffice), jest błąd

Złe zapytanie SQL
MySQL server has gone away 

kiedy w defines.inc.php - _PS_MODE_DEV_', true

MySQL server has gone away

SELECT
								a.`id_product`, b.`name` AS `name`, `reference`, a.`price` AS `price`, sa.`active` AS `active`
			, shop.`name` AS `shopname`, a.`id_shop_default`, image_shop.`id_image` AS `id_image`, cl.`name` AS `name_category`, sa.`price`, 0 AS `price_final`, a.`is_virtual`, pd.`nb_downloadable`, sav.`quantity` AS `sav_quantity`, sa.`active`, IF(sav.`quantity`<=0, 1, 0) AS `badge_danger`
			FROM `ps_product` a 
			LEFT JOIN `ps_product_lang` b ON (b.`id_product` = a.`id_product` AND b.`id_lang` = 1 AND b.`id_shop` = 1)
			
		LEFT JOIN `ps_stock_available` sav ON (sav.`id_product` = a.`id_product` AND sav.`id_product_attribute` = 0
		 AND sav.id_shop = 1  AND sav.id_shop_group = 0 )  JOIN `ps_product_shop` sa ON (a.`id_product` = sa.`id_product` AND sa.id_shop = a.id_shop_default)
				LEFT JOIN `ps_category_lang` cl ON (sa.`id_category_default` = cl.`id_category` AND b.`id_lang` = cl.`id_lang` AND cl.id_shop = a.id_shop_default)
				LEFT JOIN `ps_shop` shop ON (shop.id_shop = a.id_shop_default)
				LEFT JOIN `ps_image_shop` image_shop ON (image_shop.`id_product` = a.`id_product` AND image_shop.`cover` = 1 AND image_shop.id_shop = a.id_shop_default)
				LEFT JOIN `ps_image` i ON (i.`id_image` = image_shop.`id_image`)
				LEFT JOIN `ps_product_download` pd ON (pd.`id_product` = a.`id_product` AND pd.`active` = 1) 
			 WHERE 1  
			 
			 ORDER BY a.`id_product` ASC  LIMIT 0, 50


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.     }

    DbCore->displayError - [line 425 - classes/db/Db.php] - [1 Arguments]
    DbCore->query - [line 643 - classes/db/Db.php] - [1 Arguments]
    DbCore->executeS - [line 3238 - classes/controller/AdminController.php] - [3 Arguments]
    AdminControllerCore->getList - [line 409 - controllers/admin/AdminProductsController.php] - [6 Arguments]
    AdminProductsControllerCore->getList - [line 2364 - classes/controller/AdminController.php] - [1 Arguments]
    AdminControllerCore->renderList - [line 2597 - controllers/admin/AdminProductsController.php]
    AdminProductsControllerCore->renderList - [line 2065 - classes/controller/AdminController.php]
    AdminControllerCore->initContent - [line 2515 - controllers/admin/AdminProductsController.php]
    AdminProductsControllerCore->initContent - [line 189 - classes/controller/Controller.php]
    ControllerCore->run - [line 367 - classes/Dispatcher.php]
    DispatcherCore->dispatch - [line 58 - admin/index.php]

i nie pokazuje produktów

 

Hosting Home.pl

×
×
  • Create New...