+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 26
Home Access Plus+ Thread, [HAP+ v9.2] Various AJAX glitches with MyFiles in Projects:; Been setting up HAP+ today, and encountered various AJAX glitches. Server runs WS 2012 with IIS 8, ASP.NET 4.5. File ...
  1. #1
    FishCustard's Avatar
    Join Date
    Feb 2013
    Location
    Croydon
    Posts
    426
    Thank Post
    74
    Thanked 43 Times in 39 Posts
    Rep Power
    19

    [HAP+ v9.2] Various AJAX glitches with MyFiles

    Been setting up HAP+ today, and encountered various AJAX glitches. Server runs WS 2012 with IIS 8, ASP.NET 4.5.

    File uploads
    I get a 'File exists' message when I try to upload any file - the message has two spaces where the filename should be, implying a blank/null filename.
    If I click 'OK', I then get:
    Code:
    Upload of   has Failed!
    
    Value cannot be null.<br>Parameter name: No File Attached
    This is the JSON response to the existence GET check:
    Code:
    {"Actions":0,"Contents":null,"DateAccessed":null,"DateCreated":"20\/05\/2013 23:16:36","DateModified":null,"Extension":null,"Icon":"..\/images\/icons\/folder.png","Location":null,"Name":"teststudent","Permissions":{"AppendData":true,"CreateDirs":true,"Delete":true,"DeleteSubDirsOrFiles":true,"Execute":true,"FullControl":true,"ListDirs":true,"Modify":true,"ReadAttr":true,"ReadData":true,"ReadExAttr":true,"ReadExecute":true,"Traverse":true,"Write":true,"WriteAttr":true,"WriteData":true,"WriteExAttr":true},"Size":null,"Type":"File Folder"}
    I pastebinned the response to the POST request, see here: Value cannot be null.<br>Parameter name: No File Attached!

    Creating folders
    When I create a folder I get a "SyntaxError: JSON.parse: unexpected end of data" message. The folder is in fact created, but HAP doesn't update to show this until I refresh the page.

    There's no response from the associated POST request to give here.

    Thanks for any help you might be able to give.
    Last edited by FishCustard; 11th July 2013 at 04:47 PM. Reason: truncated post... weird

  2. #2

    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,649
    Thank Post
    43
    Thanked 553 Times in 461 Posts
    Rep Power
    122
    HAP+ hasn't been fully tested on Server 2012 yet. Looks like, from that, that jquery isn't working properly either, as it's not getting the data it needs to send to the server

  3. Thanks to nickbro from:

    FishCustard (11th July 2013)

  4. #3

    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,649
    Thank Post
    43
    Thanked 553 Times in 461 Posts
    Rep Power
    122
    I cannot replicate any of the above issues on my browsers (Chrome/Firefox 22/IE11 on Windows 8.1, Firefox 22/IE10 on Windows 7, Firefox 20,IE10 on Windows 8)

  5. Thanks to nickbro from:

    FishCustard (11th July 2013)

  6. #4
    FishCustard's Avatar
    Join Date
    Feb 2013
    Location
    Croydon
    Posts
    426
    Thank Post
    74
    Thanked 43 Times in 39 Posts
    Rep Power
    19
    I reinstalled HAP+ v9, but did not apply the v9.2 update, and things seem to be OK so far.

    To apply the 9.2 update the first time around, I just copied the 9.2 files into the HAP directory, overwriting what was there - is that the way to do it or am I being a twit?

    EDIT: Partial correction - the upload error appears to be resolved, but the folder creation error occurs exactly as before.
    Last edited by FishCustard; 12th July 2013 at 12:01 AM.

  7. #5
    FishCustard's Avatar
    Join Date
    Feb 2013
    Location
    Croydon
    Posts
    426
    Thank Post
    74
    Thanked 43 Times in 39 Posts
    Rep Power
    19
    Further update:

    Replacing the copy of jQuery in the ~\Scripts folder with v1.8.3 downloaded from the official site fixed the 'unexpected end of data' messages.

    To anyone else who does this, I'd strongly recommend not using v1.9.x or greater, as they made some major changes which may well break HAP. v2.x.x is 'worse' in this regard, as it has simply no support for IE 6, 7 or 8.

  8. #6

    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,649
    Thank Post
    43
    Thanked 553 Times in 461 Posts
    Rep Power
    122
    Very odd, might be an IIS8 thing, will have to investigate that

  9. #7

    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,649
    Thank Post
    43
    Thanked 553 Times in 461 Posts
    Rep Power
    122
    Ok, I've tested my install, which runs jQuery 1.10.2 and IE8 operates normally, creates folders no problem at all, in both Compat mode and normal mode.

  10. #8

    Join Date
    Apr 2013
    Location
    Birmingham
    Posts
    119
    Thank Post
    5
    Thanked 4 Times in 4 Posts
    Rep Power
    4
    Hi Nick,

    I am also getting the file upload issue since updating to 9.2, I am able to create folders but as soon as I try to upload a file using the uploader or drag and drop I get message saying the file exists and would I like to overwrite it, I click ok then I get another message saying: "Upload of has Failed! Value cannot be null.<br>Parameter name: No File Attached".

    I am running HAP+ on Windows Web Server 2008 R2 and I have tried to upload files using, IE9, Google Chrome and Firefox.

    Any suggestions?

  11. #9
    FishCustard's Avatar
    Join Date
    Feb 2013
    Location
    Croydon
    Posts
    426
    Thank Post
    74
    Thanked 43 Times in 39 Posts
    Rep Power
    19
    Did you try replacing the included version of jQuery with v1.8.3?

  12. #10

    Join Date
    Apr 2013
    Location
    Birmingham
    Posts
    119
    Thank Post
    5
    Thanked 4 Times in 4 Posts
    Rep Power
    4
    I have replaced the jquery.min.js file for v1.8.3 but still have the same issue. I have tested on my work machine using IE9 and it works correctly, my previous post was meant to say IE10 didn't work. I have also tested this morning in Chrome, Firefox and Safari, I am getting the same error in all except IE9 at the moment.

  13. #11

    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,649
    Thank Post
    43
    Thanked 553 Times in 461 Posts
    Rep Power
    122
    Did you try clearing your browser cache?

    Very odd issue as I code and test mainly against Firefox (not IE)

  14. #12

    Join Date
    Apr 2013
    Location
    Birmingham
    Posts
    119
    Thank Post
    5
    Thanked 4 Times in 4 Posts
    Rep Power
    4
    @nickbro

    I cleared the cache on my work machine in all browsers and have restarted the server it's hosted on since upgrading, I have just done a clean install of firefox on my home PC as I hadn't installed in on that machine and am still seeing the errors shown in the attached images.

    [HAP+ v9.2] Various AJAX glitches with MyFiles-hap-upload-error-1.png[HAP+ v9.2] Various AJAX glitches with MyFiles-hap-upload-error-2.png

  15. #13

    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,649
    Thank Post
    43
    Thanked 553 Times in 461 Posts
    Rep Power
    122
    @Paul-K can you try the steps from this post: 2 Problems with Home Access Plus V9.2

  16. #14

    Join Date
    Apr 2013
    Location
    Birmingham
    Posts
    119
    Thank Post
    5
    Thanked 4 Times in 4 Posts
    Rep Power
    4
    @nickbro

    I have followed the steps provided in the link you gave, the attached image shows the results. If you would like me to debug further, I would be happy to help.

    [HAP+ v9.2] Various AJAX glitches with MyFiles-debug.png

  17. #15

    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,649
    Thank Post
    43
    Thanked 553 Times in 461 Posts
    Rep Power
    122
    Ok, that didn't work, can you do the same steps but on line 973 instead and try again, only need firebug

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. HAP+ v9 - Basic CSS - Tweaking the colour scheme
    By mattgrimley in forum Home Access Plus+
    Replies: 18
    Last Post: 22nd September 2014, 01:46 PM
  2. HAP V9.0 Setup
    By itdaveh in forum Home Access Plus+
    Replies: 2
    Last Post: 23rd May 2013, 01:44 AM
  3. [HAP+][v9] Planned Features
    By nickbro in forum Home Access Plus+
    Replies: 121
    Last Post: 30th April 2013, 08:55 AM
  4. Replies: 17
    Last Post: 24th April 2013, 12:17 PM
  5. [HAP+][v9] Booking System Error
    By mrbios in forum Home Access Plus+
    Replies: 18
    Last Post: 22nd April 2013, 12:38 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •