I have recently installed Drupal 7.9 and phpBB 3.0.9 and the phpBBforum Integration module. I got everything up and working just fine with fresh installations... but when I restored my phpBB database from another phpBB site, that I wanted to move to the Drupal install, I can no longer log into Drupal.

The Drupal site loads just fine, but when I put my username & password in the login block and click Log in, the page just reloads with no errors, but does not log me in. I had two separate accounts setup on the site, and both of them do the same thing.

If I bypass Drupal and go directly to the phpBB installation, I can still log in there. I made sure that the passwords in phpBB were the same as I was using in Drupal, but I still can't get it to work.

So, it was working fine before I did the phpBB database restore.

Any ideas? Thanks.

Comments

mikefairbanks’s picture

OK, trying different things here... I found that if I go to /?q=admin it comes up and tells me that I don't have access, but if I then log in on that page, the admin pages load. I can then move all around inside the admin pages. But if I click home I am once again logged out.

I bypassed Drupal and created a new account directly in phpBB and tried logging in with that... no go. Then using the method above logged into the admin pages and changed Drupal to the Master Registration system, and created a test account... it reported that the account had been created in phpbb, but I was still not able to log into the home page using this new account created in Drupal. When I bypassed Drupal and checked phpbb, the new account had in fact been created. So the systems are syncing just fine.

As far as I can tell, the only thing not working for me at the moment is being able to log in on the home page.

mikefairbanks’s picture

Here is what I'm show in the "Recent Log Messages" for every log in attempt I make. So it appears it is logging me in then immediately closing the session... any ideas why?

Type - phpbbforum
Date - Saturday, November 5, 2011 - 18:41
User - admin
Location - http://midnightsunrc.dcsol.com/?q=node
Referrer - http://midnightsunrc.dcsol.com/
Message - Session closed for admin.
Severity - notice
Hostname - 209.193.47.105
Operations -

mikefairbanks’s picture

Well at least now I've verified that it is being caused by the phpbbforum integration module. If I disable this module, everything works just fine. Enabling it again and it once again stops working.

mikefairbanks’s picture

Finally solved this issue...

The cookie settings in phpBB had to point to the Drupal root. Once I updated this I was able to log into Drupal just fine.

So, the cookie domain was set to the website address, then the cookie path was set to the Drupal root... not to the phpBB folder.