meeting-room-booking-system / mrbs-code

MRBS application code
Other
117 stars 58 forks source link

MRBS not working :-) #2116

Open jberanek opened 6 years ago

jberanek commented 6 years ago

Hi support I have be running mrbs one this adresse http://frivilligcenter-helsinge.dk/booking-ny/ And now the page just saying "This page isn´t working HTTP error 500" The server is runing PHP 5.6 And the last error in the log fil is [04-Jan-2018 12:04:07 Europe/Copenhagen] MRBS: Ugyldigt reservations ID. [04-Jan-2018 12:04:07 Europe/Copenhagen] MRBS GET: Array ( [id] => 5230 [area] => 1 [day] => 27 [month] => 10 [year] => 2016 )

What have I done wrong or missing on the server?

/Bruno S

Reported by: *anonymous

Original Ticket: mrbs/support-requests/1405

jberanek commented 6 years ago

Can you post your configuration file. Hide database username/password!

Original comment by: *anonymous

jberanek commented 6 years ago
<?php

// $Id: joomla.php 2211 2013-08-12 ksdesign $

/**************************************************************************

 *   MRBS Configuration File

 *   Configure this file for your site.

 *   You shouldn't have to modify anything outside this file

 *   (except for the lang.* files, eg lang.en for English, if

 *   you want to change text strings such as "Meeting Room

 *   Booking System", "room" and "area").

 **************************************************************************/

/*##################################################################################################################################################*/

/* Modify these lines for the right Joomla settings */

$db_tbl_prefix =    "mrbs_";  // change the prefix to your needs

require_once ( 'joomla.php' );

$auth["session"] =  "jm";

$auth["type"] =     "jm_gid";  /* jm_gid = grouplevel - jm_aid = accesslevel */

                    /* All these settings are been taken from Joomla 

                       please do not override these settings by copying from systemdefaults

                    //DB

                    $dbsys

                    $db_host

                    $db_database

                    $db_login

                    $db_password

                    //Site

                    $timezone

                    $mrbs_company

                    $mrbs_admin

                    $mrbs_admin_email

                    $mail_settings['admin_backend']

                    //Email

                    $sendmail_settings['path']

                    $smtp_settings['host']

                    $smtp_settings['port']

                    $smtp_settings['auth']

                    $smtp_settings['username']

                    $smtp_settings['password']

                    $mail_settings['from']

                    $mail_settings['recipients']

                    $mail_settings['cc']

                    $mail_settings['treat_cc_as_to']

                    //Language

                    $frontendsiteDefaultLanguage

                    $lang_code_partials

                    $lang_prefix

                    $disable_automatic_language_changing

                    $mail_settings['admin_lang']

                    $default_language_tokens

                    $cli_language

                    $faqfilelang

                    */

//Accesslevel

$min_manager_accesslevel = 20;          // Check if the user can modify in aid mode - 2 = registrated joomla user

$min_manager_grouplevel  = 20;          // Check if the user can modify in gid mode - 11 = registerd access level 

/*##################################################################################################################################################*/

/* Add lines from systemdefaults.inc.php and areadefaults.inc.php below here

   to change the default configuration. Do _NOT_ modify systemdefaults.inc.php

   or areadefaults.inc.php.  */

// WHO TO EMAIL

$mail_settings['admin_on_bookings']      = TRUE;  // the addresses defined by $mail_settings['recipients'] below

$mail_settings['area_admin_on_bookings'] = TRUE;  // the area administrator

$mail_settings['room_admin_on_bookings'] = TRUE;  // the room administrator

$mail_settings['booker']                 = TRUE;  // the person making the booking

$mail_settings['book_admin_on_approval'] = TRUE;  // the booking administrator when booking approval is enabled

// WHEN TO EMAIL

$mail_settings['on_new']    = TRUE;   // when an entry is created

$mail_settings['on_change'] = TRUE;  // when an entry is changed

$mail_settings['on_delete'] = TRUE;  // when an entry is deleted

// WHAT TO EMAIL

$mail_settings['details']   = TRUE; // Set to TRUE if you want full booking details;

$mail_settings['html']      = TRUE; // Set to true if you want HTML mail

$mail_settings['icalendar'] = TRUE; // Set to TRUE to include iCalendar details

/*******************

 * Calendar settings

 *******************/

// TIMES SETTINGS

// --------------

$morningstarts         = 9;   // must be integer in range 0-23

$morningstarts_minutes = 0;   // must be integer in range 0-59

$eveningends           = 24;  // must be integer in range 0-23

$eveningends_minutes   = 00;   // must be integer in range 0-59

// PERIODS SETTINGS

// ----------------

$periods[] = "09:00 - 10:00";

$periods[] = "10:00 - 11:00";

$periods[] = "11:00 - 12:00";

$periods[] = "12:00 - 13:00";

$periods[] = "13:00 - 14:00";

$periods[] = "14:00 - 15:00";

$periods[] = "15:00 - 16:00";

$periods[] = "16:00 - 17:00";

$periods[] = "17:00 - 18:00";

$periods[] = "15:00 - 16:00";

$periods[] = "16:00 - 17:00";

$periods[] = "17:00 - 18:00";

$periods[] = "18:00 - 19:00";

$periods[] = "19:00 - 20:00";

$periods[] = "20:00 - 21:00";

$periods[] = "21:00 - 22:00";

$periods[] = "22:00 - 23:00";

$periods[] = "23:00 - 00:00";

/******************

 * Booking policies

 ******************/

$min_book_ahead_enabled = FALSE;    // set to TRUE to enforce a minimum advance booking time

$max_book_ahead_enabled = True;    // set to TRUE to enforce a maximum advance booking time

$min_book_ahead_secs = 0;           // (seconds) cannot book in the past

$max_book_ahead_secs = 60*60*24*7*100;  // (seconds) no more than one week ahead

/******************

 * Display settings

 ******************/

// Start of week: 0 for Sunday, 1 for Monday, etc.

$weekstarts = 1;

$dateformat = 1;

$mincals_week_numbers = TRUE;

/************************

 * Miscellaneous settings

 ************************/

$max_rep_entrys = 100;  // default 365 + 1;

// SETTINGS FOR APPROVING BOOKINGS - PER-AREA

$approval_enabled = TRUE;  // Set to TRUE to enable booking approval

$reminders_enabled = TRUE;

// SETTINGS FOR APPROVING BOOKINGS - GLOBAL

$reminder_interval = 60*60*24*2;  // 4 working days

$working_days = array(0,1,2,3,4,5,6,7);  // Mon-Fri

// SETTINGS FOR BOOKING CONFIRMATION

$confirmation_enabled = false;

$confirmed_default = FALSE;

// PRIVATE BOOKINGS SETTINGS

$is_private_field['entry.defaultName'] = FALSE;

$is_private_field['entry.name'] = FALSE;

$is_private_field['entry.debnumber'] = TRUE;

$is_private_field['entry.contact'] = TRUE;

$is_private_field['entry.adress'] = TRUE;

$is_private_field['entry.zipcode'] = TRUE;

$is_private_field['entry.place'] = TRUE;

$is_private_field['entry.telephone'] = TRUE;

$is_private_field['entry.mail'] = TRUE;

$is_private_field['entry.description'] = TRUE;

$is_private_field['entry.create_by'] = TRUE;

/***********************************************

 * Get Joomla defaults

 ***********************************************/

$is_default_entry['entry.mail'] = $usermail;

$is_default_entry['entry.contact'] = $username;

$is_default_entry['entry.debnumber'] = $userid;

// General settings

$auth['only_admin_can_book'] = FALSE;

$auth['only_admin_can_book_repeat'] = FALSE;

$auth['only_admin_can_book_multiday'] = FALSE;

$auth['only_admin_can_select_multiroom'] = FALSE;

$auth['only_admin_can_see_other_users'] = TRUE;

$auth['deny_public_access'] = FALSE;

$mrbs_company = "<a href='../../index.php'>Frivilligcenter Helsinge</a>";

$url_base =  "http://www.frivilligcenter-helsinge.dk/booking-ny";

?>

Original comment by: *anonymous

jberanek commented 6 years ago

This looks like a non-standard version of MRBS. Maybe there's an error in joomla.php? Or else in session_jm.php?

Original comment by: campbell-m

jberanek commented 6 years ago

You should install version 1.7.0 of MRBS as it has joomla support out of the box. I cannot find any mrbs database settings in your config file either.

Original comment by: *anonymous