- avtorambler
-
Автор темы
-
Не в сети
- New Member
- Чем темнее, тем легче быть звездой
- Сообщений: 19
- Спасибо получено: 6
|
Интернет-магазин закрыт на техническое обслуживание, заходите позже!
Проблема с MySQL. Как узнать причину ошибки.
После обновления с версии от 1.6 и до 1.71 появилась такая штука, когда пытаешься сохранить в админке VamShopа какой либо товар или даже просто редактировать что нибудь, ничего не получается. Выпригиывет такая ошибка.
Способ решения следующий. Надо сначала исправить в файле /lang/russian/russian_db_error.php строку где есть запись
Администратор </dev/null>
на адрес своей почты, перегрузить страницу с ошибкой и на ваш адрес придет сведения об ошибке. Я себе оставил этот вариант.
Или же в корне сайта, где лежит файл index.php, создать файл mysql_db_error.log, установить права на запись для него. Опять же перегрузить страницу с ошибкой и информация об ошибке запишется в файл mysql_db_error.log. У меня он выдал такое:
MYSQL ERROR REPORT
- 02/01/2014 17:01:25
1054 - Unknown column 'products_image_description' in 'field list'
update products set products_quantity = '', products_quantity_min = '', products_quantity_max = '', products_to_xml = '', products_model = '', products_ean = '', products_price = '', products_sort = '', products_shippingtime = '', products_discount_allowed = '', products_date_available = '', products_weight = '', products_status = '', products_startpage = '', products_startpage_sort = '', products_tax_class_id = '', product_template = '', options_template = '', manufacturers_id = '', products_fsk18 = '', products_vpe_value = '', products_vpe_status = '', products_vpe = '', yml_bid = '', yml_cbid = '', products_page_url = '3903.html', products_image_description = '', group_permission_0 = '0', group_permission_1 = '0', group_permission_2 = '0', group_permission_3 = '0', products_last_modified = now() where products_id = '367'
Server Name : avtomagazin.biz.ua
Remote Address: 94.179.174.201
Requested : /admin/categories.php?cPath=27&pID=99&action=update_product
Trace Back : admin/categories.php:165(categories->insert_productarray(3) {; [0]=>; &array(0) {; }; [1]=>; &string(2) "27"; [2]=>; &string(6) "update"; }; ) => admin/includes/classes/categories.php:689(vam_db_performarray(4) {; [0]=>; &string(8) "products"; [1]=>; &array(32) {; ["products_quantity"]=>; NULL; ["products_quantity_min"]=>; NULL; ["products_quantity_max"]=>; NULL; ["products_to_xml"]=>; NULL; ["products_model"]=>; NULL; ["products_ean"]=>; NULL; ["products_price"]=>; NULL; ["products_sort"]=>; NULL; ["products_shippingtime"]=>; NULL; ["products_discount_allowed"]=>; NULL; ["products_date_available"]=>; NULL; ["products_weight"]=>; NULL; ["products_status"]=>; NULL; ["products_startpage"]=>; NULL; ["products_startpage_sort"]=>; NULL; ["products_tax_class_id"]=>; NULL; ["product_template"]=>; NULL; ["options_template"]=>; NULL; ["manufacturers_id"]=>; NULL; ["products_fsk18"]=>; NULL; ["products_vpe_value"]=>; NULL; ["products_vpe_status"]=>; NULL; ["products_vpe"]=>; NULL; ["yml_bid"]=>; NULL; ["yml_cbid"]=>; NULL; ["products_page_url"]=>; string(9) "3903.html"; ["products_image_description"]=>; NULL; ["group_permission_0"]=>; int(0); ["group_permission_1"]=>; int(0); ["group_permission_2"]=>; int(0); ["group_permission_3"]=>; int(0); ["products_last_modified"]=>; string(5) "now()"; }; [2]=>; &string(6) "update"; [3]=>; &string(19) "products_id = '367'"; }; ) => inc/vam_db_perform.inc.php:64(vam_db_queryarray(2) {; [0]=>; &string(835) "update products set products_quantity = '', products_quantity_min = '', products_quantity_max = '', products_to_xml = '', products_model = '', products_ean = '', products_price = '', products_sort = '', products_shippingtime = '', products_discount_allowed = '', products_date_available = '', products_weight = '', products_status = '', products_startpage = '', products_startpage_sort = '', products_tax_class_id = '', product_template = '', options_template = '', manufacturers_id = '', products_fsk18 = '', products_vpe_value = '', products_vpe_status = '', products_vpe = '', yml_bid = '', yml_cbid = '', products_page_url = '3903.html', products_image_description = '', group_permission_0 = '0', group_permission_1 = '0', group_permission_2 = '0', group_permission_3 = '0', products_last_modified = now() where products_id = '367'"; [1]=>; &string(7) "db_link"; }; ) => inc/vam_db_query.inc.php:34(vam_db_errorarray(3) {; [0]=>; &string(835) "update products set products_quantity = '', products_quantity_min = '', products_quantity_max = '', products_to_xml = '', products_model = '', products_ean = '', products_price = '', products_sort = '', products_shippingtime = '', products_discount_allowed = '', products_date_available = '', products_weight = '', products_status = '', products_startpage = '', products_startpage_sort = '', products_tax_class_id = '', product_template = '', options_template = '', manufacturers_id = '', products_fsk18 = '', products_vpe_value = '', products_vpe_status = '', products_vpe = '', yml_bid = '', yml_cbid = '', products_page_url = '3903.html', products_image_description = '', group_permission_0 = '0', group_permission_1 = '0', group_permission_2 = '0', group_permission_3 = '0', products_last_modified = now() where products_id = '367'"; [1]=>; &int(1054); [2]=>; &string(59) "Unknown column 'products_image_description' in 'field list'"; }; )
Из чего я понял, что вопрос заключается в описании к картинкам, которые появились с версии VamShopа 1.71. Попробовал поменять в admin/ includes/classes/categories.php, файл categories.php от версии 1.70 и все заработало. Ну что ж жыли без описания картинок и еще поживем, пока разрабы пофиксят багу.
Можете скачать файл categories.php, что бы не искать.
Это вложение скрыто для гостей.
Пожалуйста, зарегистрируйтесь или войдите, чтобы увидеть его.
Это сообщение содержит прикрепленные файлы.
Пожалуйста, войдите или зарегистрируйтесь, чтобы увидеть их.
|