When a user tries to edit a piece of content they get a redirect loop and it fails.

Comments

nicxvan’s picture

Priority: Normal » Critical

This is blocking us from making sessions live on a camp.

japerry’s picture

Status: Active » Reviewed & tested by the community

Hi there, can you elaborate a little more on this? Its in the current beta, and the user is what role? I haven't seen this issue yet, but hopefully some of those working on COD can chime in if they've seen something similar.

japerry’s picture

Status: Reviewed & tested by the community » Active
nicxvan’s picture

It is for users in any role except Super admin. User 1 can edit any content no problem but anyone else gets the loop. To test I removed all redirect modules and even entity prepopulate. If you like we can coordinate on IRC and I can give you a log in so you can see it.

Last Call Media’s picture

I'm experiencing this too.

I think it is related to the og group reference. For example

/node/72/edit?og_group_ref=1 goes redirect loop.

/node/72/edit?og_group_ref= without referencing a group id will let me edit the node.

This was an upgrade from alpha where the group was not referenced beforehand. After I referenced it from the above technique, I was able to edit it from then on.

node/add/session?og_group_ref=1 gets "The website encountered an unexpected error. Please try again later." on save. So I can't create new sessions either.

nicxvan’s picture

Do you know where the value is being added? I thought it was entity reference prepopulate, now I suspect it's from one of the custom modules though.

Last Call Media’s picture

It is added based on which event is flagged as the "Default Event."

You could prepopulate it to another event but I think a COD support module sets it to the default event if one isn't set.

nicxvan’s picture

Thanks, I knew it was pulling from the default event, I'm just not sure where the callback is coming from (there is no more cod support module)

I'm trying to change the prepopulate settings for the moment.

nicxvan’s picture

I just tried about a dozen variations of the additional behaviors options on the event field for sessions. I got redirects on all settings.

Last Call Media’s picture

Re: #8

Could it be in cod_events.module? Toward the bottom.

    // If there's a default event and the form doesn't have a default value, reload with the default event.
    // TODO: This would probably be better with just a drupal_rebuild_form, but I couldn't get that to work. :(
    if ($default_event && empty($form['og_group_ref']['und'][0]['default']['#default_value'])) {
      drupal_goto(current_path(), array('query' => array('og_group_ref' => $default_event)));
    }
japerry’s picture

Status: Active » Fixed

This was actually fixed with the commit below, and we'll roll a BETA2 out so people can get this pesky issue resolved :-)

http://cgit.drupalcode.org/cod_support/commit/?id=3b3ea4eec8a1a65db079e2...

Status: Fixed » Closed (fixed)

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