[support] Can't upload Images: Getting 406 Error.

Jamie Holly hovercrafter at earthlink.net
Sun Dec 16 19:22:41 UTC 2012


You might have something else Javascript messing with it. I had a very 
similar problem last year on a client's site. Turned out it was a 
Twitter widget that messed with the AJAX calls (actual widget supplied 
by Twitter). I disabled that widget on node forms and everything started 
working fine again.

Jamie Holly
http://www.intoxination.net
http://www.hollyit.net

On 12/16/2012 12:45 PM, Pat Newberry wrote:
> Figured I give the final out come.
> I did try several types of browser and both linux and windows machines.
>
> Later I found that even if I got the error, as long as I hit save, the 
> images was actually uploaded.
>
> I found this    at drupal.org http://drupal.org/node/1369502
>
> So I turned off javascript like it said, I don't get the error.
>
> So now I turn off javascript, upload the photos, then turn it back on.
>
> Weird, but it works.
>
> Pat
>
>
>
> On 12/13/2012 2:55 PM, Jamie Holly wrote:
>> Since this appears to be only AJAX related, have you tried using 
>> another browser to see if it happens? It sounds like something in 
>> your browser messing with the AJAX request headers.
>>
>> Jamie Holly
>> http://www.intoxination.net
>> http://www.hollyit.net
>>
>> On 12/13/2012 2:37 PM, Pat Newberry wrote:
>>> Well after setting up an account my hosting site support folks send 
>>> me an email today saying  they uploaded a file and ask if I still 
>>> had the problem.
>>>
>>> I went to the node link they sent and lo and behold, I found out 
>>> that they did upload a file.
>>>
>>> Well then I tried myself, but still got the same dang message.
>>>
>>> Odd.  But then just for giggles, I pressed save and lo and behold 
>>> when I went back to the node, the image was there.
>>>
>>> So at least I have a work around.  I'm tempted to do another install 
>>> of drupal (fresh) at a higher directory level) and start from 
>>> scratch just to verify it's not my drupal installation.
>>>
>>> So to recap
>>> 1.) when I try to upload and image for my blog, I get a http 406 error
>>>
>>> Path: 
>>> /file/ajax/field_image/und/form-aqVfBkO3W3EanT1FtRcU4Vpw_EvF6JrrFNI-WSDN2yM
>>> StatusText: n/a
>>> ResponseText:  406 Not Acceptable
>>>
>>> 2.) when I try very small files (e.g. 3 kb) I do not get the error 
>>> and the file loads.
>>>
>>> 3.) If I ignore the 406  error when attempting to upload images 
>>> (closing the error alert box) , press save then go back to edit of 
>>> the node, the file / image is there and  I can then insert it the 
>>> blog posting.
>>>
>>>
>>> Very strange... Very Strange...
>>>
>>> Pat
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> On 12/12/2012 11:40 AM, Pat Newberry wrote:
>>>> Well Opened another ticket with my web hosting company .
>>>>
>>>> Since they wanted to duplicate the problem, I ended up setting up a 
>>>> dummy user on my site.
>>>> I changed permissions to allow authenticated users to create blog 
>>>> entries.
>>>>
>>>> Oddly enough I did not see when logged in as regular authenticated 
>>>> user any menu item to create a blog entry.
>>>>
>>>> So I just told them to navigate to /node/add once they are logged 
>>>> in to get to the blog entry page and try to upload a photo with a 
>>>> blog entry to duplicate the error.
>>>>
>>>> Pat
>>>>
>>>> On 12/11/2012 9:18 AM, Pat Newberry wrote:
>>>>> I did contact them and opened a ticket, but I was not sure if the 
>>>>> issue was related to Drupal or not and they didn't either so I 
>>>>> ended up closing the ticket.
>>>>>
>>>>> When I contact them again is there a specific issue I should ask 
>>>>> them to address?
>>>>>
>>>>>
>>>>> Pat
>>>>>
>>>>>
>>>>> On 12/10/2012 4:00 PM, Lenny Rogers wrote:
>>>>>> Contact your support of your web hosting
>>>>>>
>>>>>> On Mon, Dec 10, 2012 at 9:39 PM, Pat Newberry 
>>>>>> <drupal at gypsyfarm.com> wrote:
>>>>>>
>>>>>>>   A couple of weeks ago I could upload images, but now I can't. I'm
>>>>>>> getting a 406 error. At first I thought it was related to me 
>>>>>>> trying to set
>>>>>>> up a slide show gallery. I now see that even on my blog entry I 
>>>>>>> can not
>>>>>>> upload an image.
>>>>>>>
>>>>>>> Here are the Headers and such:
>>>>>>>
>>>>>>> POST 
>>>>>>> /admin/structure/views/view/image_gallery_iii/preview/page_1/ajax
>>>>>>> HTTP/1.1
>>>>>>> Host www.gypsyfarm.com
>>>>>>> User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) 
>>>>>>> Gecko/20100101
>>>>>>> Firefox/17.0
>>>>>>> Accept application/json, text/javascript, */*; q=0.01
>>>>>>> Accept-Language en-US,en;q=0.5
>>>>>>> Accept-Encoding gzip, deflate
>>>>>>> Connection keep-alive
>>>>>>> Content-Type application/x-www-form-urlencoded; charset=UTF-8
>>>>>>> X-Requested-With XMLHttpRequest
>>>>>>> Referer
>>>>>>> http://www.gypsyfarm.com/admin/structure/views/view/image_gallery_iii/ed...<http://www.gypsyfarm.com/admin/structure/views/view/image_gallery_iii/edit?render=overlay> 
>>>>>>>
>>>>>>> Content-Length 10510
>>>>>>> Cookie Drupal.toolbar.collapsed=0; Drupal.tableDrag.showWeight=0;
>>>>>>> __utma=68804615.1924210912.1334177271.1355103170.1355145954.287;
>>>>>>> __utmz=68804615.1348501291.200.7.utmcsr=pnewberry.dev.habitat.org|utmccn=(referral)|utmcmd=referral|utmcct=/blog/article109.aspx; 
>>>>>>>
>>>>>>> mp_d21cb8a9f34838c02aeec897b3728a94_mixpanel=%7B%22distinct_id%22%3A%2213b06813cb6132-0ffe7a842ff0ee8-47574134-13c680-13b06813cb7285%22%2C%22%24initial_referrer%22%3A%22http%3A%2F% 
>>>>>>>
>>>>>>> 2Fwww.gypsyfarm.com
>>>>>>> %2Fadmin%2Fstructure%2Ftypes%22%2C%22%24initial_referring_domain%22%3A% 
>>>>>>>
>>>>>>> 22www.gypsyfarm.com%22%7D;
>>>>>>> SESS6fcc60056c800253f4b9ad47fd84e52f=szAwpR3HHNEK1xq-CbX4k5UkJmaoo7r6joenItke_4o; 
>>>>>>>
>>>>>>> has_js=1; __utmb=68804615.1.10.1355145954; __utmc=68804615
>>>>>>> Pragma no-cache
>>>>>>> Cache-Control no-cache
>>>>>>>
>>>>>>> (Status-Line) HTTP/1.1 406 Not Acceptable
>>>>>>> Date Mon, 10 Dec 2012 13:27:31 GMT
>>>>>>> Server LiteSpeed
>>>>>>> Connection Keep-Alive
>>>>>>> Keep-Alive timeout=5, max=100
>>>>>>> Cache-Control private, no-cache, max-age=0
>>>>>>> Pragma no-cache
>>>>>>> Content-Type text/html
>>>>>>> Content-Length 372
>>>>>>>
>>>>>>> an AJAX HTTP error occurred.
>>>>>>> HTTP Result Code: 406
>>>>>>> Debugging information follows.
>>>>>>> Path: 
>>>>>>> /admin/structure/views/view/image_gallery_iii/preview/page_1/ajax
>>>>>>> StatusText: Not Acceptable
>>>>>>> ResponseText:
>>>>>>> 406 Not Acceptable
>>>>>>>
>>>>>>> 406 Not Acceptable
>>>>>>>
>>>>>>> This request is not acceptable
>>>>>>> Powered By LiteSpeed Web Server
>>>>>>> LiteSpeed Technologies is not responsible for administration and 
>>>>>>> contents
>>>>>>> of this web site!
>>>>>>>
>>>>>>> I'm not sure where to start to figure this out. I've Googled 406 
>>>>>>> error but
>>>>>>> nothing I read was of much help to me.
>>>>>>>
>>>>>>> Any one can help as to where I should start?
>>>>>>> I did any module I recently added related to slide shows. Again, 
>>>>>>> this
>>>>>>> seems to affect all upload of images on the site.
>>>>>>>
>>>>>>> Pat
>>>>>>>   Add new comment 
>>>>>>> <http://drupal.org/comment/reply/1862912#comment-form> ? 
>>>>>>> Categories:
>>>>>>> Post installation <http://drupal.org/forum/22>, Drupal 
>>>>>>> 7.x<http://drupal.org/taxonomy/term/120>
>>>>>>>
>>>>>>> -- 
>>>>>>> [ Drupal support list | http://lists.drupal.org/ ]
>>>>>>>
>>>>>>
>>>>>>
>>>>> I
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>>
>>
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20121216/006c96cc/attachment.html 


More information about the support mailing list