Проблемы с сайтом
Posted: Tue Dec 05, 2023 11:01 pm
Приветствую, такие проблемы
1)
Core error: Mysql error 1267: Illegal mix of collations (utf8mb4_unicode_ci,IMPLICIT) and (utf8mb4_0900_ai_ci,IMPLICIT) for operation '=' (Notice:: Mysql and Web encoding mismatch, please contact script support)
ранее была такая же проблема, прописывал в config.php
$config["db_charset"] = 'utf8mb4';
и варнинг пропадал. в конфиге эта строка присутствует, но варнинг так и остался
2) на сайте не отображается страница с моделями
domain.com/models/
Sorry, there was an error. Please, reload page in a minute.
страница с конкретной моделью выводится норм domain.com/model/model1
сайт клон других сайтов, на котором такой проблемы нет, подскажите куда копать?
error.log
1)
Core error: Mysql error 1267: Illegal mix of collations (utf8mb4_unicode_ci,IMPLICIT) and (utf8mb4_0900_ai_ci,IMPLICIT) for operation '=' (Notice:: Mysql and Web encoding mismatch, please contact script support)
ранее была такая же проблема, прописывал в config.php
$config["db_charset"] = 'utf8mb4';
и варнинг пропадал. в конфиге эта строка присутствует, но варнинг так и остался
2) на сайте не отображается страница с моделями
domain.com/models/
Sorry, there was an error. Please, reload page in a minute.
страница с конкретной моделью выводится норм domain.com/model/model1
сайт клон других сайтов, на котором такой проблемы нет, подскажите куда копать?
error.log
Code: Select all
2023-12-05 22:50:32:#0 /var/www/user/data/www/domain.com/smartcj/includes/db_modules/mysql.php(223): db_error('SELECT md.*, m...', 1267, 'Illegal mix of ...', 'ext_db_link')
#1 /var/www/user/data/www/domain.com/smartcj/includes/libs/tpl_tags.php(7035): db_query('SELECT md.*, m...', 'ext_db_link')
#2 /var/www/user/data/www/domain.com/smartcj/includes/libs/tpl_tags.php(177): load_models(Array)
#3 /var/www/user/data/www/domain.com/smartcj/includes/libs/tpl_functions.php(398): process_model_tag(Array, Array, Array)
#4 /var/www/user/data/www/domain.com/smartcj/includes/libs/tpl_functions.php(2072): parse_template(Array, Array, NULL, Array, 0, Array)
#5 /var/www/user/data/www/domain.com/smartcj/tube/index.php(785): rot_create_page('model_list', 0, Array, Array, Array)
#6 {main}
Mysql error:: 1267 (Illegal mix of collations (utf8mb4_unicode_ci,IMPLICIT) and (utf8mb4_0900_ai_ci,IMPLICIT) for operation '=') (ext_db_link) in query SELECT md.*, m.model_id as model_id, m.model_slug, m.model_name,
gi.url, gi.gallery_id, rt.thumb_id, rt.height, rt.width, rt.thumb_url, rt.extra_thumb, rt.extra_thumb2, rt.extra_thumb3,
m.model_total_galleries, md.model_average_ctr FROM rot_models as m
JOIN rot_models_data as md ON m.model_id = md.model_id and site_id = '1' LEFT JOIN rot_gallery_info as gi on gi.url = CAST(m.model_id AS CHAR(10)) AND gi.gallery_type = 2 and gi.source_url = '1'
LEFT JOIN rot_thumbs AS rt ON rt.gallery_id = gi.gallery_id WHERE 1 = 1 AND m.model_total_galleries >= 5 ORDER BY md.model_average_ctr DESC LIMIT 0, 200 . (domain.com)