Core error: Mysql error 1176: Key 'group_activationdate' doesn't exist in table 'gs'

Постим сюда все найденые ошибки
Post Reply
moteam
Posts: 91
Joined: Sat Feb 26, 2011 1:15 pm

Core error: Mysql error 1176: Key 'group_activationdate' doesn't exist in table 'gs'

Post by moteam »

Странности при выводе тумб по дате.

Если вывожу такую конструкцию:
<thumb num=1-5 order=date template=owl content_type=flash do_not_count_shows=true></thumb>
Получаю
Sorry, there was an error. Please, reload page in a minute.

А в админке вылезает

Core error: Mysql error 1176: Key 'group_activationdate' doesn't exist in table 'gs' (SELECT SQL_CALC_FOUND_ROWS gs.gallery_id, gs.thumb_id, gi.sponsor_id, gi.content_count, gi.content_type, gs.total_shows, gs.total_clicks, gs.total_ctr, gt.thumb_url, gd.*, gi.content_count, gi.crop_profile_id, gs.activation_date, gi.added_date, gi.duration, gi.url, gi.gallery_total_shows, gi.sponsor_id, gi.source_url, gi.custom_gallery FROM rot_gallery_stats71 as gs FORCE INDEX (group_activationdate) JOIN rot_gallery_info as gi on gi.gallery_id = gs.gallery_id JOIN rot_gallery_data1 as gd on gd.gallery_id = gs.gallery_id JOIN rot_thumbs as gt on gt.thumb_id = gs.thumb_id WHERE 1 = 1 AND gi.gallery_status = 'active' AND gi.gallery_type = 0 and gs.best_thumb = 'yes' and gs.group_id = 0 and gs.gallery_id NOT IN ( SELECT gallery_id FROM rot_gallery_stats71 WHERE group_id IN (3,4,173,164,163,162,172,161,160,159,171,158,157,170,156,155,154,153,152,151,150,149,148,147,146,169,145,144,143,142,141,140,139,138,137,168,136,135,134,133,132,131,130,129,128,127,126,125,124,123,122,121,120,119,118,117,116,115,114,113,112,111,110,109,108,107,106,105,104,103,102,101,100,99,98,97,96,95,94,93,92,91,90,89,88,87,86,179,85,84,83,82,81,80,79,78,77,76,75,74,73,72,71,70,69,68,67,66,65,64,63,62,61,60,59,58,57,56,55,54,53,174,52,51,50,49,48,47,46,45,44,43,42,41,40,167,39,166,38,37,178,36,35,34,33,32,31,30,177,29,28,27,26,165,25,24,23,22,21,20,19,18,5,7,8,9,10,11,12,13,14,15,16,17,175,176)) ORDER BY activation_date DESC LIMIT 0, 24# queryitems)

В мускуле такого индекса и вправду нет.
download (4).png
download (4).png (136.1 KiB) Viewed 2472 times
Причем проблема только с новыми слейвами, на старых все ок.

PS: новые слейвы устанавливаюся ручками, линкаются через админку, шаблоны заливаются через админку. (это к тому что никаких ковыряний в базе ручками не было).

PPS: конечно же, и мастер и слейвы - обновлены до последних версий.
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Core error: Mysql error 1176: Key 'group_activationdate' doesn't exist in table 'gs'

Post by admin »

что за последняя версия? какой конкретный билд?

Точно апдейты есть и на мастере и на слейвах?
именно в апдейте создается индекс
Don't forget to run script update
moteam
Posts: 91
Joined: Sat Feb 26, 2011 1:15 pm

Re: Core error: Mysql error 1176: Key 'group_activationdate' doesn't exist in table 'gs'

Post by moteam »

Вот жеж, почему-то на мастере залипло

Your Build 202104141014 (Current build: 202104141014 )
мастер

Хотя на слейве

Your Build 202104231134 (Current build: 202104231134 )
слейв

Форсанул ап на мастере, вроде помогло.
Спасибо.
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Core error: Mysql error 1176: Key 'group_activationdate' doesn't exist in table 'gs'

Post by admin »

NP
Don't forget to run script update
Post Reply