Jump to content

Recommended Posts

Posted

Morning,

Summer jobs means updating all the systems we use.

I have just updated ClassroomBookings to v2.6.4 and have come across an issue with "Enable Multiple Selection" when booking rooms.

 

With this option unticked, when I click on a period to book it it comes up with the booking information page like I'm guessing it should, but when the option is ticket and I select, for example, my registration periods each day for the selected room and press "Create bookings..." - the chrome loading bar flashes along at the top of the screen but nothing actually happens. This is the same no matter how many different periods I have selected.

Have anyone seen this with this version?

 

Thanks

Posted

Hi Techie-v2, sorry about that! It looks like you might be having the same problem as this GitHub issue. Is that right?

 

If so, I still haven't got to the bottom of that yet as I can't re-create it.

 

Are you able to share some screenshots of developer tools, or can you see anything in the log files that might be useful?

 

 

Thanks!

Posted

Thanks for getting back to me,

 

Yeah it seems like teh same issue, here is a screen shot of teh developer tools when I click on the create bookings button....

Bookings.PNG

Thanks

Posted

Thanks for the info.

 

If you refresh the page are the bookings still being created?

Are there any errors in the log file (with the current date in the filename) stored in the classroombookings "local\logs" folder?

Posted

When I get the "blank page" come up after making a booking, the booking are created if I refresh the page.

 

Obviously when I click "create bookings" after enabling multiple selecting, I font get as far making the booking as the modal box doesn't come up.

 

The only error in the log is...

ERROR - 2022-08-04 12:07:21 --> Severity: Core Warning --> PHP Startup: Unable to load dynamic library 'mysql' (tried: C:\php7\ext\mysql (The specified module could not be found.), C:\php7\ext\php_mysql.dll (The specified module could not be found.)) Unknown 0

 

Which from what I can tell has always been the, even before the update.

 

Thanks

Posted (edited)

Hi Webman,

I am getting similar to above. With Multiple bookings it does not take me to the page to create the booking, jsut refreshes and goes back to the bookings overview. Works fine with the individual bookings. If it helps, Im using Server 2019, IIS 10, MySql 5.5 and php version 7.4.5

 

With single bookings, it makes the booking but I have to refresh.

Happy to send screen shots of anything that might help.

All the best

Edited by mbridger
Posted

Thanks for the updates both!

 

I think IIS might be the common denominator, but I'm still not 100% sure why that would be the case yet.

Posted (edited)

I think I've found it!

 

It looks like the PHP framework implements a fix/workaround for sending page redirects when running under IIS, which seemed like more of a problem with older versions of IIS dating back to v7. Having tested it on IIS 10, the standard HTTP redirect headers/codes work fine.

 

Until I release a new version of classroombookings, you can fix this in your own installations by putting a custom "MY_url_helper.php" file in application/helpers containing a function that overrides the default framework behaviour. View the code here - click the 'Raw' button, right-click on the page, then save-as. Just make sure the file extension is .php, not .php.txt.

 

Please let me know if that fixes it for you.

Edited by webman
  • Thanks 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...