Issue with webform pagebreak field

leon85321 - December 29, 2008 - 23:14
Project:Ajax
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:brendoncrawford
Status:active
Description

Hello,

Whenever I create a pagebreak field with with webform, after click next page, it asks me to download a file which i do not know what it is.
I have attached an image.
The file name 5 is the form ID is what I have found.

Thank you,

Leon

AttachmentSize
bug-report.JPG19.07 KB

#1

brendoncrawford - December 30, 2008 - 06:17
Assigned to:Anonymous» brendoncrawford

leon85321,

Thanks for your feedback. I will have a look this weekend.

#2

brendoncrawford - January 4, 2009 - 22:54
Status:active» fixed

leon85321,

I believe this may be fixed now in 6.x-1.x-dev. Please wait up to 12 hours for 6.x-1.x-dev to update. Let me know if this fixes the issue.

Thanks,
Brendon

#3

leon85321 - January 5, 2009 - 19:14

Hello Brendon,

Thank you for your fix.
The newest dev version did not work for me yet.
I have tried using both firefox 3 and IE7.

In firefox 3, after click Next page, it gave me a page contains this line.
{ "status": true, "updaters": [ ], "debug": [ ], "messages_error": [ ], "messages_status": [ ], "messages_warning": [ ], "redirect": null, "preview": null }

In IE7, it still asks me to download an attachment shown in the attached screenshot and the file contains the same data as in the firefox 3.

Thank you for your support. :)

Leon

AttachmentSize
ie7-bug-report.JPG 24.42 KB

#4

brendoncrawford - January 5, 2009 - 19:41

Leon,

Can you install the Live HTTP Headers extension for Firefox3 and post the HTTP response headers? This will help me to better resolve this problem.

Thanks,
Brendon

#5

brendoncrawford - January 5, 2009 - 19:41
Status:fixed» postponed (maintainer needs more info)

#6

leon85321 - January 6, 2009 - 17:21

Helo Brendon,

I have tried it and it does work with English values only for some reason.
In my case, I am sending value in UTF-8 Chinese characters.

Here is the header information, but the values are in chinese though.

Hope this helps,

Thank you for your work :)

Leon

AttachmentSize
header-info.txt 2.63 KB

#7

brendoncrawford - January 6, 2009 - 19:04

Leon,

Thanks for posting that information. I will look into this further.

#8

brendoncrawford - January 10, 2009 - 11:50
Status:postponed (maintainer needs more info)» active

#9

brendoncrawford - January 10, 2009 - 11:53

Leon,

Does this ONLY happen with Webforms?

#10

brendoncrawford - January 10, 2009 - 11:58
Status:active» postponed (maintainer needs more info)

#11

leon85321 - January 12, 2009 - 17:40

Hi Brandon,

I will need to make some more test.

I am currently only working to webform so yes it happens only on webform for now.
I have also noticed that it does work if I created a new form after the patch.
But all previous created webforms did not work.

I will need to do some more tests and let you know the result :)

Thank you,

Leon

#12

brendoncrawford - January 12, 2009 - 20:26

Leon,

Try clearing the cache and see if it works with newer nodes. Let me know..

Thanks.

#13

brendoncrawford - February 21, 2009 - 08:41
Status:postponed (maintainer needs more info)» closed

Closing this. If the problem still occurs, please re-open.

#14

pegleglax - June 6, 2009 - 18:08
Status:closed» active

This problem still exists.... I'm using latest dev with IE8/FF3/Chrome. I enable the UI, check the form's checkbox, and the page still gets that message:

{ "status": true, "updaters": [ ], "debug": [ ], "messages_error": [ ], "messages_status": [ ], "messages_warning": [ ], "redirect": null, "preview": null }

when I try to page through the form.

#15

hummingbird - August 27, 2009 - 09:11

Confirmed pegleglax's issue on my install, too. Here's my (duplicate) ticket with more info if that helps: http://drupal.org/node/472120

#16

bouton - July 21, 2009 - 08:03

Me too. But on my own multi-page form built using a module and FAPI
ajax-6.x-1.x-dev AND ajax-6.x-1.14

#17

bouton - July 21, 2009 - 08:12

Looking in ajax.module I see this is created by function ajax_out

function ajax_out($data) {
  $buffer_len = ob_get_length();
  if ($buffer_len !== FALSE && $buffer_len > 0) {
    ob_clean();
  }
  header('HTTP/1.1 200 OK', TRUE);
  if (!array_key_exists('HTTP_X_REQUESTED_WITH', $_SERVER) &&
      $_SERVER['HTTP_X_REQUESTED_WITH'] !== 'XMLHttpRequest') {
    drupal_set_header('Content-Type: text/html; Charset=UTF-8');
    print "<textarea>";
    print drupal_to_js($data);
    print "</textarea>\n";
  }
  else {
    drupal_set_header('Content-Type: text/javascript; Charset=UTF-8');
    print drupal_to_js($data);
  }
  exit;
}

What does this mean my form is missing?

#18

bouton - July 21, 2009 - 08:14
Version:6.x-1.7» 6.x-1.x-dev

Changed module version this refers to.

#19

ravdeepchawla - August 2, 2009 - 22:12

I can confirm this.. I have a form built via the FAPI that needs to be submitted multiple times... I have an auction site and multiple bids need to be submitted via the same form...

The first time I click, the form goes fine and submits the bid. I run an AJAX call to drupal_get_form after every 5 seconds to refresh the form.

When I submit a second time, the message I get is...

{ "status": true, "updaters": [ ], "debug": [ ], "messages_error": [ ], "messages_status": [ ], "messages_warning": [ ], "redirect": null, "preview": null, "form_id": "kool_auction_bid_table_form", "options": { "enabled": true } }

Could this be because of this issue... http://drupal.org/node/63730 ?

 
 

Drupal is a registered trademark of Dries Buytaert.