Open mckenziedave opened 10 months ago
I've got the same issue (and others). l
ibrebooking is the default database name. I'm wanting to call mine something else (test) in order to run multiple instances for different booking systems for different uni labs and I get this in the browser when I point to http://127.0.0.1/testbooked/Web/ (my win10 test installation)
Warning: Undefined array key "test" in C:\xampp\htdocs\testbooked\lib\Config\Configuration.php on line 128
Fatal error: Uncaught Error: Call to a member function GetSectionKey() on null in C:\xampp\htdocs\testbooked\lib\Config\Configuration.php:133 Stack trace: #0 C:\xampp\htdocs\testbooked\lib\Common\Logging\Log.php(94): Configuration->GetSectionKey('logging', 'level') #1 C:\xampp\htdocs\testbooked\lib\Common\Logging\ExceptionHandler.php(19): Log::Error('Uncaught except...', Object(ParseError)) #2 [internal function]: ExceptionHandler::Handle(Object(ParseError)) #3 {main} thrown in C:\xampp\htdocs\testbooked\lib\Config\Configuration.php on line 133
Hi @mckenziedave ,
could you please share your config.php file? Don't forget to XXX any visible password
this is my config.php. Every line I've edited is flagged with EDITED in the comment <?php
mysqli_report(MYSQLI_REPORT_OFF); error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); //ini_set('display_errors', 1); //ini_set('display_startup_errors', 1);
/**
$conf['settings']['schedule']['use.per.user.colors'] = 'false'; // color reservations by user $conf['settings']['schedule']['show.inaccessible.resources'] = 'false'; // whether or not resources that are inaccessible to the user are visible $conf['settings']['schedule']['reservation.label'] = '{name}'; // format for what to display on the reservation slot label. Available properties are: {name}, {title}, {description}, {email}, {phone}, {organization}, {position}, {startdate}, {enddate} {resourcename} {participants} {invitees} {reservationAttributes}. Custom attributes can be added using att with the attribute id. For example {att1} $conf['settings']['schedule']['hide.blocked.periods'] = 'false'; // if blocked periods should be hidden or shown $conf['settings']['schedule']['update.highlight.minutes'] = '0'; // if set, will show reservations as 'updated' for a certain amount of time $conf['settings']['schedule']['show.week.numbers'] = 'false'; /**
$conf['settings']['authentication']['allow.facebook.login'] = 'false'; $conf['settings']['authentication']['allow.google.login'] = 'false'; $conf['settings']['authentication']['required.email.domains'] = ''; $conf['settings']['authentication']['hide.booked.login.prompt'] = 'false'; $conf['settings']['authentication']['captcha.on.login'] = 'false'; /**
Hi @daj1u06 ,
it looks like your config.php
file is truncated...
Please, compare your config.php
file with the sample config.dist.php
file.
If it is indeed truncated, then I would recommend you re-create your config.php
file from config.dist.php
and change the value of the fields that are relevant to you.
Thanks, checked and wasn't truncated, just it didn't all insert in when pasted into the box (size limit?). I found 2 typos in my config.php file and when corrected allowed Web/install tolaunch and with some other tweaking, I'm up and running.
Having the same problem. I've tried to go trough installation on AWS lightsail LAMP stack and a clean EC2 AMI where I have installed php, mariadb, ecc.. The only thing I can running is a blank page. Attached my config.php.
Hi @iborby,
I think your statement $conf['settings']['script.url'] = '/var/www/html/' is incorrect... I believe you should define a url (ex: www.acme.com).
Hi @colisee, thank you for your reply. I've updated it with: 'http://serverip/Web' as per index.php commented echo, tried also 'http://serverip/app/Web'. To be sure I have also tried db connection with mysql -h 127.0.0.1 -u username -D dbname -p and I'm able to see data in the tables so I assume it's not a DB connection issue. I have attached also the folder tree of my librebooking istallation and the error that I have when trying to load the page.
I have resolved going trough app/Web/install/index.php after setting tpl_c to 777. Seems like after installation it went from version 2 to version 2.8.6.1.
Hey so i have gone through the installation instructions, created the db manually imported the full install (this all went fine no errors)
However when trying to load the site where its hosted (/web directory) I'm just getting a 505 page? Checking the /web error logs i get this:
[21-Dec-2023 10:18:01 Europe/London] PHP Warning: Undefined array key "librebooking" in /home/mckenrau/public_html/client_files/vf-hrPortal/lib/Config/Configuration.php on line 128 [21-Dec-2023 10:18:01 Europe/London] PHP Fatal error: Uncaught Error: Call to a member function GetSectionKey() on null in /home/mckenrau/public_html/client_files/vf-hrPortal/lib/Config/Configuration.php:133 Stack trace:
0 /home/mckenrau/public_html/client_files/vf-hrPortal/lib/Common/Logging/Log.php(94): Configuration->GetSectionKey()
1 /home/mckenrau/public_html/client_files/vf-hrPortal/lib/Common/Logging/ExceptionHandler.php(19): Log::Error()
2 [internal function]: ExceptionHandler::Handle()
3 {main}
thrown in /home/mckenrau/public_html/client_files/vf-hrPortal/lib/Config/Configuration.php on line 133
I have searched online for an answer however couldnt find one so thought id post here, anyone got any ideas? Happy to share the config file etc if needed.
(side note, if i remove the config file i get a white screen with the error saying create the config file etc... seems to be with the config added the whole things 505's?)