Галерея-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 FROM cpg135_pictures AS r INNER JOIN cpg135_albums AS a ON a.aid = r.aid WHERE (1) AND r.owner_id = '-1' AND approved = 'YES' ORDER BY ctime ASC, pid ASC LIMIT 0 ,-275' in include/functions.inc.php on line 1562 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 '-275' at line 8
Файл: /var/www/airforce/data/www/forums.airforce.ru/gallery/include/functions.inc.php - Строка: 272
Отладочная информация
Вывод отладочной информации:
показать / скрыть
Выбрать всё
USER: ------------------ Array ( [ID] => 395e40c9f58ec3c80baa76490eec07d6 [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.2 ms) [1] => SELECT name, value FROM cpg135_config [include/init.inc.php:179] (0.34 ms) [2] => SELECT * FROM cpg135_plugins ORDER BY priority [include/plugin_api.inc.php:52] (0.13 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.17 ms) [4] => SELECT group_name FROM cpg135_usergroups WHERE group_id= 3 [bridge/udb_base.inc.php:327] (0.12 ms) [5] => SELECT COUNT(*) FROM cpg135_categorymap WHERE group_id in (3) [bridge/udb_base.inc.php:340] (0.11 ms) [6] => SELECT aid FROM cpg135_albums WHERE moderator_group IN (3) [include/init.inc.php:272] (0.15 ms) [7] => SELECT lang_id FROM cpg135_languages WHERE enabled='YES' [include/init.inc.php:330] (0.19 ms) [8] => DELETE FROM cpg135_banned WHERE expiry < '2024-12-26 11:55:53' [include/init.inc.php:444] (0.11 ms) [9] => SELECT null FROM cpg135_banned WHERE ('3.143.17.175' LIKE ip_addr ) AND brute_force=0 LIMIT 1 [include/init.inc.php:460] (0.14 ms) [10] => SELECT user_name as user_name FROM `gallery`.cpg135_users WHERE user_id = '-1' [bridge/udb_base.inc.php:256] (0.12 ms) [11] => SELECT COUNT(*) FROM cpg135_pictures AS r INNER JOIN cpg135_albums AS a ON a.aid = r.aid WHERE (1) AND r.owner_id = '-1' AND approved = 'YES' [include/functions.inc.php:1544] (0.16 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 FROM cpg135_pictures AS r INNER JOIN cpg135_albums AS a ON a.aid = r.aid WHERE (1) AND r.owner_id = '-1' AND approved = 'YES' ORDER BY ctime ASC, pid ASC LIMIT 0 ,-275 [include/functions.inc.php:1562] (0.13 ms) ) ========================== GET : ------------------ Array ( [album] => lastupby [cat] => 0 [page] => 12 ) ========================== 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