Hey I'm using CCK imagefield in a content type called Photo on my test site, and I can pull up the creation form on Drupad, select an image from the phone, but when hitting submit I get stuck on the "Saving..." screen. I eventually get the "Oops" alert, but it takes probably 2 or 3 minutes to time out. Only one out of ~10 attempts was I able to upload the image successfully.

When hitting submit, the "Saving..." overlay comes up with the beginning of a progress bar, and then the progress bar disappears and it stalls out. On the successful posts, it displays erratically, ie once the progress bar went all the way across, another time it disappeared and then reappeared full.

Another wrinkle, I am using php-cgi, and had to modify my htaccess file to sign in. No php errors, no dblog errors.

This is really maddening since it does work correctly about 10-15% of the time. Anyone have any ideas?

Comments

jchatard’s picture

Hi Tim,

Even though I can't know for sure where this comes from. I think this could be related to some timeout issues, ie:

  • on the app side (it's 180 seconds, which looks very like your problem!!),
  • your web server configuration,
  • maybe you were not under Wifi, and thus the upload took very very long?

So it's confirmed that the app will shutdown the connection after 3 minutes.

  • Can you confirm that by using Wifi (less than 3 minutes to send data) the upload goes right?
  • Any server log specifying a connection closed due to timeout?

Thank you,

Jérémy

timaholt’s picture

I'm going to comb through the apache logs to see what i can find, but I am on wifi. When the upload goes through, it works very quickly (4-5 seconds max), when it doesn't, it just hangs until the Ooops screen comes up. I will respond back with more info as I dig it up.

Thanks!

Tim

timaholt’s picture

Another wrinkle as I keep testing this, sometimes I get a "Form saved!" success message, but the image doesn't post and the form shown is completely blank.

timaholt’s picture

Ok so I want to keep debugging this - digging into the app I notice that you have the user agent of the app being checked against the string 'Drupad'... I've tried faking that with my user agent switcher on firefox but so far no luck. But i figure if i hit the drupad forms via firefox properly i might be able to replicate the issue and debug it better...

So i guess my question to you is, do you have a User Agent mocked up for Firefox to simulate the app that I could try out? Or do you know what settings i'd use to set one up?

Thanks!

Tim

jchatard’s picture

You should comment the check here, in drupad.module (talking 6.x):

- drupad_authorize()
- drupad_init(), the first if statment

Comment the user agent check :-)

timaholt’s picture

Duh that would definitely be easier, i will try it that way :-)

jchatard’s picture

Status: Active » Closed (fixed)

Feel free to reopen if you still have problem :-)