Even when I'm logged in as administrator, it says it's anonymous in phpbbforum settings. What can be the problem?

CommentFileSizeAuthor
#7 cookiecache.zip1.73 KBToxid

Comments

Toxid’s picture

I gave up, uninstalled phpbbforum and phpbb3 then reinstalled it all and now it works. I still have one problem and that's when I log in on drupal, phpbb doesn't get logged on. I have to log on to phpbb3 as well.

Toxid’s picture

Status: Active » Fixed

Fixed by uninstalling and reinstalling

Toxid’s picture

I got this problem again. This time I fixed it by changing the cookie settings in phpbb. Normally the cookie domain should be .yourdomain.com. But on localhost it's just supposed to be localhost. No dot before. Then I had to clear all the browsers cookies and log in again. Then phpbbforum recognized the admin.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

designo’s picture

Title: Logged in as administrator in phpbb - phpbbforum fails the authentication test » Log in on phpbb, drupal doesn't get logged on...
Version: 6.x-2.0-beta12 » 6.x-2.0-rc1
Status: Closed (fixed) » Active
Issue tags: +Drupal, +domain, +session, +logoff, +cookie, +phpBBforum, +single login, +phpbb, +drupalwiki

Hi, when I log in on phpbb, drupal doesn't get logged on. I have to log on to drupal as well. I checked cookie settings (interesting to watch content from cookie...), parameter, how-to guide, and have installed drupal and phpbb on a new clean VM Systems as well to test this module. Any ideas?

I will create iframe in phpbb and would send login request to drupal iframe or similar as workaround. But I wouldn't like to do so. Kind regard, designo
--
[Environment: mysql 5.0.45 | phpbb 3.0.8 | drupal 6.19 | phpmyadmin 5.0.45]

Sera’s picture

With a new phpBB forum 3.0.8 (with the embedding patch) and the phpbbforum Module 6.x-2.0-rc1 I have the same problem.
When upgrading my other forums from 3.0.7-pl1 to 3.0.8 the cookie-settings works as intended.

Toxid’s picture

StatusFileSize
new1.73 KB

I recently upgraded to 3.0.8 and 6.x-2.0-rc1 too. I got some login problems as well, but I did my usual routine and it works now:

1. Use cookie.php (in the attached zip) to set the server settings. I think the cookie name needs to be different from drupal. Cookie path is always "/", at least it's always worked for me. Also make sure the servername and scriptpath are correct as well.
2. Use cache.php (also attached) to clear all phpbb cache.
3. Delete your browser cookies.

I've had log in problems many times with this module, but the steps above have solved it if all other settings are correct. Your authentication method in phpbb must be db.

I also had an error in the beginning saying that includes/auth_Db.php was missing. It was technically, since it was named auth_db (lowercase d) in phpbb. So I renamed it to auth_Db, then I got an error saying auth_db was missing, so I named it back and then I had no more errors. Perhaps it's best to even do a copy of auth_db and name it with capital D, to prevent the error in the future.

xrover’s picture

Same error here.
I have tested Toxid suggestion but without result.
Logon in drupal -> also loged in in phpbb3
Logout drupal -> loged out phpbb3

but when I login in phpbb3 I'm not loged on in drupal.

parasolx’s picture

for those who have problem like this:
1. login drupal --> phpbb login
2. logout drupal --> logout phpbb
3. logout phpbb --> logout drupal
4. login phpbb --> not login phpbb

if all settings have been done correctly, and you exposed to that problem, there is no other problem and this module work perfectly. its happen because of drupal cache.

when user login through drupal, all drupal cache will disable and sync will done towards phpbb.
when user logout either drupal/phpbb, drupal cache will activate again. so there is no conflict about logout because session drupal will detect through cookies. once cookies expired, session will off and activate drupal cache for anonymous.

the problem is when user login through phpBB, cookies creation by phpBB system, user authorize in phpBB. but when user visit any drupal page, even the cookies is there, but drupal still read from cache files not processing from server. so, drupal will ignore that cookies and not make that user login.

there is diff when user login through drupal because login page/block is read from server not from cache. thats why it can sync login session between drupal and phpbb.

so how to solve this is to DISABLE drupal cache at "admin/settings/performance" and do this:
1. disable caching mode
2. minimum life cache time -- you can set what duration since it can still applied to block cache
3. page compression -- can be on
4. and turn on css and javascript compression

by doing this, which place user is try to login, all session will sync. me also facing this problem before, so i do this, all problem solve. work in separate or embed method.

fizk’s picture

Status: Active » Closed (fixed)