Jump to content

Solved! Help! PrestaShopDatabaseException


Recommended Posts

Hi!

 

I think my hosting company upgrade some functions in server (cause I haven'r done anything) and suddenly I can't use Stock Management to add product quantity. It did work without any problem before. It shows as follow, can any one please help me:

 

 

[PrestaShopDatabaseException]

Unknown column 'id_lang' in 'field list'
 

			SELECT id_customer, customer_email, id_shop, id_lang			FROM `ps_mailalert_customer_oos`			WHERE `id_product` = 727 AND `id_product_attribute` = 0

at line 613 in file classes/db/Db.php

607. 			WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);608. 		}609. 		else if (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))610. 		{611. 			if ($sql)612. 				throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');613. 			throw new PrestaShopDatabaseException($this->getMsgError());614. 		}615. 	}616. 617. 	/**

 

 

 

Edited by salomonsson (see edit history)
Link to comment
Share on other sites

  • 1 month later...
×
×
  • Create New...