Page 2 of 3

Re: Sorry, there was an error. Please, reload page in a minute.

Posted: Sun Jul 21, 2019 2:37 am
by burn
День добрый.
Аналогичная проблема.
АП не помогает.
Your Build 201907180917 (Current build: 201907180917)

Re: Sorry, there was an error. Please, reload page in a minute.

Posted: Sun Jul 21, 2019 6:14 am
by admin
burn wrote: Sun Jul 21, 2019 2:37 am День добрый.
Аналогичная проблема.
АП не помогает.
Your Build 201907180917 (Current build: 201907180917)
гадалка которая может по этому описанию угадать в чем проблема - в отпуске.

Поэтому - ulr конкретно ошибка, что в error log, script messages?

Re: Sorry, there was an error. Please, reload page in a minute.

Posted: Sun Jul 21, 2019 9:44 am
by burn
Ошибка эта при заходе на галеру (content_page)

logs/error.log

Code: Select all

2019-07-21 09:37:33:#0 /var/www/domain.com/scj/includes/db_modules/mysql.php(160): db_error('SELECT   gs.gal...', 1054, 'Unknown column ...', 'db_link')
#1 /var/www/domain.com/scj/includes/libs/tpl_tags.php(4769): db_query('SELECT   gs.gal...', 'db_link')
#2 /var/www/domain.com/scj/includes/libs/tpl_tags.php(2920): rot_get_item_execute_query('SELECT   gs.gal...', Array, Array)
#3 /var/www/domain.com/scj/includes/libs/tpl_functions.php(1797): rot_get_items(Array, 0, Array)
#4 /var/www/domain.com/scj/tube/index.php(643): rot_create_page('content_page', 0, Array, Array, Array)
#5 {main}
Mysql error:: 1054 (Unknown column 'rot_gal2tag.tag_id' in 'where clause') (db_link) in query SELECT   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_stats1 as gs  FORCE INDEX (group_id)  STRAIGHT_JOIN rot_gallery_info as gi on gi.gallery_id = gs.gallery_id
STRAIGHT_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 rot_gal2tag.tag_id IN ('10211','35601','35929','35697') and rot_gal2tag.site_id = '1'  ORDER BY  tested_thumb DESC,  gs.total_ctr DESC  LIMIT 0, 50# queryitems. (www.domain.com)

Re: Sorry, there was an error. Please, reload page in a minute.

Posted: Sun Jul 21, 2019 4:18 pm
by admin
кто то поработал руками над таблицей rot_gal2tag
советую посмотреть на нее на другом любом рабочем сайте
и потом скопировать с рабочего

Re: Sorry, there was an error. Please, reload page in a minute.

Posted: Mon Jul 22, 2019 1:39 pm
by burn
Сравнил с рабочим - одинаковые.

# mysql domain_com -e "SHOW CREATE TABLE rot_gal2tag"

Code: Select all

| Table       | Create Table                                                                                                                                                                                                                                                      | rot_gal2tag | CREATE TABLE `rot_gal2tag` (
  `gallery_id` int(10) unsigned NOT NULL,
  `site_id` int(10) unsigned NOT NULL,
  `tag_id` int(10) unsigned NOT NULL DEFAULT '0',
  KEY `tag_id` (`tag_id`),
  KEY `gallery_id` (`gallery_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 |
# mysql old_domain_com -e "SHOW CREATE TABLE rot_gal2tag"

Code: Select all

| Table       | Create Table                                                                                                                                                                                                                                                      | rot_gal2tag | CREATE TABLE `rot_gal2tag` (
  `gallery_id` int(10) unsigned NOT NULL,
  `site_id` int(10) unsigned NOT NULL,
  `tag_id` int(10) unsigned NOT NULL DEFAULT '0',
  KEY `tag_id` (`tag_id`),
  KEY `gallery_id` (`gallery_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 |

Re: Sorry, there was an error. Please, reload page in a minute.

Posted: Mon Jul 22, 2019 3:27 pm
by admin
проверьте что смотрите там

мускл говорит

Unknown column 'rot_gal2tag.tag_id'

Re: Sorry, there was an error. Please, reload page in a minute.

Posted: Tue Jul 23, 2019 2:58 am
by burn
а если в этот запрос

Code: Select all

SELECT   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_stats1 as gs  FORCE INDEX (group_id)  STRAIGHT_JOIN rot_gallery_info as gi on gi.gallery_id = gs.gallery_id STRAIGHT_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 rot_gal2tag.tag_id IN ('35551','35620','49357','35548','49358','4754','11367','35910','37041','37858','36749','18207','35728','35718') and rot_gal2tag.site_id = '1'  ORDER BY  tested_thumb DESC,  gs.total_ctr DESC  LIMIT 0, 50;
добавить

Code: Select all

JOIN rot_gal2tag on rot_gal2tag.gallery_id = gs.gallery_id
т.е. чтоб получилось

Code: Select all

SELECT   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_stats1 as gs  FORCE INDEX (group_id)  STRAIGHT_JOIN rot_gallery_info as gi on gi.gallery_id = gs.gallery_id STRAIGHT_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 JOIN rot_gal2tag on rot_gal2tag.gallery_id = gs.gallery_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 rot_gal2tag.tag_id IN ('35551','35620','49357','35548','49358','4754','11367','35910','37041','37858','36749','18207','35728','35718') and rot_gal2tag.site_id = '1'  ORDER BY  tested_thumb DESC,  gs.total_ctr DESC  LIMIT 0, 50;
то мускул сразу находит rot_gal2tag.tag_id ;)

Re: Sorry, there was an error. Please, reload page in a minute.

Posted: Tue Jul 23, 2019 11:54 am
by admin
да, сейчас заметил, действительно ..
а какой это урл без реврайта где формируется такой запрос?

Re: Sorry, there was an error. Please, reload page in a minute.

Posted: Tue Jul 23, 2019 4:52 pm
by burn

Re: Sorry, there was an error. Please, reload page in a minute.

Posted: Tue Jul 23, 2019 7:08 pm
by admin
а там какие таги скрипта?
скиньет лучше админку и конкретный урл где такое получается
слишком общий урл, если б была проблема именно на таком урле который на 99% сайтов - заметили быть намного раньше