Hi! I'm quite new to zope and I have a little problem with msie 6: I created a formulator form. When it is submitted a python script is called that validates the entries and then calls a zsql method that inserts them in a mysql table. With Mozilla, msie 5.X all works fine, but using msie 6 the entries are inserted two or three times. No error messages appear in the error_log so I have no idea where to look. (Zope version is 2.6.0, formulator version is 1.2.0) Any hints? Thanks in advance Thorsten Harms
I'm quite new to zope and I have a little problem with msie 6:
I created a formulator form. When it is submitted a python script is called that validates the entries and then calls a zsql method that inserts them in a mysql table. With Mozilla, msie 5.X all works fine, but using msie 6 the entries are inserted two or three times. No error messages appear in the error_log so I have no idea where to look.
(Zope version is 2.6.0, formulator version is 1.2.0)
Any hints?
Error messages would be unlikely in this case, since it seems that IE6 is being overzealous (ie stupid) about its POSTing. Look at the server logs (var/z2.log) and see if there are multiple requests where there should only be one. If so, it may be entirely the client's fault. Make a Python script that counts how many times it's called (increment a property on the container.) Hit that from the form you're having problems with, and from one you made yourself. Is the result the same, or how is it different? You can insert the timestamp along with your data in the ZSQL method, too. By trying out this sort of thing, you can get closer to what's actually going wrong, and where. From what you said above, it's hard to say. --jcc
J Cameron Cooper wrote:
Error messages would be unlikely in this case, since it seems that IE6 is being overzealous (ie stupid) about its POSTing.
Look at the server logs (var/z2.log) and see if there are multiple requests where there should only be one. If so, it may be entirely the client's fault. Yepp! There were multiple requests. I changed my scripts/forms to avoid this bug: Now I set a cookie first (saved=No) and check it before I insert any data. After inserting I change the cookie (saved=Yes). It surely isn't the best solution but it works.
Thanks Thorsten Harms
Thorsten Harms wrote at 2003-3-7 13:01 +0100:
I created a formulator form. When it is submitted a python script is called that validates the entries and then calls a zsql method that inserts them in a mysql table. With Mozilla, msie 5.X all works fine, but using msie 6 the entries are inserted two or three times. No error messages appear in the error_log so I have no idea where to look.
(Zope version is 2.6.0, formulator version is 1.2.0)
Any hints?
Seems, IE6 would submit the form several times???? Use a TCPLogger (e.g. Shane's "tcpwatch") to learn about the conversation between browser and your Zope. Dieter
I have a Zope app that allows users to edit invoices. The invoices are selected from a list (of hRefs) (1) User selects an Invoice from a list in order to edit it (2) There is a delay so the user *again* selects the same invoice BEFORE the first click renders the new form. (3) Everything dies and I have to restart Zope. So it seems that sucessive calls to the same methods, eg a) the zSql method that will read invoice data b) a DTML method to display an invoice form. Is crashing Zope. (I have to restart it). I realize this is a general description. But at this point I am wondering if others have experienced this kind of problem? Ideas? Suggestions? I am using K Interbase connection, Zope 2.61, Windows XP I get no error-messages. Thanks much, David
David Hassalevris wrote at 2003-3-8 12:42 -0800:
I have a Zope app that allows users to edit invoices. The invoices are selected from a list (of hRefs) (1) User selects an Invoice from a list in order to edit it (2) There is a delay so the user *again* selects the same invoice BEFORE the first click renders the new form. (3) Everything dies and I have to restart Zope.
So it seems that sucessive calls to the same methods, eg a) the zSql method that will read invoice data b) a DTML method to display an invoice form.
Is crashing Zope. (I have to restart it).
I realize this is a general description. But at this point I am wondering if others have experienced this kind of problem? Ideas? Suggestions?
I am using K Interbase connection, Zope 2.61, Windows XP
This is not normal. Maybe, a bug in your DA? Dieter
participants (4)
-
David Hassalevris -
Dieter Maurer -
J Cameron Cooper -
Thorsten Harms