If "Cookie cache bypass" is enabled, "One page profile" will not work. I hope I will be able to provide more details after code review.

The code of "Cookie cache bypass":

function cookie_cache_bypass_form_alter(&$form, $form_state, $form_id) {
  $form['#submit'][] = 'cookie_cache_bypass_submit';
}

function cookie_cache_bypass_submit() {
  global $cookie_domain;
  $lifetime = variable_get('cache_lifetime', 300);
  setcookie('NO_CACHE', 'Y', $_SERVER['REQUEST_TIME'] + ($lifetime + 300), '/', $cookie_domain);
}

Comments

ss81’s picture

Description of issue: all categories are shown on http://site.com/user/%/edit, but $op "update" is not generated by system. Here is the list of operations, which I see after submit (we have 2 profile categories):

  • load
  • form
  • validate
  • load
  • form
  • load
  • load
mcarbone’s picture

Title: "Cookie cache bypass" (pressflow) with "One page profile" » Custom submit handlers don't play nicely with "One page profile"
Status: Active » Needs review
StatusFileSize
new1.11 KB

Actually, this is a problem with any module that uses a custom submit handler that applies to the user_profile form. There's already a fix in place in the module specifically for simplenews doing this, so I just moved that out to have it always apply.