Hi,

I have the "phpBBforum Integration module" forum installed and working (version 6.x-2.0-beta7) with phpBB 3.0.5. Both work fine. phpBB is the master, and phpBB is placed inside a Drupal page. I can logon,register post and reply. Indeed we have been using this for a couple of months without any problems. That is with one exception and that is if a request a password reset. Let me walk you through what I do to get the error:

1. User goes to logon - http://mysite.com/phpbbforum
2. They get the wrong password and click on "I forgot my password"
3. They fill in the form
4. They get a new password and link
5. They go to the link, it walks through says they are activate/changed.
6. Then redirects and breaks.

- In Opera I get the message "The URL was redirected to . Please click the link to go there.", FireFox and IE just get too many redirects and stop.

I can go directly to the phpBB forums - http://mysite.com/phpBB3 - that works fine, but cannot get to any of the Drupal side ( http://mysite.com/phpbbforum or just http://mysite.com ).

Can someone explain what si going wrong or what I have missed in the set-up?

Cheers,
Nick

Comments

vb’s picture

I have reproduced this sequence on my site http://drupalbridge.org/ with beta7 installed.
No redirect issue under FF3. Please register there and try on my installation.

nickbits’s picture

Hi vb,

Thanks for the reply. I have checked out your site, registed, reset password without any problems. I don't doubt that this is not an issue with the code. Obviously this is something either with my server or my Drupal config of the module. I am assuming it is not phpBB as if I co directly to that I can login fine.

On my site I have kept all the default paths - i.e. phpbbforum, I have checked and double checked I have followed the instructions. It is only this "forgot password" that creates a problem, everything else works fine. Well it is not actually It breaks in every browser, opera, IE, FF3, etc.

Since it doen't break on yours I assume I have missed setting something up but cannot see what. Any suggestions?

Regards,
Nick

nickbits’s picture

Hi,

I have re-checked my installation and still find no problem. I am wondering if this is actually an issue with Global Redirect, similar to http://drupal.org/node/346911, and not an issue with this module. Am investigating as we speak, but need to confirm.

Regards,
Nick

nickbits’s picture

Hi,

Okay so I can confirm it is not the pathauto, url redirect or global redirect modules. I am almost certain it is a setting wrong somewhere but I cannot see what/where as everything else works fine. I have set-up a local test server with a copy of the site. Repeating the steps, that is:

  1. User goes to logon - http://mysite.com/phpbbforum
  2. They get the wrong password and click on "I forgot my password"
  3. They fill in the form
  4. They get a new password and link
  5. They go to the link, it walks through says they are activate/changed.
  6. They then enter their username and new password.
  7. Then redirects and breaks.

Two other things to note:

  • In Opera I get the message "The URL was redirected to . Please click the link to go there.", FireFox and IE just get too many redirects and stop.
  • I can go directly to the phpBB forums - http://mysite.com/phpBB3 - that works fine, but cannot get to any of the Drupal side ( http://mysite.com/phpbbforum ).

I have checked the logs and see a few issues on the access (no errors shown):

127.0.0.1 - - [09/Dec/2009:22:05:54 +0000] "POST /phpbbforum/ucp.php?mode=login&redirect=c:/www/mysite/phpBB3/../index.php/q=phpbbforum/index.php HTTP/1.1" 302 -
127.0.0.1 - - [09/Dec/2009:22:05:54 +0000] "GET /phpbbforum/index.php&sid=ea0ff81cb1a06e0f5bf9bfbb5699a491 HTTP/1.1" 302 -
127.0.0.1 - - [09/Dec/2009:22:05:55 +0000] "GET / HTTP/1.1" 302 -

PLEASE NOTE: on above, I have replace percent encoding with real codes (i.e. %2F with a /) just to make it easier to see what is going on.

The last message is continously repeated until the browser stops or is stopped from trying to access the page. It is the first line that I think is causing the issue.

Can anyone tell me what is going on or what I have done wrong?

Regards,
Nick

nickbits’s picture

Hi,

One other note, if after resetting the password, activating it, etc (i.e. step 6 above), I enter the correct username but the wrong password, the system works fine. It is only when the correct apssword for the username that has been reset is entered that the issue occurs.

Nick

vb’s picture

Nick, I have been trying to find out this issue on my pc, but still did not find. Redirection works.

nickbits’s picture

Hi vb,

This is very strange. I have tried on a fresh install and get the same thing. I have the issue on two servers so doubt it is a server issue unless it is something to do with the htaccess file. I have tried removing most other modules that I can so it would appear not to be a conflict. Just running out of ideas. I will keep looking and see if I can get any further with it.

Thanks for the help,
Nick

charlieobrian’s picture

Since I upgraded to phpBB3 3.0.6 and module phpbbforum Beta9 I have similar issues with the login process.

If the user visits the site, there are 2 possibilities:

- He has not logged in to Drupal part of the site
- He has logged in to Drupal part of the site

If he has NOT logged in, and he enters login data to Drupal login window, he will be logged in and can reach the forum perfectly.

In the other case he is logged in automatically to Drupal part, but not to phpBB3. In this case if he clicks on the "Forum" button in the menu, he gets the login page of the phpBB3. Until this everything is fine. But entering correct login data does not login user, instead he is redirected to wrong url:

http://mysite.com/phpbbforum/ucp.php?mode=login&redirect=/var/www/vhosts/mysite.com/httpdocs/phpbb3/../index.php?q=phpbbforum

although the syntax seems to correct it wont redirect to the page, but if I wipe out the directory changing part (/phpbb3/..) and manually rewrite this address to

http://mysite.com/phpbbforum/ucp.php?mode=login&redirect=/var/www/vhosts/mysite.com/httpdocs/index.php?q=phpbbforum

it works.

One more important info: This problem only exists if phpBB display way is set to In the Drupal page
If I choose In frame inside Drupal page there are no problems, but this way I lost all customization in formatting.

Now the question is: why the first url does not work?

charlieobrian’s picture

I am a little bit confused now. I made a backup of my live system and uploaded to my test system.

After changing the necessary things (paths) both in Drupal and phpBB3 it works well. The generated URL is the same in each cases, (only path differs)

http://mytestsite.com/hdf/phpbbforum/ucp.php?mode=login&redirect=/var/www/hdf/phpbb3/../index.php?q=phpbbforum
http://mysite.com/phpbbforum/ucp.php?mode=login&redirect=/var/www/vhosts/mysite.com/httpdocs/phpbb3/../index.php?q=phpbbforum

So it is definitely something else than the code in this module. Any hints?

charlieobrian’s picture

Dear nickbits,

Do you still have the issue?

nickbits’s picture

Hi,

Yes and No. Apart from upgrading phpBB from 3.0.5 to 3.0.6, I have not touched any settings or other items. I do not get the re-direction issue. However, when I request a new password, activate it, I now cannot log-in. I now think it is a sync problem between the two systems.

Nick

fizk’s picture

Status: Active » Closed (fixed)