Skip to:
Content
Pages
Categories
Search
Top
Bottom

Groups wont let me edit

  • @reprocessor

    Participant

    Hey guys,

    I created a group earlier on my site which went swimmingly. I’ve gone back in to edit the info and I get this error page when I click the save changes button: ‘Are you sure you want to do this? Please try again’

    If I try again it just loops the process :(

    Any help at all would be appreciated.

    Cheers,

    Phil

Viewing 7 replies - 1 through 7 (of 7 total)
  • @reprocessor

    Participant

    Now my bloody forums are on the blink – I assure you that this was all done above board, and was working yesterday, pfffft. If anyone wants a look then its gigbuddy.org and gigbuddy.org/forums

    Miffed :(

    @burtadsit

    Participant

    That message “Are you sure you want to do this? Please try again” is a nonce failure message. Did you upgrade and not upgrade the bp themes? All bp code is now ‘nonce security’ aware. If your themes don’t send these ‘nonce’ values to bp everything comes to a screeching halt.

    For example:

    <p><input type="submit" value="<?php _e( 'Save Changes', 'buddypress' ) ?> &raquo;" id="save" name="save" /></p>

    <?php wp_nonce_field( 'groups_edit_group_details' ) ?>

    That’s taken from the edit group details form. wp_nonce_field() creates a little hidden field with an access key for ‘groups_edit_group_details’ that gets compared in to a similar ‘nonce’ value generated in the actual function that does the validation and saving of group details. If they don’t match, the security check fails with that cryptic message from wpmu.

    @reprocessor

    Participant

    Hi Burt,

    Thanks for getting back to me. I upgraded the themes but i’m using my own themes, I read on the forum that you have to copy functions.php for them to work and I did this. It worked yesterday fine but today when i tried to edit a group I created it went tits up :( I’m no php techie by any means so if you can show me where and how to fix this i’d be greatly appreciative.

    Cheers,

    Phil

    @burtadsit

    Participant

    Howdy, using the functions from functions.php is required for some things to work right in bp. That has nothing to do with the new security system.

    Every form, every url that leads to any kind of maintenance capability in bp is now covered by that nonce security. If the form or url leads to changing data in bp it *must* have this feature integrated in the code. It’s a wp 2.7 thing and bp takes advantage of it.

    These wp_nonce_field() calls and wp_nonce_url() calls are everywhere. Every url, every form, every maintenance function has one now.

    To give you an idea of the scope, search for ‘wp_nonce_field’ and ‘wp_nonce_url’ in /mu-plugins

    40+ matches for ‘wp_nonce_url’

    50+ matches for ‘wp_nonce_field’

    @reprocessor

    Participant

    Sorry Burt, I was away for a while.

    What if I copy the main BP templates from the RC1 version and add my own css & images etc. should this work?

    Cheers,

    Phil

    @burtadsit

    Participant

    Yes, that would be the best way Phil. That way you have all the ‘nonce’ goodies.

    @reprocessor

    Participant

    Cheers for your help Burt :)

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Groups wont let me edit’ is closed to new replies.
Skip to toolbar