gcfavorites / maxsite

Automatically exported from code.google.com/p/maxsite
0 stars 0 forks source link

Вывод рейтинга на главной в.0.303 #66

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Какие действия приводят к появлению ошибки?
1.Включаем плагин "Рейтинг страниц" 
2.Открываем главную страницу
3. Видим сообщение об ошибке

Ошибка БД

Error Number: 1054

Unknown column 'page_rating/page_rating_count' in 'field list'

SELECT `page_slug`, `page_rating/page_rating_count` AS page_ball,
`page_rating`, `page_rating_count`, `page_title` FROM (`page`) WHERE
`page_status` = 'publish' AND `page_date_publish` < '2009-02-20 14:52:48'
ORDER BY `page_ball` desc, `page_rating` desc LIMIT 10

На других страницах все нормально.

Original issue reported on code.google.com by Anton.Bu...@gmail.com on 20 Feb 2009 at 12:54

GoogleCodeExporter commented 9 years ago
Используйте MaxSite CMS > 0.19

Original comment by maxsite....@gmail.com on 20 Feb 2009 at 1:06

GoogleCodeExporter commented 9 years ago
так ведь 0.30 и так больше 0.19

Original comment by Anton.Bu...@gmail.com on 20 Feb 2009 at 1:25

GoogleCodeExporter commented 9 years ago
Поле page_rating_count появилось в 0.19. Нужно было 
выполнить обновление. См.
описание версии на http://max-3000.com/

Original comment by maxsite....@gmail.com on 20 Feb 2009 at 2:05

GoogleCodeExporter commented 9 years ago
у меня свежая версия и все поля на месте
надо исправить код (внимание на второй 
параметр в select):

SELECT `page_slug`, `page_rating`/`page_rating_count` AS page_ball,
`page_rating`, `page_rating_count`, `page_title` FROM (`page`) WHERE
`page_status` = 'publish' AND `page_date_publish` < '2009-02-20 14:52:48'
ORDER BY `page_ball` desc, `page_rating` desc LIMIT 10

Original comment by Anton.Bu...@gmail.com on 20 Feb 2009 at 2:14

GoogleCodeExporter commented 9 years ago
Теперь понятно. Буду смотреть.

Original comment by maxsite....@gmail.com on 20 Feb 2009 at 2:32

GoogleCodeExporter commented 9 years ago

Original comment by maxsite....@gmail.com on 20 Feb 2009 at 2:54