Jump to content
Sign in to follow this  
youwork

[Варез] Что за ошибка? Первый раз такую вижу!

Recommended Posts

Всем привет.
Кто подскажет что за ошибка такая?:

PHP Notice: Error: Unknown column 'new' in 'field list'<br />Error No: 1054<br />UPDATE oc_product SET model = '1', sku = '', upc = '', new = '1', ean = '', jan = '', isbn = '', mpn = '', location = '', quantity = '0', minimum = '1', subtract = '0', stock_status_id = '7', date_available = '2015-11-01', manufacturer_id = '0', shipping = '1', price = '25000', points = '200', weight = '0', weight_class_id = '1', length = '0', width = '0', height = '0', length_class_id = '1', status = '1', tax_class_id = '0', sort_order = '0', date_modified = NOW() WHERE product_id = '2035' in E:\home\singl-price1.by\www\system\database\mysql.php on line 50
 
Данная ошибка появилась после установки модуля: {censored}
При редактировании товара, после нажатия на кнопу "Сохранить" высвечивается белый экран. (Посмотрел логи: там выбивает эту ошибку).
 
Код 50-ой сроки MySQL.php:

public function query($sql) {
		if ($this->link) {
			$resource = mysql_query($sql, $this->link);
	
			if ($resource) {
				if (is_resource($resource)) {
					$i = 0;
			
					$data = array();
			
					while ($result = mysql_fetch_assoc($resource)) {
						$data[$i] = $result;
			
						$i++;
					}
					
					mysql_free_result($resource);
					
					$query = new stdClass();
					$query->row = isset($data[0]) ? $data[0] : array();
					$query->rows = $data;
					$query->num_rows = $i;
					
					unset($data);
					
					return $query;	
				} else {
					return true;
				}
			} else {
				trigger_error('Error: ' . mysql_error($this->link) . '<br />Error No: ' . mysql_errno($this->link) . '<br />' . $sql);
				exit();
			}
		}
  	}
Edited by shoputils
varez link

Share this post


Link to post
Share on other sites

Нех с вареза качать...

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.