LibreBooking / app

Repository for the last open source version of Booked Scheduler. The "develop" branch contains the most current working code of the project and should be considered beta. The "master" branch is the most current stable release of BookedScheduler. Please read doc/README.md for further details.
GNU General Public License v3.0
406 stars 242 forks source link

/Web/admin - PHP Fatal error #442

Open l3th0n opened 1 month ago

l3th0n commented 1 month ago

Hi

I've managed to set up my apache server with Librebooking. Registered the first account and clicked the Add Resource and get the following error message - image

Looking in /var/log/error.log I find the following error messages -

[Wed Oct 16 23:16:38.811629 2024] [php:error] [pid 15152] [client ip:port] PHP Fatal error:  Access level to ResourceStatusChangeEmail::$email must be protected (as in class EmailMessage) or weaker in /var/www/example.com/app/lib/Email/Messages/ResourceStatusChangeEmail.php on line 0, referer: http://example.com/app/Web/schedule.php
[Wed Oct 16 23:16:46.998533 2024] [php:error] [pid 15153] [client ip:port] PHP Fatal error:  Access level to ResourceStatusChangeEmail::$email must be protected (as in class EmailMessage) or weaker in /var/www/example.com/app/lib/Email/Messages/ResourceStatusChangeEmail.php on line 0, referer: http://example.com/app/Web/schedule.php
[Wed Oct 16 23:27:27.880248 2024] [php:error] [pid 15207] [client ip:port] PHP Fatal error:  Access level to ResourceStatusChangeEmail::$email must be protected (as in class EmailMessage) or weaker in /var/www/example.com/app/lib/Email/Messages/ResourceStatusChangeEmail.php on line 0, referer: http://example.com/app/Web/schedule.php
[Wed Oct 16 23:29:54.174504 2024] [php:error] [pid 15384] [client ip:port] PHP Fatal error:  Access level to ResourceStatusChangeEmail::$email must be protected (as in class EmailMessage) or weaker in /var/www/example.com/app/lib/Email/Messages/ResourceStatusChangeEmail.php on line 0, referer: http://example.com/app/Web/admin/
[Wed Oct 16 23:54:57.093722 2024] [php:warn] [pid 15401] [client ip:port] PHP Warning:  mysqli_connect(): (HY000/1045): Access denied for user 'lb_user'@'localhost' (using password: YES) in /var/www/example.com/app/Presenters/Install/Installer.php on line 203
[Wed Oct 16 23:55:05.936383 2024] [php:warn] [pid 15410] [client ip:port] PHP Warning:  mysqli_connect(): (HY000/1045): Access denied for user 'lb_user'@'localhost' (using password: YES) in /var/www/example.com/app/Presenters/Install/Installer.php on line 203, referer: http://example.com/app/Web/install/
[Wed Oct 16 23:56:50.141171 2024] [php:notice] [pid 17902] [client ip:port] PHP Notice:  escape: unsupported type: json - returning unmodified string in /var/www/example.com/app/vendor/smarty/smarty/libs/plugins/modifier.escape.php on line 186, referer: http://example.com/app/Web/reservation.php?rid=1&sid=1&rd=2024-10-13&sd=2024-10-13%2010%3A00%3A00&ed=2024-10-13%2010%3A30%3A00
[Wed Oct 16 23:56:50.141215 2024] [php:notice] [pid 17902] [client ip:port] PHP Notice:  escape: unsupported type: json - returning unmodified string in /var/www/example.com/app/vendor/smarty/smarty/libs/plugins/modifier.escape.php on line 186, referer: http://example.com/app/Web/reservation.php?rid=1&sid=1&rd=2024-10-13&sd=2024-10-13%2010%3A00%3A00&ed=2024-10-13%2010%3A30%3A00
[Wed Oct 16 23:56:50.141222 2024] [php:notice] [pid 17902] [client ip:port] PHP Notice:  escape: unsupported type: json - returning unmodified string in /var/www/example.com/app/vendor/smarty/smarty/libs/plugins/modifier.escape.php on line 186, referer: http://example.com/app/Web/reservation.php?rid=1&sid=1&rd=2024-10-13&sd=2024-10-13%2010%3A00%3A00&ed=2024-10-13%2010%3A30%3A00
[Wed Oct 16 23:56:50.141227 2024] [php:notice] [pid 17902] [client ip:port] PHP Notice:  escape: unsupported type: json - returning unmodified string in /var/www/example.com/app/vendor/smarty/smarty/libs/plugins/modifier.escape.php on line 186, referer: http://example.com/app/Web/reservation.php?rid=1&sid=1&rd=2024-10-13&sd=2024-10-13%2010%3A00%3A00&ed=2024-10-13%2010%3A30%3A00
[Thu Oct 17 00:00:17.630751 2024] [php:error] [pid 18070] [client ip:port] PHP Fatal error:  Access level to ResourceStatusChangeEmail::$email must be protected (as in class EmailMessage) or weaker in /var/www/example.com/app/lib/Email/Messages/ResourceStatusChangeEmail.php on line 0, referer: http://example.com/app/Web/admin/manage_blackouts.php

There was also an issue when using the /Web/install with pending_reservations.

Thanks.