Currently in question_answer_select() it returns the response using

    $page = array('#type' => 'ajax', '#commands' => $commands);
    ajax_deliver($page);

which produces a 500 error. If I change the code to

      print ajax_render($commands);
      exit;    

it works

Comments

jcisio’s picture

Status: Active » Closed (cannot reproduce)

Basically ajax_deliver() adds some HTTP headers then does an ajax_render(). So I don't know why it returns a 500 error. There are 100 sites using D7 version, so I'm sure that it only happens in certain cases, in which I can't reproduce.

Some more information would be useful.

nevets’s picture

You can close this as I ended up using another approach.

nevets’s picture

Issue summary: View changes

Fixed typo