Having got Drupal for Facebook working successfully on a test site (easier than I thought in fact) I set out to install it on one of my non-English sites. The site has one other language installed, and I have set up the Drupal language switcher block with access only for the administrator (I don't speak Filipino!) to be able to switch the site to English.
I installed everything as on the test site: installed the SDK 3.1.1 libraries, installed the modules, modified the settings.php as instructed. I then went to switch the language from the default Filipino to English. This was when I got the infinite redirect loop (so I have not actually gotten into the module administration in order to configure it yet).
I then tried editing settings.php and commenting out the line

include "sites/all/modules/fb/fb_url_rewrite.inc";

and presto! No more problem.
When I put the line back in again the problem reappears.

Comments

Dave Cohen’s picture

You'll need that line for canvas pages and/or page tabs. For just facebook connect, you don't need it.

Do you also have global redirect module? If so, that may be the problem.

joel_guesclin’s picture

You seem to be right about global redirect. I tried switching that module off, then switching on all the DfF modules as before, and everything worked as it should. Now I have switched Global Redirect back on again, and left the "rewrite" line commented out, and it also works fine. Many thanks
Can I ask what are the possibilities of getting this fixed in DfF? For the moment I'm getting started with something relatively straightforward, but I'm planning to put Canvas pages to use eventually and it would be a shame to get caught in this. Of course it might just be an incompatibility that it is not possible to do anything about.

Dave Cohen’s picture

Title: Infinite redirect loop when using the Drupal language switcher » Infinite redirect loop when using global redirect
Category: bug » support
Status: Active » Fixed

Personally I would just not use global redirect. If that module is important to you, search it's issue queue. There are some patches attempting to make it less buggy.

I'm pretty sure there's nothing this module can do about global redirect-related issues.

joel_guesclin’s picture

Actually I'm a bit confused as to what exactly Global Redirect does. I installed it as part of a recommended package with PathAuto and Path Redirect and have not had any trouble with it up to now.
However, there seems to be a solution (at least for me) if you install the latest version (6.x-1.5) of Global Redirect, which now does not do a redirect when it is on the admin pages. Since I only want to switch languages in order to be able to understand the admin pages, this is all I need (though not very satisfactory I admit). I have also logged the issue with Global Redirect.
Many thanks for your help. I look forward to playing with Canvas Pages!

Status: Fixed » Closed (fixed)

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