The log in works and I am successfully logged in but the modal window does not go away and I am not directed to any page. If you close the window then it is like you are not logged in but if you click refresh then it shows you are logged in.

Any advice/help?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

xado’s picture

same here
any help & advice would be appreciated

vip_sa’s picture

Is this module still being maintained or should we remove it from our systems?

W.M.’s picture

same here .. the window remains open with no re-direction

vip_sa’s picture

Use the latest dev version that worked for me

hitendra52’s picture

I also have the same problem. what are fixes in dev verson? And, does it really work?

stevenx’s picture

Seems to work. But you have to choose the right jQuery version which seems to be 1.7.2

diegoj86’s picture

Issue summary: View changes

Same here, I'm trying to fix it but I'm not an expert. So far I was able to add the missing CTools JS library:

Last line in _ajax_register_include_modal:

ctools_add_js('ajax-responder', 'ajax_responder');

And replace all return array('#type' => 'ajax', '#commands' => $commands); by

    print ajax_render($commands);
    drupal_exit();

As suggested here: https://www.drupal.org/node/2030561#comment-7606451

Any ideas?

gduzanski’s picture

I have same problem. Even /user form after login does not refresh. I tried to debug and found Ajax error ajax_responder was missing. After adding it error in firebug disappeared but none of the options (refresh, default etc) work. Also tried changing jquery update and testing with different versions but no success. Please let me know if you have a solution.

PhilY’s picture

Here is how I fixed it with 7.x-4.0-rc15 release:
In ajax_register.module file, add ctools_add_js('ajax-responder'); at the end of _ajax_register_include_modal() function so the file ends like this:

/**
 * Add css and javascript for modal dialog.
 */
function _ajax_register_include_modal() {

  static $added = FALSE;
  if ($added == FALSE) {

    // Do not add css and scripts again.
    $added = TRUE;

    // Include the CTools tools that we need.
    ctools_include('modal');
    ctools_include('ajax');
    ctools_modal_add_js();

    // Create our own javascript that will be used to theme a modal.
    $ajax_register_style = array(
      'ctools-ajax-register-style' => array(
        'modalSize' => array(
          'type' => 'fixed',
          'width' => (int) trim(variable_get('ajax_register_modal_width', 550)),
          'height' => 140,
          'contentRight' => 30,
          'contentBottom' => 0,
        ),
        'modalOptions' => array(
          'opacity' => (float) variable_get('ajax_register_modal_background_opacity', '0.8'),
          'background-color' => '#' . variable_get('ajax_register_modal_background_color', '000000'),
        ),
        'closeText' => '',
        'throbber' => theme('image', array('path' => ctools_image_path('ajax-loader.gif', 'ajax_register'))),
        'animation' => 'fadeIn',
        'animationSpeed' => 'fast',
      ),
    );
    drupal_add_js($ajax_register_style, 'setting');

    // Add module css and js.
    ctools_add_css('ajax-register', 'ajax_register');
    ctools_add_js('ajax-register', 'ajax_register');
    ctools_add_js('ajax-responder'); // added to close the modal window and refresh the page
  }
}

Be warned that adding ctools_add_js('ajax-responder', 'ajax_responder'); as indicated in comment #7 triggers a JS error because the file http://yoursite/js/ajax-responder.js can't be found. So only add ctools_add_js('ajax-responder'); and it will use the file provided by cTools module.

Sounds complicated to read but easy to do: only the last line of the above code was added ;-)

boanergetz’s picture

I also have the same issue is any body can share the solution of this problem

PhilY’s picture

FileSize
365 bytes

In my comment #9, I forgot to attach the patch... here it is (for ajax_register 7.x-4.0-rc15)

PhilY’s picture

FileSize
365 bytes

Sorry, patch is good but filename is misspelled.