Галерея-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 ,-75' 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 '-75' at line 8
Файл: /var/www/airforce/data/www/forums.airforce.ru/gallery/include/functions.inc.php - Строка: 272
Отладочная информация
Вывод отладочной информации:
показать / скрыть
Выбрать всё
USER: ------------------ Array ( [ID] => de9788e7e1e1d9592d3e23d6ca5ce7fb [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.35 ms) [1] => SELECT name, value FROM cpg135_config [include/init.inc.php:179] (1.06 ms) [2] => SELECT * FROM cpg135_plugins ORDER BY priority [include/plugin_api.inc.php:52] (0.36 ms) [3] => DELETE FROM `gallery`.cpg135_sessions WHERE time < 1734793440 AND remember = 0 [bridge/coppermine.inc.php:251] (5.16 ms) [4] => DELETE FROM `gallery`.cpg135_sessions WHERE time < 1733587440 [bridge/coppermine.inc.php:255] (5 ms) [5] => UPDATE cpg135_config SET value = 1734797040 WHERE name = 'session_cleanup' [bridge/coppermine.inc.php:259] (0.44 ms) [6] => 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.53 ms) [7] => SELECT group_name FROM cpg135_usergroups WHERE group_id= 3 [bridge/udb_base.inc.php:327] (0.38 ms) [8] => SELECT COUNT(*) FROM cpg135_categorymap WHERE group_id in (3) [bridge/udb_base.inc.php:340] (0.35 ms) [9] => SELECT aid FROM cpg135_albums WHERE moderator_group IN (3) [include/init.inc.php:272] (0.43 ms) [10] => SELECT lang_id FROM cpg135_languages WHERE enabled='YES' [include/init.inc.php:330] (0.44 ms) [11] => DELETE FROM cpg135_banned WHERE expiry < '2024-12-21 17:04:00' [include/init.inc.php:444] (0.33 ms) [12] => SELECT null FROM cpg135_banned WHERE ('3.14.251.79' LIKE ip_addr ) AND brute_force=0 LIMIT 1 [include/init.inc.php:460] (0.48 ms) [13] => SELECT user_name as user_name FROM `gallery`.cpg135_users WHERE user_id = '-1' [bridge/udb_base.inc.php:256] (0.37 ms) [14] => 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.54 ms) [15] => 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 ,-75 [include/functions.inc.php:1562] (0.33 ms) ) ========================== GET : ------------------ Array ( [album] => lastupby [cat] => 0 [page] => 4 ) ========================== 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