Search_log выдаёт ошибку
Posted: Sun Nov 19, 2017 9:11 pm
Приветствую
На слейве при постановке в темплейт
<thumb order=hits search_log=all num=1-20><a href="/?search=<!--SEARCH_QUERY-->"><!--SEARCH_QUERY--></a></thumb>
при переходе на сайт белая страница с Sorry, there was an error.
Логи поисковых запросов присутствуют. Сам поиск на сайте работает. Апдейт сделан.
В error.log запись такой ошибки
2017-11-19 20:18:42:#0 /home/alexcj/domain.com/www/xxx/includes/db_modules/mysql.php(103): db_error('SELECT rs.* F...', 1055, 'Expression #1 o...', 'db_link')
#1 /home/alexcj/domain.com/www/xxx/includes/libs/tpl_functions.php(0): db_query('SELECT rs.* F...')
#2 /home/alexcj/domain.com/www/xxx/includes/libs/tpl_functions.php(0): rot_get_items_prepare_query(Array, 0, '5', Array, false, Array)
#3 /home/alexcj/domain.com/www/xxx/includes/libs/tpl_functions.php(0): rot_get_items(Array, 0, Array)
#4 /home/alexcj/domain.com/www/xxx/tube/index.php(0): rot_create_page('index', 0, Array, Array, Array)
#5 /home/alexcj/domain.com/www/xxx/cgi/index.php(0): include('/home/alexcj/se...')
#6 {main}
Mysql error:: 1055 (Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'domain_tcms.rs.sq_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by) (db_link) in query SELECT rs.* FROM rot_search_queries as rs WHERE 1 = 1 GROUP BY rs.search_query ORDER BY rs.hits DESC LIMIT 0, 15. (http://www.domain.com)
На слейве при постановке в темплейт
<thumb order=hits search_log=all num=1-20><a href="/?search=<!--SEARCH_QUERY-->"><!--SEARCH_QUERY--></a></thumb>
при переходе на сайт белая страница с Sorry, there was an error.
Логи поисковых запросов присутствуют. Сам поиск на сайте работает. Апдейт сделан.
В error.log запись такой ошибки
2017-11-19 20:18:42:#0 /home/alexcj/domain.com/www/xxx/includes/db_modules/mysql.php(103): db_error('SELECT rs.* F...', 1055, 'Expression #1 o...', 'db_link')
#1 /home/alexcj/domain.com/www/xxx/includes/libs/tpl_functions.php(0): db_query('SELECT rs.* F...')
#2 /home/alexcj/domain.com/www/xxx/includes/libs/tpl_functions.php(0): rot_get_items_prepare_query(Array, 0, '5', Array, false, Array)
#3 /home/alexcj/domain.com/www/xxx/includes/libs/tpl_functions.php(0): rot_get_items(Array, 0, Array)
#4 /home/alexcj/domain.com/www/xxx/tube/index.php(0): rot_create_page('index', 0, Array, Array, Array)
#5 /home/alexcj/domain.com/www/xxx/cgi/index.php(0): include('/home/alexcj/se...')
#6 {main}
Mysql error:: 1055 (Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'domain_tcms.rs.sq_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by) (db_link) in query SELECT rs.* FROM rot_search_queries as rs WHERE 1 = 1 GROUP BY rs.search_query ORDER BY rs.hits DESC LIMIT 0, 15. (http://www.domain.com)