Галерея-Online
Галерея форума www.airforce.ru
Домой
Регистрация
Вход
Форум
Список альбомов
Последние добавления
Последние комментарии
Часто просматриваемые
Лучшие по рейтингу
Избранные
Поиск
Критическая ошибка
Произошла ошибка при обращении к базе данных.
While executing query 'SELECT r.pid, r.aid, filepath, filename, url_prefix, pwidth, pheight, filesize, ctime, r.title, r.keywords, r.votes, pic_rating, hits, caption, r.owner_id, UNIX_TIMESTAMP(msg_date) AS msg_date, msg_body, author_id, msg_author, msg_id FROM cpg135_comments AS c INNER JOIN cpg135_pictures AS r ON r.pid = c.pid INNER JOIN cpg135_albums AS a ON a.aid = r.aid WHERE (1) AND author_id = '-1' AND r.approved = 'YES' AND c.approval = 'YES' ORDER BY msg_id ASC LIMIT 0 ,-25' in include/functions.inc.php on line 1456 mySQL error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-25' at line 10
Файл: /var/www/airforce/data/www/forums.airforce.ru/gallery/include/functions.inc.php - Строка: 272
Отладочная информация
Вывод отладочной информации:
показать / скрыть
Выбрать всё
USER: ------------------ Array ( [ID] => f9ca9bb668e0969c7cddc63c0e9ed064 [am] => 1 ) ========================== USER DATA: ------------------ Array ( [user_id] => 0 [user_name] => Guest [groups] => Array ( [0] => 3 ) [group_quota] => 0 [can_rate_pictures] => 1 [can_send_ecards] => 0 [can_post_comments] => 0 [can_upload_pictures] => 0 [can_create_albums] => 0 [pub_upl_need_approval] => 1 [priv_upl_need_approval] => 1 [access_level] => 3 [disk_max] => 0 [disk_min] => 0 [has_admin_access] => 0 [group_name] => Anonymous [can_create_public_albums] => 0 [can_see_all_albums] => 0 [group_id] => 3 [allowed_albums] => Array ( ) ) ========================== Queries: ------------------ Array ( [0] => SET NAMES 'UTF8' [include/functions.inc.php:194] (0.39 ms) [1] => SELECT name, value FROM cpg135_config [include/init.inc.php:179] (1.03 ms) [2] => SELECT * FROM cpg135_plugins ORDER BY priority [include/plugin_api.inc.php:52] (0.35 ms) [3] => SELECT MAX(group_quota) AS disk_max, MIN(group_quota) AS disk_min, MAX(can_rate_pictures) AS can_rate_pictures, MAX(can_send_ecards) AS can_send_ecards, MAX(can_post_comments) AS can_post_comments, MAX(can_upload_pictures) AS can_upload_pictures, MAX(can_create_albums) AS can_create_albums, MAX(has_admin_access) AS has_admin_access, MAX(access_level) AS access_level, MIN(pub_upl_need_approval) AS pub_upl_need_approval, MIN( priv_upl_need_approval) AS priv_upl_need_approval FROM cpg135_usergroups WHERE group_id in (3) [bridge/udb_base.inc.php:323] (0.54 ms) [4] => SELECT group_name FROM cpg135_usergroups WHERE group_id= 3 [bridge/udb_base.inc.php:327] (0.39 ms) [5] => SELECT COUNT(*) FROM cpg135_categorymap WHERE group_id in (3) [bridge/udb_base.inc.php:340] (0.35 ms) [6] => SELECT aid FROM cpg135_albums WHERE moderator_group IN (3) [include/init.inc.php:272] (0.43 ms) [7] => SELECT lang_id FROM cpg135_languages WHERE enabled='YES' [include/init.inc.php:330] (0.46 ms) [8] => DELETE FROM cpg135_banned WHERE expiry < '2024-12-26 22:07:41' [include/init.inc.php:444] (0.34 ms) [9] => SELECT null FROM cpg135_banned WHERE ('3.147.77.51' LIKE ip_addr ) AND brute_force=0 LIMIT 1 [include/init.inc.php:460] (0.44 ms) [10] => SELECT user_name as user_name FROM `gallery`.cpg135_users WHERE user_id = '-1' [bridge/udb_base.inc.php:256] (0.38 ms) [11] => SELECT COUNT(*) FROM cpg135_comments AS c INNER JOIN cpg135_pictures AS r ON r.pid = c.pid INNER JOIN cpg135_albums AS a ON a.aid = r.aid WHERE (1) AND author_id = '-1' AND r.approved = 'YES' AND c.approval = 'YES' [include/functions.inc.php:1430] (0.62 ms) [12] => SELECT r.pid, r.aid, filepath, filename, url_prefix, pwidth, pheight, filesize, ctime, r.title, r.keywords, r.votes, pic_rating, hits, caption, r.owner_id, UNIX_TIMESTAMP(msg_date) AS msg_date, msg_body, author_id, msg_author, msg_id FROM cpg135_comments AS c INNER JOIN cpg135_pictures AS r ON r.pid = c.pid INNER JOIN cpg135_albums AS a ON a.aid = r.aid WHERE (1) AND author_id = '-1' AND r.approved = 'YES' AND c.approval = 'YES' ORDER BY msg_id ASC LIMIT 0 ,-25 [include/functions.inc.php:1456] (0.38 ms) ) ========================== GET : ------------------ Array ( [album] => lastcomby [cat] => 0 [page] => 2 ) ========================== POST : ------------------ Array ( ) ========================== COOKIE : ------------------ Array ( ) ==========================
Примечания
/include/functions.inc.php
Deprecated line 183: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead
/include/init.inc.php
Notice line 348: Undefined index: lang