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
Comment #1
jchatard commentedHi Tim,
Even though I can't know for sure where this comes from. I think this could be related to some timeout issues, ie:
So it's confirmed that the app will shutdown the connection after 3 minutes.
Thank you,
Jérémy
Comment #2
timaholt commentedI'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
Comment #3
timaholt commentedAnother 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.
Comment #4
timaholt commentedOk 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
Comment #5
jchatard commentedYou should comment the check here, in drupad.module (talking 6.x):
- drupad_authorize()
- drupad_init(), the first if statment
Comment the user agent check :-)
Comment #6
timaholt commentedDuh that would definitely be easier, i will try it that way :-)
Comment #7
jchatard commentedFeel free to reopen if you still have problem :-)