Room created the file day.php blank page - mrbs-1.4.11
Brought to you by:
jberanek
Hello,
I have a bug in my RSB-1.4.11 I installed it but when I acresento standard one room of the page it blank, in rooms reservation link, if I remove the room back to normal and it opens the page but day.php if you have a room created the file day.php blank page opens, have any solution?
I thank you.
How did you add the room? Through MRBS or through phpMyAdmin?
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "DO NOT USE - Bugs"
I am adding through MRBS and I am get the blank page too on week.php and day.php
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "DO NOT USE - Bugs"
The problem about not showing anything on week.php and day.php is the
line 738 -> $is_possibly_invalid = !$enable_periods && is_possibly_invalid($am7, $pm7);
Removing it the screen is showing again
Last edit: Anonymous 2014-10-27
Are you using periods? If not, what is the start time of your booking day? And what resolution are you using?
And how did you conclude it was this line?
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "DO NOT USE - Bugs"
I ain't using periods, the Start Time is 07:00 until 18:30.
The resolution isn't the problem I test it, right now.
About how I conclude it, is because I was debugging inserting some echoes in the code. So I could find the line that was generating the blank screen. After it I remove the line and it is working.
att
Mauricio N. Ferreira
OK, many thanks. Have you made any changes to that file? What happens if you restore the standard version of that file? And were you getting any errors in your PHP error log? And what timezone are you using?
Apologies for all the questions - it's just that I can't reproduce the problem.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "DO NOT USE - Bugs"
No problems, I am new in this project so now I can't help too much with code, but the questions I can answer all of them.
I am using a ubuntu with pt_BR.UTF-8 and the MRBS is get the locate automaticly.
I couldn't change the file to the previous version because on the download page have just the last version.
Accessing the error.log or access.log on apache no errors are displayed. The timezone is "America/Brasilia"
att
Mauricio N. Ferreira
Last edit: Anonymous 2014-10-27
Thanks. I mean what happens if you just upload the standard functions_table.inc from the download page? Does the error come back again? If it does come back again can you add the following lines right at the end of internalconfig.inc.php and see if any errors are reported in your browser?
Campbell, I restored the file and nothing happen. Also Added these 2 lines to the end of internalconfig.inc but simply the php stop on that line and nothing else is interpreted.
I will try to find the problem here. But the problem is in this function: is_possibly_invalid($am7, $pm7);
Thanks.
Does the problem just occur when you try and make a booking for just one particular day? What happens if you make a booking for a day in December?
This problem happens when create a room for any area not when is booking.
I think I can reproduce the problem. And I think the problem is that the "America/Brasilia" timezone does not exist in PHP. Can you try using "America/Sao_Paulo"? You will need to edit the timezone of your areas. Login as an admin, go to the Rooms page, select an area and then click on the Edit icon. Change the timezone and then "Save".
I've now fixed this (by adding a check that the $timezone config variable is valid) in the trunk in Rev 2874. You should switch from "America/Brasilia" to another timezone.