computer_expert Posted July 25, 2014 Posted July 25, 2014 I realise that there has been a thread on this recently which suggests doing JSON debugging: http://www.edugeek.net/forums/home-access-plus/139194-hap-v10-problems-booking-system.html I've got HAP 10.1 up and running on server 2012R2 and have run firebug. Results are below. The only json response I can see is for the black drop down list with links to the various parts of HAP along with the custom category I have set up (Staff): [ATTACH=CONFIG]25876[/ATTACH] I also get the following errors in the console (with the all category selected in the firebug console): TypeError: (intermediate value)(...) is not a function https://localhost/hap/api/js/beforehap?/hap/bookingsystem/Cal.aspx=10.1.420.1900 Line 10 TypeError: $(...).fullCalendar is not a function https://localhost/hap/bookingsystem/Cal.aspx Line 146 TypeError: $(...).fullCalendar is not a function https://localhost/hap/bookingsystem/Cal.aspx Line 194 TypeError: $(...).fullCalendar is not a function https://localhost/hap/bookingsystem/Cal.aspx Line 194 One more thing to mention - Thank you for the excellent software!
computer_expert Posted August 11, 2014 Author Posted August 11, 2014 I have upgraded to HAP 10.2 and booking system 4.5 and it does the same as above - any ideas?
nickbro Posted August 19, 2014 Posted August 19, 2014 looks like it's failing to load the calendar jquery plugin, check that the fullCalendar js file exists in the scripts folder 1
computer_expert Posted August 20, 2014 Author Posted August 20, 2014 Hi Nick, I only have a fullcalendar.min.js file. No fullcalendar.js though. FYI I downloaded fullcalendar from the authors website (same version as used in hap) and tried the fullcalendar.js on the offchance that it would work but it didn't.
nickbro Posted August 20, 2014 Posted August 20, 2014 hmm, that's for the calendar page not the default page, have you set up your resources in the config section yet? There should be some JSON queries going out to request bookings available for each resource. 1
computer_expert Posted August 20, 2014 Author Posted August 20, 2014 Yep, the resources have been populated (as well as rooms and a few subjects too)
nickbro Posted August 20, 2014 Posted August 20, 2014 Can you provide that section of the hapConfig.xml file please?
computer_expert Posted September 11, 2014 Author Posted September 11, 2014 Hi Nick, I have sent you a PM containing the room booking section from hapconfig.xml
nickbro Posted September 11, 2014 Posted September 11, 2014 Check your AD groups you are showing to by using the api call /hap/api/ad/roles/{username}. It'll give you a JSON list of role names which that user is a member of in HAP+'s eyes 1
computer_expert Posted September 12, 2014 Author Posted September 12, 2014 Thanks Nick. Tried that and it returns an error about an incorrect username and password: {"FirstName":null,"SiteName":null,"Token1":null,"Token2":"System.DirectoryServices.DirectoryServicesCOMException (0x8007052E): The user name or password is incorrect.\u000d\u000a\u000d\u000a I have verified that the hap account password is indeed correct in setup.aspx. (I have also tried setting up hap on both a windows 7 machine and another 2012r2 machine on my test domain at home and both had the same result when using a domain admin account)
nickbro Posted September 16, 2014 Posted September 16, 2014 ok, I think I'm running an alpha build with new AD apis
Jawloms Posted September 18, 2014 Posted September 18, 2014 Thanks Nick. Tried that and it returns an error about an incorrect username and password: {"FirstName":null,"SiteName":null,"Token1":null,"Token2":"System.DirectoryServices.DirectoryServicesCOMException (0x8007052E): The user name or password is incorrect.\u000d\u000a\u000d\u000a I have verified that the hap account password is indeed correct in setup.aspx. (I have also tried setting up hap on both a windows 7 machine and another 2012r2 machine on my test domain at home and both had the same result when using a domain admin account) Did you solve this as I am getting the same error when I try the /hap/api/ad/roles/username thing. Stuart
nickbro Posted September 18, 2014 Posted September 18, 2014 It's part of an alpha version of 10.3, if you download the latest source code and build hap.ad it's part of that
Jawloms Posted September 18, 2014 Posted September 18, 2014 If it's part of an Alpha, how come I've got it as I installed the "HAP+ v10.0 Final". And sorry but I don't know what you mean by build hap.ad.
nickbro Posted September 18, 2014 Posted September 18, 2014 v10.0 is out of date, v10.2 is the current version, but internal alpha releases are currently out with the build number v10.3. 10.3 is due out at the end of the month once I finish fixing some more bugs. The current release isn't giving the response it should do.
Peter_TVS Posted October 1, 2014 Posted October 1, 2014 For anyone else experiencing this issue with the Booking System Weekview page (Cal.aspx), I have managed to get it to work with the Booking System 4.5 and HAP 10.4 Core. It looks like for some reason, the copy of the FullCalendar JavaScript file is being corrupted when it is loaded by the beforehap JavaScript tag (perhaps something to do with how it is being minifed?). I needed to edit ~/BookingSystem/Cal.aspx:. Under: Add this line: This loads another copy of the correct version of FullCalendar, which is not corrupted, at the beginning of the page, so the rest of the JavaScript on the page will function. Hope this helps, until an update is available! 1
computer_expert Posted October 2, 2014 Author Posted October 2, 2014 For anyone else experiencing this issue with the Booking System Weekview page (Cal.aspx), I have managed to get it to work with the Booking System 4.5 and HAP 10.4 Core. Perfect, Thanks! I've tested it on a test install of HAP 10.2 and it works perfectly. I can't remember what version of the booking system my test instance uses but it is not the latest.
nickbro Posted October 7, 2014 Posted October 7, 2014 Ok, I've done some testing and it's a problem with the updated full calendar plugin, they removed some stuff, annoyingly. Attached is the fix, it includes source code so you will just need to copy the dlls, css, js and aspx pages into the correct foldersHAP Alpha.zip 1
computer_expert Posted October 28, 2014 Author Posted October 28, 2014 I've been really busy over the last few weeks, but I've just managed to upgrade HAP to 10.5 and applied the fix in the attachment you posted (which worked perfectly!). Thanks again for all your help Nick (and Peter too for the temporary fix).
nickbro Posted October 28, 2014 Posted October 28, 2014 The fix above is older than the releases on codeplex just so you know 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now