Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
MySQL Query Error! при переходе в список парсеровshs.parser.5.9.2
*** Скрытый текст не может быть процитирован. ***
[Bitrix\Main\DB\SqlQueryException]
Mysql query error: (1146) Table 'shop23.b_shs_parser_result' doesn't exist (400)
SELECT
`shs_parser_result`.`ID` AS `ID`,
`shs_parser_result`.`PARSER_ID` AS `PARSER_ID`,
`shs_parser_result`.`START_LAST_TIME` AS `START_LAST_TIME`,
`shs_parser_result`.`END_LAST_TIME` AS `END_LAST_TIME`,
`shs_parser_result`.`SETTINGS` AS `SETTINGS`,
`shs_parser_result`.`STATUS` AS `STATUS`
FROM `b_shs_parser_result` `shs_parser_result`
ORDER BY `ID` DESC
/var/www/data/www/bitrix/modules/main/lib/db/mysqliconnection.php:146
#0: Bitrix\Main\DB\MysqliConnection->queryInternal(string, array, NULL)
/var/www/data/www/bitrix/modules/main/lib/db/connection.php:327
#1: Bitrix\Main\DB\Connection->query(string)
/var/www/data/www/bitrix/modules/main/lib/orm/query/query.php:3558
#2: Bitrix\Main\ORM\Query\Query->query(string)
/var/www/data/www/bitrix/modules/main/lib/orm/query/query.php:952
#3: Bitrix\Main\ORM\Query\Query->exec()
/var/www/data/www/bitrix/modules/main/lib/orm/data/datamanager.php:513
#4: Bitrix\Main\ORM\Data\DataManager::getList(array)
/var/www/data/www/bitrix/modules/shs.parser/admin/list_parser_result_admin.php:150
#5: require(string)
/var/www/data/www/bitrix/admin/list_parser_result_admin.php:1
----------
CREATE TABLE b_shs_parser_result
(
ID int(11) NOT NULL auto_increment,
PARSER_ID int(11) NULL,
SETTINGS LONGTEXT NULL,
START_LAST_TIME DATETIME NULL,
END_LAST_TIME DATETIME NULL,
STATUS int(11) NULL,
PRIMARY KEY (ID)
);
CREATE TABLE b_shs_parser_result_product
(
ID int(11) NOT NULL auto_increment,
RESULT_ID int(11) NULL,
PRODUCT_ID int(11) NULL,
OLD_PRICE decimal(18,2) NULL,
NEW_PRICE decimal(18,2) NULL,
PROPERTIES LONGTEXT NULL,
UPDATE_TIME DATETIME NULL,
PRIMARY KEY (ID)
);
insert into b_shs_parser_result_product (RESULT_ID, PRODUCT_ID, OLD_PRICE, NEW_PRICE)
values
(1, 317, 123, 456),
(2, 317, 456, 453),
(3, 317, 453, 567),
(4, 317, 567, 678),
(5, 317, 678, 789),
(6, 317, 789, 123),
(7, 317, 123, 235),
(8, 317, 235, 236),
(9, 317, 236, 487),
(10, 317, 487, 745),
(11, 317, 745, 456);
по этим подсказкам создал таблицу и насовал в нее значений - список результатов парсеров в админке заработал, но сам список парсеров выдает ошибку MySQL Query Error! без объяснения причин. кто может помочь разобраться? и это при том что дебаг включен.Решил вопрос самостоятельно:
Добавляем в БД:
Код:CREATE TABLE b_shs_parser_result ( ID int(11) NOT NULL auto_increment, PARSER_ID int(11) NULL, SETTINGS LONGTEXT NULL, START_LAST_TIME DATETIME NULL, END_LAST_TIME DATETIME NULL, STATUS int(11) NULL, PRIMARY KEY (ID) ); CREATE TABLE b_shs_parser_result_product ( ID int(11) NOT NULL auto_increment, RESULT_ID int(11) NULL, PRODUCT_ID int(11) NULL, OLD_PRICE decimal(18,2) NULL, NEW_PRICE decimal(18,2) NULL, PROPERTIES LONGTEXT NULL, UPDATE_TIME DATETIME NULL, PRIMARY KEY (ID) );
Код:insert into b_shs_parser_result_product (RESULT_ID, PRODUCT_ID, OLD_PRICE, NEW_PRICE) values (1, 317, 123, 456), (2, 317, 456, 453), (3, 317, 453, 567), (4, 317, 567, 678), (5, 317, 678, 789), (6, 317, 789, 123), (7, 317, 123, 235), (8, 317, 235, 236), (9, 317, 236, 487), (10, 317, 487, 745), (11, 317, 745, 456);
CREATE TABLE b_shs_parser
(
ID int(11) NOT NULL auto_increment,
NAME VARCHAR(255) NULL,
TYPE VARCHAR(10) DEFAULT 'rss' NOT NULL,
TYPE_OUT VARCHAR(20) DEFAULT 'iblock' NULL,
TIMESTAMP_X timestamp not null,
RSS VARCHAR(600) NULL,
SORT int(11) DEFAULT 100 NOT NULL,
ACTIVE CHAR(1) DEFAULT 'Y' NOT NULL,
IBLOCK_ID INT(18) NOT NULL,
SECTION_ID INT(18) NOT NULL,
SELECTOR VARCHAR(300) NULL,
FIRST_URL VARCHAR(300) NULL,
ENCODING VARCHAR(20) NULL,
PREVIEW_TEXT_TYPE VARCHAR(4) NULL,
DETAIL_TEXT_TYPE VARCHAR(4) NULL,
BOOL_PREVIEW_DELETE_TAG CHAR(1) NULL,
BOOL_DETAIL_DELETE_TAG CHAR(1) NULL,
PREVIEW_DELETE_TAG VARCHAR(300) NULL,
DETAIL_DELETE_TAG VARCHAR(300) NULL,
PREVIEW_FIRST_IMG CHAR(1) NULL,
DETAIL_FIRST_IMG CHAR(1) NULL,
PREVIEW_SAVE_IMG CHAR(1) NULL,
DETAIL_SAVE_IMG CHAR(1) NULL,
PREVIEW_DELETE_ELEMENT VARCHAR(300) NULL,
DETAIL_DELETE_ELEMENT VARCHAR(300) NULL,
PREVIEW_DELETE_ATTRIBUTE VARCHAR(300) NULL,
DETAIL_DELETE_ATTRIBUTE VARCHAR(300) NULL,
INDEX_ELEMENT CHAR(1) NULL,
CODE_ELEMENT CHAR(1) NULL,
RESIZE_IMAGE CHAR(1) NULL,
DATE_ACTIVE VARCHAR(10) DEFAULT 'N' NOT NULL,
DATE_PUBLIC VARCHAR(50) DEFAULT 'N' NOT NULL,
FIRST_TITLE VARCHAR(50) DEFAULT 'N' NOT NULL,
META_TITLE VARCHAR(50) DEFAULT 'N' NOT NULL,
META_DESCRIPTION VARCHAR(50) DEFAULT 'N' NOT NULL,
META_KEYWORDS VARCHAR(50) DEFAULT 'N' NOT NULL,
START_AGENT CHAR(1) NULL,
TIME_AGENT INT(11) NULL,
ACTIVE_ELEMENT CHAR(1) NULL,
START_LAST_TIME_X DATETIME NULL,
SETTINGS LONGTEXT NULL,
TMP VARCHAR(50) DEFAULT 'b_shs_parser_tmp' NOT NULL,
CATEGORY_ID int(11) DEFAULT 0 NOT NULL,
PRIMARY KEY (ID)
);
CREATE TABLE b_shs_parser_tmp
(
ID int(11) NOT NULL auto_increment,
PARSER_ID int(11) NULL,
PRODUCT_ID int(11) NULL,
PRIMARY KEY (ID)
);
CREATE TABLE b_shs_parser_tmp_old
(
ID int(11) NOT NULL auto_increment,
PARSER_ID int(11) NULL,
PRODUCT_ID int(11) NULL,
PRIMARY KEY (ID)
);
CREATE TABLE b_shs_parser_section
(
ID int(11) NOT NULL auto_increment,
TIMESTAMP_X timestamp not null,
DATE_CREATE DATETIME NULL,
ACTIVE CHAR(1) DEFAULT 'Y' NOT NULL,
SORT int(11) DEFAULT 500 NOT NULL,
NAME VARCHAR(255) NULL,
DESCRIPTION TEXT NULL,
PARENT_CATEGORY_ID INT(11) DEFAULT 0 NOT NULL,
PRIMARY KEY (ID)
);
CREATE TABLE b_shs_parser_result
(
ID int(11) NOT NULL auto_increment,
PARSER_ID int(11) NULL,
SETTINGS LONGTEXT NULL,
START_LAST_TIME DATETIME NULL,
END_LAST_TIME DATETIME NULL,
STATUS int(11) NULL,
PRIMARY KEY (ID)
);
CREATE TABLE b_shs_parser_result_product
(
ID int(11) NOT NULL auto_increment,
RESULT_ID int(11) NULL,
PRODUCT_ID int(11) NULL,
OLD_PRICE decimal(18,2) NULL,
NEW_PRICE decimal(18,2) NULL,
PROPERTIES LONGTEXT NULL,
UPDATE_TIME DATETIME NULL,
PRIMARY KEY (ID)
);