The drop-down boxes have now been superseded by the datepicker calendar.  I’m interested why you’d want the drop-down boxes instead of the datepicker?   If there’s a good enough reason it may be possible to make this a config option, though obviously the fewer config options the better.

 

Although you’re now up and running, there’s obviously a problem in MRBS which we’ll need to fix.    It looks like resolution was set to NULL in your area table, something which shouldn’t be possible in RC2 and I’ll need to look at how it happened.   I’m assuming you installed RC2 with no changes except for config settings and then created two areas – correct?   Or have you upgraded an existing installation?

 

Campbell

 

 

 

 

From: Hilling, Matthew [mailto:M.J.Hilling@exeter.ac.uk]
Sent: 16 November 2010 17:44
To: 'mail@campbellmorrison.co.uk'; 'General purpose list (support/developers/users)'
Subject: Re: [MRBS-general] MRBS - PHP Fatal Error and date format question

 

1.       Times.

2.       Did this (for both areas) and it is now working.

 

Are you able to send me the code that is used in the demo on sourceforge that gives drop down boxes for day, month and year??

 

Many thanks for your time and help.

 

Matt.

 

 

From: Campbell Morrison [mailto:campbell.morrison@gmail.com]
Sent: 16 November 2010 17:34
To: 'General purpose list (support/developers/users)'
Subject: Re: [MRBS-general] MRBS - PHP Fatal Error and date format question

 

Thanks.

 

(1)    Are you using periods or times?

(2)    Can you go into the page for editing an area (the area that gives you the failure) and save the settings having made no changes and see if that makes a difference.

 

Campbell

 

 

From: Hilling, Matthew [mailto:M.J.Hilling@exeter.ac.uk]
Sent: 16 November 2010 17:25
To: 'General purpose list (support/developers/users)'
Subject: Re: [MRBS-general] MRBS - PHP Fatal Error and date format question

 

Source of the page that fails is attached as text file – hope the list can cope with that.

 

Matt.

 

 

From: Campbell Morrison [mailto:campbell.morrison@gmail.com]
Sent: 16 November 2010 17:00
To: 'General purpose list (support/developers/users)'
Subject: Re: [MRBS-general] MRBS - PHP Fatal Error and date format question

 

OK – I’ll put in the test for a zero $resolution anyway as that’s still a potential problem.

 

Can you get the page source (View source in your browser) as that may give a clue as to what’s happening.

 

Campbell

 

 

From: Hilling, Matthew [mailto:M.J.Hilling@exeter.ac.uk]
Sent: 16 November 2010 16:57
To: 'mail@campbellmorrison.co.uk'; 'General purpose list (support/developers/users)'
Subject: RE: [MRBS-general] MRBS - PHP Fatal Error and date format question

 

$resolution is not set specifically in the config.inc.php file – therefore I assume it to be using the default:

 

$resolution = (30 * 60);  // DEFAULT VALUE FOR NEW AREAS

 

Matt.

 

From: Campbell Morrison [mailto:campbell.morrison@gmail.com]
Sent: 16 November 2010 16:48
To: 'General purpose list (support/developers/users)'
Subject: Re: [MRBS-general] MRBS - PHP Fatal Error and date format question

 

On point (1) below, can you tell me what you have $resolution set to?    If it’s set to 0 or not set at all (eg accidentally commented out) I can see that you would get an infinite loop just after the date input field.  (I’ll add a check in the code to make sure that this can’t happen.)

 

Campbell

 

 

 

From: Hilling, Matthew [mailto:M.J.Hilling@exeter.ac.uk]
Sent: 16 November 2010 15:56
To: 'mrbs-general@lists.sourceforge.net'
Subject: [MRBS-general] MRBS - PHP Fatal Error and date format question

 

Hello,

 

I have recently installed MRBS for use at the University of Exeter. The install was simple and I have connected it to our LDAP service for authentication. The main homepage listing the available areas and showing the rooms/times works fine.

 

I have two problems that I hope someone can help me with. The problems may be related.

 

1.       When I click on a time slot to book a room, I only receive half of the resulting web page. The page times-out after the date input field and I receive the following error in the Apache log file:


[Mon Nov 15 16:02:18 2010] [error] [client 144.173.201.4] PHP Fatal error:  Allowed memory size of 16777216 bytes exhausted (tried to allocate 94 bytes) in /webroot/secam/html/MRBS/mrbs-1.4.5rc2/web/language.inc on line 752, referer: http://empslocal.ex.ac.uk/MRBS/mrbs-1.4.5rc2/web/day.php?day=15&month=11&year=2010&area=1&room=7


Even if I increase the allowed memory in the php.ini file I still receive the same error. The output from the help page is:

Meeting Room Booking System:               MRBS 1.4.5rc2

Database:            MySQL 5.0.77-log

System:                Linux cale.ex.ac.uk 2.6.18-194.8.1.el5 #1 SMP Thu Jul 1 19:04:48 EDT 2010 x86_64

Server time:       Tue 16 Nov 2010 15:52:23 GMT

PHP:                      5.1.6

Your browser is set with the following language preference order: en, en-us

2.       Is there a way of changing the date format to be in English style (dd/mm/yyyy) rather than US style? Or, better still, how do I implement the drop down lists for the day/month/year that appear in the demo version on sourceforge?

 

Here is my current config.inc.php:

 

$timezone = "Europe/London";
$unicode_encoding = 1;

$dbsys = "mysql";

$db_host = "localhost";

$db_database = "mrbs";

$db_login = "mrbs";

$db_password = ***; [hidden for security]

$db_tbl_prefix = "mrbs_";

 

$mrbs_admin = "Matthew Hilling";

$mrbs_admin_email = "M.J.Hilling@exeter.ac.uk";

$mrbs_company = "EMPS, University of Exeter";

$mrbs_company_url = "http://emps.ex.ac.uk/";

 

$area_list_format = "list";

 

$auth["admin"][] = **; [hidden for security]

$auth["type"] = "ldap";

$ldap_host= **; [hidden for security]

$ldap_port= 389;

$ldap_base_dn= **; [hidden for security]

$ldap_user_attrib= "uid";

 

$hidden_days = array(0,6);

//$dateformat= 1;
$weekstarts = 1;

$default_duration = (30 * 60);

$eveningends  = 19;

$monthly_view_entries_details = "both";

 

require_once "language.inc";

 

 

Many thanks in advance for any help. Regards,

Matt.