Matt_ Posted June 1, 2017 Share Posted June 1, 2017 HiWhen I attempted to modify the link list, an error appeared. The error seems to try to put custom cms content into the sql statement as a column - obviously this doesn't really exist. In the error section, I expanded the list of arguments. [PrestaShopDatabaseException]Unknown column 'custom_content' in 'field list' UPDATE `ps2_link_block_lang`SET `name` = 'Our company',`custom_content` = '[]'WHERE `id_link_block` = 2 AND `id_lang` = 1at line 744 in file classes/db/Db.php 739. if ($webservice_call && $errno) {740. $dbg = debug_backtrace();741. WebserviceRequest::getInstance()->setError(500, ' '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);742. } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) {743. if ($sql) {744. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');745. }746.747. throw new PrestaShopDatabaseException($this->getMsgError());748. }749. } DbCore->displayError - [line 378 - classes/db/Db.php] - [1 Arguments] DbCore->query - [line 554 - classes/db/Db.php] - [1 Arguments] DbCore->execute - [line 329 - modules/ps_linklist/src/LinkBlockRepository.php] - [1 Arguments] LinkBlockRepository->createOrUpdateLinkList - [line 298 - modules/ps_linklist/controllers/admin/AdminLinkWidgetController.php] - [4 Arguments] Argument [0]2Argument [1]28Argument [2]{"cms":["4"],"product":["new-products","best-sales"],"static":["contact","stores","authentication"]}Argument [3]Array([1] => [][2] => []) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now