Jump to content

PrestaShopDatabaseException


Czarekplpl

Recommended Posts

Witam.

Chciałem dodać nowego klienta testowego klienta do sklepu i nagle pojawił się błąd 500.

Potem po włączeniu define('_PS_MODE_DEV_', true);

Pojawiła się cała strona z błędami. 

[PrestaShopDatabaseException]

Unknown column 'w.default' in 'field list'


			SELECT w.`id_wishlist`, w.`name`, w.`token`, w.`date_add`, w.`date_upd`, w.`counter`, w.`default`
			FROM `ps_wishlist` w
			WHERE `id_customer` = 13
			AND id_shop = 1
			ORDER BY w.`name` ASC

at line 635 in file classes/db/Db.php
629. 			WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
630. 		}
631. 		else if (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))
632. 		{
633. 			if ($sql)
634. 				throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
635. 			throw new PrestaShopDatabaseException($this->getMsgError());
636. 		}
637. 	}
638. 
639. 	/**
DbCore->displayError - [line 325 - classes/db/Db.php] - [1 Arguments]
DbCore->query - [line 501 - classes/db/Db.php] - [1 Arguments]
DbCore->executeS - [line 203 - modules/blockwishlist/WishList.php] - [1 Arguments]
WishList::getByIdCustomer - [line 154 - modules/blockwishlist/blockwishlist.php] - [1 Arguments]
BlockWishList->hookTop - [line 509 - classes/Hook.php] - [1 Arguments]
HookCore::exec - [line 448 - classes/controller/FrontController.php] - [1 Arguments]
FrontControllerCore->initContent - [line 37 - controllers/front/IndexController.php]
IndexControllerCore->initContent - [line 180 - classes/controller/Controller.php]
ControllerCore->run - [line 373 - classes/Dispatcher.php]
DispatcherCore->dispatch - [line 28 - index.php]

Czy ktoś mi pomoże jakoś przejść przez te błędy???

 

Pozdrawiam

Czarek.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...