ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Update - File uploads in IE stalls indefinitely (also, this is related to "supposedly" resolved issue)

December 28, 2011 7:09pm

Subscribe [3]
  • #1 / Dec 28, 2011 7:09pm

    Stian Karlsen

    19 posts

    This question may be related to a resolved thread. Doesn’t seem resolved for me.

    ###############################################

    Click here for my latest update regarding this issue, located further down the page.

    ###############################################

    I recently posted this topic on how IE7-9 refuses to upload files through a safe cracker form larger than >100kb without getting stuck on loading the pages for several minutes, and then finally spitting out a 500 Internal Server Error.

    It seems the problem is not only with the safecracker form, but also with EE native file manager. I have the file limit set to 1mb, and uploading images up to that size works fast and without problems in every other major browser, both on Windows and Mac (Chrome, Safari, Opera, FF).

    IE7, 8 and 9 just keeps loading, and loading and loading… nothing happens. I have tried IE in native windows installations, and on virtual machines. Same result.

    Upon inspecting the network traffic in ie9 developer tools, it’s as if the upload request just gets stuck.

    Under method it just says “pending…”, as does it under result, type, etc etc. All “pending…”. In contrast, when using the web inspector in chrome, the method immediately goes to POST/GET as it should, and the file upload commences. IE just never gets there…if the file is over 100kb, it never ever starts uploading in the first place. I dont understand this?

    Edit.

    I’m running v2.3.1 - Build: date 20111017

    UPDATE

    File uploads work through IE accessing a local MAMP server. I know what you’re thinking, then it must be my web host. At least that’s what I was thinking, but after having a lengthy conversation with hostgator support, all i get from them is “it must be the browser conflicting with the cms”.

    So here’s the situation (all of which based on the same configuration of EE):

    * Using IE i can upload images to local server, but NOT to server with hostgator.
    * Using any browser BUT IE i can upload images both locally, and to hostgator server.
    * Hostgator support is no support.
    * Since uploading to hostgator server works in everything BUT IE, I don’t understand how something could be configured wrong in EE, especially since uploading works locally as well.

    I’m tearing my hair out here. What is going on? This site is supposed to go live soon.

    UPDATE 2.

    I am using the HTML5 Boilerplate, so i figured maybe the .htaccess file could be causing some problem, but even if i remove it completely, the problem doesn’t change in any way.

    UPDATE 3.

    Server error log says this:

    [Wed Dec 28 20:08:24 2011] [error] [client MY IP] File does not exist: /home/stian/public_html/themes/cp_themes/default/images/ui-bg_highlight-hard_0_ecf1f4_1x100.png, referer: <a href="http://stiankarlsen.me/me/index.php?S=e096eb7512304ca60a0c833fcc300ac4af040189&D=cp&C=content_publish&M=entry_form&channel_id=1">http://stiankarlsen.me/me/index.php?S=e096eb7512304ca60a0c833fcc300ac4af040189&D=cp&C=content_publish&M=entry_form&channel_id=1</a>

    However the file DOES exist. Could it be that IE isn’t finding that file, and thus the whole process is halted?

    Update again… the attached image is taken from the ie9 dev tools, stuck on “pending”..

    ANOTHER UPDATE

    Sometimes i get a page cannot be displayd error, see photo.

    I have now tested this on a local hostgator and web10.

  • #2 / Dec 29, 2011 7:01am

    John Henry Donovan

    12339 posts

    Hi stiankarlsen,

    Do you have any third-party add-ons running? I can see one called cp_analytics.

    Do you get any JavaScript errors in IE?

    Other browsers can usually work with some JS errors displaying while IE would be more restrictive in that respect

    Is this a fresh install or have you upgraded the site at any time?

    Are your upload folders writeable (777)?
    Also check the _thumbs folder inside your designated upload folder. What permissions are set there?

    Can you also give the EE Wizard a run to see if it turns up anything for HostGator

  • #3 / Dec 29, 2011 7:16am

    Stian Karlsen

    19 posts

    Hey! Thanks for a quick reply 😊

    I have disabled all third party addons, and the problem persists.

    The upload dir (and the _thumbs) dir is set to 777.

    The EE Wizard returns ‘Yes’ on everything.

    This is a fresh install.

    However now that you mention it, there are js errors in IE. (See attached photo).

    PS: I have also tried a fresh install of an older EE version (2.1.3), however that produces the same result, and it does not have any js errors.

    EDIT.

    The js errors only show up whenever im on a publish entry view.

  • #4 / Dec 29, 2011 7:40am

    Stian Karlsen

    19 posts

    Sometimes the file is uploaded to the server, but the upload dialog is still stuck spinning.

    Edit.

    Also, apparently, if i change the document mode from IE9 Standards to either IE7 or IE8 Standards, the js errors go away, but the problem doesn’t change.

    Edit again.

    Oh, and I just recently came back from testing this using IE8 on a completely different machine, in a different location, and thus on a different connection, yet the problem is identical there also.

  • #5 / Dec 29, 2011 3:21pm

    Stian Karlsen

    19 posts

    #########
    # UPDATE #
    #########

    1) I installed a fresh copy of the latest EE version (stiankarlsen.me/fresh) with the agile records theme. Uploading images works fine in everything but IE. In other words, I’m getting the exact same JS errors on every publish entry form, and the file upload stalls indefinitely as per usual.

    Question 1.1: My webhost is Hostgator. Can anyone else confirm this problem with IE7-9 on this host?

    2) I installed a fresh copy of the latest EE version on my local MAMP server, also with the agile records theme. I still get the JS errors (see attached screenshot of IE9 developer tools in earlier post), however IE can now upload files just as effectively as any other browser, however this is only tested locally as MAMP is not accessible over the Internet.

    Question 2.1: Is it fair to assume that the JS errors are in fact not what is causing the file upload error in IE, but rather that there is a problem with Hostgator (although I’m having a fair amount of trouble explaining that, given that it works perfectly with every other browser

    Question 2.2: Is it more probable that there is some other configuration error in EE that I have overlooked that is causing the problems in IE? (However once again, considering I have configured nothing but install the default agile records theme, I have trouble answering this question as well.

    Basically, I’m just thinking out loud here, as this is clearly above my expertise to handle without assistance from someone much smarter than I am.

    Any further help and suggestions are most welcome!

    ——

    I have now also been able to replicate the exact same problem using XAMPP as a server.

    I am dumbfounded.

    ——

    Here is a demo of EE 2.1.0 / demo:password -> http://ee21.enginehosting.com.au/admin.php

    The developer tools in IE9 shows no errors when in publish entry view, however uploading a file seems to stall indefinitely here as well.

  • #6 / Dec 30, 2011 5:05am

    John Henry Donovan

    12339 posts

    Hi stiankarlsen,

    I am still in holiday mode with a limited support suite available to me where I am currently located until I am back next week in full force. Specifically my PC with IE9 installed and VMWare installs on my macs. I have pinged my colleagues to try and replicate this in the meantime to move this issue along. Thanks for your patience

  • #7 / Dec 30, 2011 7:51am

    Stian Karlsen

    19 posts

    I understand, I’m sure we’ll figure it out after the holidays. Have a good one 😊

  • #8 / Dec 30, 2011 9:15am

    Stian Karlsen

    19 posts

    Investigating further, I seem to be getting jquery errors in Chrome as well (tested in latest version) on the publish entry page. See attached screenshot.

    I tried replacing jquery with the latest version, but I get the same error. If i replace the minified version with the dev version of jquery, this is what sticks out as far as where things go wrong is concerned.

    jQuery fails here:

    append: function() {
    return this.domManip(arguments, true, function( elem ) {
    if ( this.nodeType === 1 ) {
    this.appendChild( elem );
    }
      });
    },

    Specifically this:

    this.appendChild( elem );

    I have no idea what this means or why it fails here. Is anybody else getting a problem with jquery in chrome? (again, see attached photo)

    Edit. Clearly this doesn’t change much since chrome works without any problems, it’s just interesting to note, and as what pointed out earlier, IE might not be as forgiving when it comes to js errors as other browsers, so this might have something to do with why ie stalls.

  • #9 / Dec 30, 2011 12:45pm

    Stian Karlsen

    19 posts

    Another update!

    I bought a plugin called Mega Upload, and when I use that, uploading files works 100%, every time. Even in IE7.

    That doesn’t solve the original problem though, nor my clients problem, as they are required to use EE file uploader thru wygwam etc, because Mega Upload cannot be implemented there.

    This is kind of good news however, since I guess we can now rule out that there’s something wrong with the server.

    (And also, the plugin requires flash, and I really don’t wanna have to rely on flash for uploading files).

  • #10 / Jan 01, 2012 2:27pm

    Sean C. Smith

    3818 posts

    Hi stiankarlsen,

    I’m on Windows 7 myself. I’m working on replicating your problem, but am currently having some spotty internet access which won’t be fixed until Tuesday or Wednesday so I may be a little slow in being able to get back to you.

    Just to make sure we’re on the same page, could you post your safecracker code here so that I can ensure that I’m using exactly what you are using. I was able to upload via IE9 in the control panel but not via safecracker. I’m not entirely convinced that it was the same issue you are experiencing so I’m going to set up a completely brand new install and try again.

    please get back to me with your code as soon as you can.

    Thank you for your patience in getting this resolved. We all really want to get this fixed up for you as quickly as possible.

    Sean

  • #11 / Jan 01, 2012 2:34pm

    Stian Karlsen

    19 posts

    Hey! I’ve successfully setup DM EECK, and when using the flash uploader in CKFinder I have zero problems uploading files in IE, even IE7 works flawlessly.

    This whole thing has kind of been a blessing in disguise. It has forced me to look for alternative solutions, and I find CKFinder to be a very convenient tool. It would still be interesting to figure out what’s going here. Maybe there is something weird going on with hostgator and ie somehow, since this is working on all my local servers. I don’t know. Seems odd though.

    Here’s my safecracker code

    {exp:safecracker channel="savnet" return="savnet#forsvunnet" safecracker_head="no" include_jquery="no" class="required"}
    <ul class="two-col-form inset-box">
     
     <li>
      <label for="title">Navn</label>
      <input type="text" name="title" class="validateEmpty">
     </li>
     
     <li>
      <label for="rase_savnet">Rase</label>
      <input type="text" name="rase_savnet" class="validateEmpty">
     </li>
     
     <li>
      <label for="omrade_savnet">Område</label>
      <input type="text" name="omrade_savnet" class="validateEmpty">
     </li>
     
     <li>
      <label for="dato_savnet">Dato</label>
      <input type="text" name="dato_savnet" class="datepicker" class="validateEmpty">
     </li>
     
     <li>
      <label for="telefon_savnet">Telefon</label>
      <input type="text" name="telefon_savnet" class="validateEmpty">
     </li>
     
     <li>
      <label for="bilde_savnet">Bilde</label>
      {field:bilde_savnet}
      <small>{instructions:bilde_savnet}</small>
     </li>
     
     <li>
      <label for="fritekst_savnet">Andre Opplysninger</label>
      <textarea name="fritekst_savnet"></textarea>
     </li>
     
     <li>
      <input type="submit" name="submit" value="Registrer" id="saefsubmit">
     </li>
    
    </ul>
    {/exp:safecracker}
  • #12 / Jan 03, 2012 7:10pm

    Sean C. Smith

    3818 posts

    stiankarlsen,

    I was able to successfully upload using your code with IE9. I did first run into some trouble and had tried changing the field type to “file” instead of “safecracker file” that then failed and I changed the field type back to “safecracker file” and everything worked fine for me.

    Could you try switching the field type like I did. Don’t create a new field, just switch the existing one.

    Sean

  • #13 / Jan 03, 2012 8:00pm

    k2zs

    114 posts

    In my honest opinion the only problem here is HostGator. I have been with them since July and can’t wait till I am able to switch to a new host.

    I have had nothing but problems with HostGator with all of my sites, both EE and non-EE sites. If you are in a shared environment there you are at the mercy of all the other customers and their bad code and over sold SQL server issues.

    More often than not, when I go to one of my sites the browser (and I’ve tried many) just sits there ans says “waiting for reply”. The browser never times out or says “page not found”, it just sits there spinning. It wasn’t happening all the time, just during high traffic conditions. I finally nailed down the problem with one of their network admins and it was due to someone elses site that should have been by all rights on a dedicated server due to the amount of bandwidth and MySQL load they were placing on the server.

    I monitor the server load and whenever it gets above 3% I can expect problems with my site. The main Gator there told me that anything below 14% is acceptable with them but at that load your sites will never load.

    Since everything in EE is db related I don’t think HostGator is an appropriate host any longer, I plan on moving to a LiquidWeb VPS environment… just my 2 cents…

  • #14 / Jan 03, 2012 8:09pm

    Sean C. Smith

    3818 posts

    Scott,

    It does sound like the issue here is with HostGator. Please do keep us informed if you need any more help.

    Sean

  • #15 / Jan 04, 2012 5:32pm

    Stian Karlsen

    19 posts

    I tried talking with hostgator support about them being the problem, but I was pretty much just shot down.

    However since this is working on my local servers with the exact same configuration, I am also starting to believe more and more in this being a hostgator problem. The funny thing is though, that it’s only happening in IE, and when I use a flash uploader instead of the ee file manager, the uploads work without hickups in IE. But then again, we all know how IE is a complete mess of a browser, so who knows what the problem is.

    Bottom line: Things are now working using ckfinders flash uploader, and to be honest, I prefer that over the EE file manager (not that theres anythng wrong with the default manager, it’s merely a preference). What I’m saying is that now that things are working, I don’t see any point in pursuing this any further, at least not at this point in time. So you can just close this thread for now 😊

    I’ll eventually get around to trying another host, and if things work then, we know it’s hostgator.

    But like I said, I’m very happy with CKFinder at the moment, so I’ll probably stick with that for the time being.

    Thanks for the help, anyway 😊

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases