Галерея-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 ,-50' 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 '-50' at line 8
Файл: /var/www/airforce/data/www/forums.airforce.ru/gallery/include/functions.inc.php - Строка: 272
Отладочная информация
Вывод отладочной информации:
показать / скрыть
Выбрать всё
USER: ------------------ Array ( [ID] => 14926c20e42a39f329d79b2aa6b0c47c [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.19 ms) [1] => SELECT name, value FROM cpg135_config [include/init.inc.php:179] (0.3 ms) [2] => SELECT * FROM cpg135_plugins ORDER BY priority [include/plugin_api.inc.php:52] (0.12 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.12 ms) [6] => SELECT aid FROM cpg135_albums WHERE moderator_group IN (3) [include/init.inc.php:272] (0.14 ms) [7] => SELECT lang_id FROM cpg135_languages WHERE enabled='YES' [include/init.inc.php:330] (0.12 ms) [8] => DELETE FROM cpg135_banned WHERE expiry < '2024-12-21 12:36:24' [include/init.inc.php:444] (0.08 ms) [9] => SELECT null FROM cpg135_banned WHERE ('18.223.158.206' LIKE ip_addr ) AND brute_force=0 LIMIT 1 [include/init.inc.php:460] (0.12 ms) [10] => SELECT user_name as user_name FROM `gallery`.cpg135_users WHERE user_id = '-1' [bridge/udb_base.inc.php:256] (0.08 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.13 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 ,-50 [include/functions.inc.php:1562] (0.12 ms) ) ========================== GET : ------------------ Array ( [album] => lastupby [cat] => 0 [page] => 3 ) ========================== 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