Skip to:
Content
Pages
Categories
Search
Top
Bottom

Redirect loops on groups and profiles

  • @craftersuniversity

    Participant

    I just updated to BuddyPress 1.9.1, and now the members profiles and group pages cant be accessed. When i try, the only thing that happens is that the browser sais that “This webpage has a redirect loop”. I have tried deactivating all other plugins, still the same problem. This also happens when logged in. I never had this problem before i upgraded, when i had version 1.8.1, so what is going on?

    I use the latest version of WordPress (3.8). My site is at craftersu.com . In the menu you can click on “Groups” or “Members” and then click on any in the following list, and you will see this problem.

    Please help.

Viewing 21 replies - 1 through 21 (of 21 total)
  • @hnla

    Participant

    Not an issue I’ve noticed with BP. Although it oughtn’t to be theme related it’s still worth reverting to a known good theme i.e twentythirteen and seeing if issue persists, also before that try refreshing permalinks by visiting the admin screen in settings.

    @craftersuniversity

    Participant

    Sorry, but updating permalinks didn’t work. I also tried changing the theme to Twenty Eleven and remove my child theme files completely, still no dice. Then i downloaded a guaranteed BuddyPress compatible theme “X2” but the problem persisted.

    Then i got stubborn.

    I started to remove plugins one by one, making sure to revert the settings in each one to default before deactivating and deleting. Finally i had only BuddyPress, and the problem.

    So i got angry.

    I checked .htaccess and wp_config.php and made sure they where at their default settings, and i removed every folder and file from the wp_content area that wasn’t needed. The only thing i didn’t manage to remove was the problem.

    So i got furious!

    I completely deleted the whole database and FTP server space, and re-installed WordPress and BuddyPress, and then the problem was gone.

    The only problem is, i’ve spent more then 6 months building my site, making all the plugins get along with each other, and so on, starting from scratch is simply not on the table. So i got my site restored from a backup, and tried again to update BuddyPress, and the problem came back of course.

    I need to make my current installment work, and i get the feeling that the problem is somewhere in the database, what do you think?

    @henrywright

    Moderator

    I need to make my current installment work, and i get the feeling that the problem is somewhere in the database, what do you think?

    Can you try setting up a new database and try your custom theme on it? If that doen’t work then you’ll know your database isn’t where the problem is.

    @craftersuniversity

    Participant

    I’m not sure on what you mean? The only special things about my Twenty Eleven Child theme is the CSS and some minor PHP changes, but not changes that has to do with the database though.

    @henrywright

    Moderator

    @craftersuniversity

    I completely deleted the whole database and FTP server space, and re-installed WordPress and BuddyPress, and then the problem was gone.

    That indicates it is either your database or your FTP server space that is causing the problem. You’ll need to determine where exactly the problem is coming from by a process of elimination.

    The next step I’d take is to use a brand new database with your FTP server space. If the problem persists then you’ll know the problem lies with your FTP server space. If the problem resolves then you’ll know it is your database causing the problem.

    My guess is that it’ll be your files and not your database where the problem lies.

    @craftersuniversity

    Participant

    Henry Wright: I’m sorry, but my knowledge of MySQL database is non existent, i have no idea of how to do what you say i should do….

    @craftersuniversity

    Participant

    Barney
    I don’t see any such problem with my bbPress forums right now, however i had to revert to an earlier version of BuddyPress in order to make the site work, so i no longer have the problem on my site. Did you have the latest version of BuddyPress installed when you had this problem?

    @craftersuniversity

    Participant

    Did you notice any problem with viewing members profiles or groups? The reason i ask is because bbPress shouldn’t affect those areas….

    @craftersuniversity

    Participant

    It seems intriguing to be sure, how ever, i have spent so much time already on this problem, in not sure i’m willing to sacrifice another 5-6 hours of restoring my site from backups in order to test this theory…however, ill definitely think about it. At any rate, thanks for the tip.

    @adamjd

    Participant

    So many people have this issue and nobody’s figured it out. I’ve had the redirect issue for months and can’t resolve it. I’ve read through several threads and nothing works. Same issues…redirect loop pops up when trying to view a user profile.

    I’ve tried:
    1) refreshing permalinks
    2) switching themes
    3) methodically turning off one plug-in after another until all are off – it’s definitely BP
    4) Inserting the code ‘remove_action( ‘bp_template_redirect’, ‘bp_redirect_canonical’, 2 );’ in bp-custom.php (and when that didn’t work, tried bp-loader.php)
    5) I don’t see an htaccess file (with hidden files unhidden). I thought I had one – but have never added any kind of code

    @adamjd

    Participant

    Just thought I’d update this again – still no solutions…nor any responses.

    I tried exporting, then deleting all BP tables after deleting BuddyPress. Then, I re-installed BuddyPress and didn’t add the tables back. Guess what! Still…redirect loop errors.

    BuddyPress is the common denominator here. NOTHING else is a problem. At this point, the only solution is, unfortunately, abandon BuddyPress. The issue hasn’t been resolved in several updates.

    I’m looking into WP Symposium now…but will stay on the email for this thread in case someone fixes this bug.

    @adamjd

    Participant

    Tried reinstalling BP – still REDIRECT LOOP disaster. On top of that, deleting the plug-in is impossible. When I hit “Deactivate” in Safari OR Chrome, I wait – then get “Fatal error: Maximum execution time of 30 seconds exceeded in… buddypress/bp-core/bp-core-template-loader.php on line 195”

    Just a mess. Deleting all tables and manually removing the plug via ftp again. Ughhhh!

    @craftersuniversity

    Participant

    That is just dreadful, i hope you can find an old version of BuddyPress instead? Better an outdated version then no version i feel….Besides, it doesn’t seem that the authors care or know how to fix this, so you and i might have to live with the old version i am afraid….

    @adamjd

    Participant

    Thank you for the suggestion, @craftersuniversity. I think I better go with WP Symposium or another option. If BP can’t work out this issue, I’m concerned about issues I’ll run into with an older version of BP. I don’t want to be reliant on buggy software.

    I guess I’ll just see if an update claims to resolve the problem. Ughh!

    @craftersuniversity

    Participant

    I just tried deactivating, deleting, installing and activating BuddyPress, and now it seems to work with the latest version….i’m still a bit skeptical though, but why don’t you try it?

    @adamjd

    Participant

    @CraftersUniversity I did try with 1.9.2 – still got redirect errors when trying to view activity or profiles. That was after deleting everything – even the BP table in wp_options.

    @craftersuniversity

    Participant

    Too bad, i thought i had the solution for you there….

    @craftersuniversity

    Participant

    I found the problem, at least for my site. Weirdly enough, what worked for my spit image development site, did not work for my live site, so i had to do a lot of detective work.

    Try this: Install latest version of BuddyPress. Got to the FTP server and folder /wp-content/plugins/buddypress/bp-core/ and in that folder, download bp-core-actions.php. Open it in notepad, search for “add_action( ‘bp_template_redirect’, ‘bp_redirect_canonical’, 2 );” and delete that line. Save the file and upload it to the same place on the FTP server, overwriting the original. Hokus Pokus, your redirect problem should be gone.

    It took me most of my day to narrow it down to this, but finally i got BuddyPress to completely work as far as i can see. All BuddyPress pages are accessible, i can add activities and so on. Hope this works for you.

    The reason this problem popped up with the latest versions of BuddyPress is clear if you read this page where the 1.9 version update details claims that “We’ve brought back bp_redirect_canonical() for helping redirect to top level/default members sections.” Why this is needed i haven’t got the foggiest…

    @craftersuniversity

    Participant

    Dear BuddyPress Staff, why is bp_redirect_canonical() causing redirect loops?

    @plinan

    Participant

    I had the same redirect loop problem with my groups and just figured out how to fix it. I had downloaded a bp-custom.php to my plugins folder to force view of the group to user’s profile instead of activities. Removing this fixed the problem for me.

    @cjhicklin

    Participant

    That was very helpful, thank you so much!

Viewing 21 replies - 1 through 21 (of 21 total)
  • The topic ‘Redirect loops on groups and profiles’ is closed to new replies.
Skip to toolbar