Проблема со входом для пользователей

Список разделов phpBBex 1.x (поддерживается) Поддержка 1.x

Описание: У вас проблемы с phpBBex 1.x и вам необходима помощь? Спрашивайте здесь!
Правила раздела: Одна тема — один вопрос или группа связанных вопросов. Обязательно формируйте внятный заголовок, максимально отражающий суть вопроса. Подробно описывайте проблему. Не забудьте указать версию phpBBex и какие моды установлены, по возможности добавьте скриншоты проблемы или ссылку на страницу с проблемой.
Модератор: Поддержка

Сообщение #1 Igareok » 02.08.2015, 20:32

Прошу помощи.
phpbbex 1.9.1.
Для тех у кого вход автоматический, проблем нет, а для тех кто гости или не зашли под своим логином, вот что отображается.
bigkuskovo_problem.jpg
Проблема

Включил debug, вот что пишет:
Код: Выделить всё
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 709: Undefined index: user_id
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 716: Undefined index: user_type
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 730: Undefined index: user_type
[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 1112: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3885)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 1112: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3885)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 1112: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3885)
[phpBB Debug] PHP Notice: in file [ROOT]/includes/auth.php on line 69: Undefined index: user_permissions
[phpBB Debug] PHP Notice: in file [ROOT]/includes/auth.php on line 405: Undefined index: user_type
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 1625: Undefined index: user_timezone
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 1626: Undefined index: user_dst
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 1921: Undefined index: user_topics_per_page
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 1926: Undefined index: user_posts_per_page
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2000: Undefined index: user_allow_viewonline
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions.php on line 1772: Undefined index: user_lastmark
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions.php on line 4459: Undefined index: username
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions.php on line 4507: Undefined index: user_new_privmsg
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions.php on line 4535: Undefined index: user_unread_privmsg
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions.php on line 4618: Undefined index: user_new_privmsg
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions.php on line 4619: Undefined index: user_unread_privmsg
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions.php on line 4620: Undefined index: user_new
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions.php on line 4680: Undefined index: user_perm_from
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2466: Undefined index: user_options
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions.php on line 4691: Undefined index: username
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4842: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3885)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4843: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3885)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4845: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3885)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4846: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3885)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4847: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3885)
Igareok M
Автор темы
Аватара
Откуда: Унгены, Молдова
Репутация: 1
С нами: 11 лет

Сообщение #2 Sumanai » 03.08.2015, 05:07

Igareok:а для тех кто гости или не зашли под своим логином, вот что отображается.
Настройте права доступа. Сейчас у вас гости не имеют прав на просмотр разделов.
Igareok:[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 709: Undefined index: user_id
Модификации кода были, кроме стилевых правок?
Sumanai M
Аватара
Репутация: 1677
С нами: 11 лет 2 месяца

Сообщение #3 Igareok » 03.08.2015, 07:18

Права доступа для гостей не менялись. Странно что в место кнопки входа, есть кнопка выхода. Войти под своим логином не получается.

Кроме стилей, код не менялся.
Проблема в базе где-то, я востанавливал одну копию, и проблема решалась.
Таблицу с сесиями чистил.
Где копать?
Igareok M
Автор темы
Аватара
Откуда: Унгены, Молдова
Репутация: 1
С нами: 11 лет

Сообщение #4 factotum » 03.08.2015, 07:40

Igareok:Где копать?
полагаю, по быстрому не получится
1. Заменить все файлы phpbbex оригинальными
2. Проверить права доступа к папкам форума
3. Сбросить кеш
Если проблема останется - копать в базе. Уже тут трудно помочь дистанционно.
factotum
Откуда: Люксембург
Репутация: 234
С нами: 11 лет 11 месяцев

Сообщение #5 Igareok » 03.08.2015, 07:48

Нашел решение на сайте поддержки phpbb :smoke:
Надо добавить пользователя в таблицу _users
Код: Выделить всё
INSERT INTO phpbb_users (user_id, user_type, group_id, username, username_clean, user_regdate, user_password, user_email, user_lang, user_style, user_rank, user_colour, user_posts, user_permissions, user_ip, user_birthday, user_lastpage, user_last_confirm_key, user_post_sortby_type, user_post_sortby_dir, user_topic_sortby_type, user_topic_sortby_dir, user_avatar, user_sig, user_sig_bbcode_uid, user_from, user_icq, user_aim, user_yim, user_msnm, user_jabber, user_website, user_occ, user_interests, user_actkey, user_newpasswd, user_allow_massemail) VALUES (1, 2, 1, 'Anonymous', 'anonymous', 0, '', '', 'en', 1, 0, '', 0, '', '', '', '', '', 't', 'a', 't', 'd', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0);

Может кому-то будет полезно.
Igareok M
Автор темы
Аватара
Откуда: Унгены, Молдова
Репутация: 1
С нами: 11 лет

Сообщение #6 Sumanai » 03.08.2015, 15:36

Igareok:Нашел решение на сайте поддержки phpbb :smoke:
Ну да, если вы удалили гостя, то это решение поможет.
Sumanai M
Аватара
Репутация: 1677
С нами: 11 лет 2 месяца


Вернуться в Поддержка 1.x



cron