Authentication problem
| Project: | phpBBforum Integration module |
| Version: | 6.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | critical |
| Assigned: | mrkeeflee |
| Status: | active |
Jump to:
I'm trying to install the D5 version of this module (to phpBB30). I followed the instructions in INSTALL.txt and then I get to somewhere around here:
6) Navigate to phpBBforum settings and enter the path to
phpBB root (path to forum's config.php file).
Save settings and ensure that phpBBforum successfully connected
to the phpBB database and you are authenticated.
And I get this message in the phpBBforum status:
Successfully locating phpBB installation.
Successfully locating modules/phpbbforum/includes/phpbb_api.php.
Successfully connected to the phpBB database.
phpBB user: Anonymous. You are not authenticated in phpBB now. Please login to phpBB and test again.
Anonymous is the default, no-login user in both phpBB and in Drupal. I can't figure out how to resolve this problem. Love some help. Thanks.

#1
After looking around, it's definitely the Anonymous user on the phpBB3 side of things that isn't authenticating. This seems strange to me because the Anonymous user is a system user, from what I can tell anyway. It's the system-created guest user. I can't see why it isn't authenticating and I can't see how to force it to authenticate. Anyone have this problem, or know how to remedy it?
#2
From INSTALL.txt
4) To test how you will be authenticated, login to your phpBB forum as admin.
5) Open new window in browser with your Drupal site, login as admin,
navigate to Administer » modules and enable the phpBBforum and profile module.
6) Navigate to phpBBforum settings and enter the path to
phpBB root (path to forum's config.php file).
Save settings and ensure that phpBBforum successfully connected
to the phpBB database and you are authenticated.
I can add only that it is assumed that you have both usernames with the same name ('admin' or your name) and the same password.
If you do not have so, change. After you have changed so and if you still see Anonymous beenig logged in phpBB and Drupal as admin, it is probably mean your settings are wrong.
You should go to phpBB settings and revise Server and qookie settings or think and do something else in your environment and settings.
#3
Thanks for the reply, it was the cookie setting. We had to change our domain a little while ago and the cookie was still set to the old one. It authenticated after I fixed that.
#4
Hi. I have exactly the same problem :
Successfully locating phpBB installation.
Successfully locating modules/phpbbforum/includes/phpbb_api.php.
Successfully connected to the phpBB database.
phpBB user: Anonymous. You are not authenticated in phpBB now. Please login to phpBB and test again.
I have drupal 5 and Idid all instructions configure this module. User Brownjeans fixed this becouse of cookie settings. I don,t know realy what about this cookies. Please help me explain this problem, easly. Thanx very much.
#5
I have the same problem...
Successfully locating phpBB installation.
Successfully locating modules/phpbbforum/includes/phpbb_api.php.
Successfully connected to the phpBB database.
phpBB user: Anonymous. You are not authenticated in phpBB now. Please login to phpBB and test again.
brownjeans, how exactly did you fix the problem? details please...
Thank you!
Solved: Here's what I did.
1. Logged into my phpBB admin control panel.
2. Went to "Server Configuration" "Cookie Settings"
3. Removed "/phpBB3" from the end of my cookie domain. ( ie: ".yourdomain.com/phpBB3" to ".yourdomain.com" )
4. Logged back into phpBB admin control panel and was authenticated.
5. Went to Drupal phpBBforum settings and ran test again and everything successful.
Successfully locating phpBB installation.
Successfully locating modules/phpbbforum/includes/phpbb_api.php.
Successfully connected to the phpBB database.
Successfully authenticated phpBB user: admin.
Hope this helps!
#6
Thx for your help. I fixed this. I reinstaled phpBB forum to ftp directory where is my drupal, thats work. THx.
#7
Seems to be a configuration problem. Maybe we should make the Instruction more simple and shorter. I had some trouble myself, as I did not activate the hidden authentication block.
#8
I still can't seem to be authenticated by phpbbforum module.
-I have exactly the same user name and password (id 1)
-Successfully locating phpBB installation.
-Successfully locating phpBB3/phpbb_api.php.
-Successfully connected to the phpBB database
Tried changing cookie settings and purging the cache. Still nothing.
#9
Try to setup properly phpBB3 Settings Cookie settings
Cookie settings
These details define the data used to send cookies to your users browsers. In most cases the default values for the cookie settings should be sufficient. If you do need to change any do so with care, incorrect settings can prevent users logging in.
Cookie settings
Cookie domain:
Cookie path:
Server settings
Server URL settings
Domain name:
The domain name this board runs from (for example: www.example.com).
Script path:
The path where phpBB is located relative to the domain name, e.g. /phpBB3.
You should also revise all phpBB3 settings that may affect the behavior of the module.
Enable Hidden authentication block, go admin -> Performance, check and disable block cache if it is enabled.
#10
Thanks vb.
I don't think I followed those directions at all but somehow it just got authenticated without me really doing anything. =/
Either way, you rock, and we don't deserve all the hard work you've put into this module. (but still, keep it up!)
#11
I'm having the same problem.
I've corrected my cookie settings but still nothing.
Can anyone help?
#12
Automatically closed -- issue fixed for two weeks with no activity.
#13
I'm still having this problem and can't seem to manage to solve it, i'm using drupal 6.
my cookie settings are :
I'm still getting this :
I've been struggling with this for ages now and am almost on the point of giving up, i really hope one of you can help me here as i love phpbb and it will be a big let down to my site if i can't integrate it.
By the way i am using a temporary doain from bluehost instead of my actual domain at the moment, i don't know if that makes a difference.
#14
mrkeeflee,
As vb mentioned above, try to set the cookie setting and server setting in your PHPBB.
For me, I changed everything to blank.
Clear the cache and it works!
Hopefully works on yours as wel
vb,
Great job man! Thanks very much
#15
Great Show Mate, it worked for me and everything is working smooth now :)
Successfully locating phpBB installation.
Successfully locating modules/phpbbforum/includes/phpbb_api.php.
Successfully connected to the phpBB database.
Successfully authenticated phpBB user: admin.
I just did the same and changed my cookie domain from example.com/phpBB3 to example.com
Thanks
Aditya
#16
I was having similar problems. I got everything set up and started seeing my Drupal accounts syncing over to phpBB but then they were suddenly logged out of Drupal and could not log back in. If I logged in with a user that had not synced to phpBB yet it worked, but the problem was that my admin accounts got locked out. I blanked the fields in the phpBB cookie settings and it fixed the problem.
Thanks for the work vb!