Appointments icon indicating copy to clipboard operation
Appointments copied to clipboard

Server error when clicking book now (error sending email)

Open wiertz opened this issue 3 years ago • 2 comments

Hi, thanks for the very useful app! I encounter an error that I didn't have before, probably related to an update of Appointments or Nextcloud? When a user selects an appointment and clicks book now, instead of the confirmation page nextcloud shows a server error page. The nextcloud server logs point to the following exception:

Exception: OC\Mail\EMailTemplate::__construct(): Argument #3 ($l10nFactory) must be of type OCP\L10N\IFactory, OC\L10N\LazyL10N given, called in /var/www/html/custom_apps/appointments/lib/Backend/DavListener.php on line 1129
/var/www/html/lib/private/AppFramework/App.php - line 156:
OC\AppFramework\Http\Dispatcher->dispatch(OCA\Appointm ... {}, "cncf")
/var/www/html/lib/private/Route/Router.php - line 302:
OC\AppFramework\App::main("OCA\\Appoin ... r", "cncf", OC\AppFramew ... {}, { token: "Qc ... "})
/var/www/html/lib/base.php - line 1008:
OC\Route\Router->match("/apps/appoi ... f")
/var/www/html/index.php - line 36:
OC::handleRequest()
Caused by TypeError: OC\Mail\EMailTemplate::__construct(): Argument #3 ($l10nFactory) must be of type OCP\L10N\IFactory, OC\L10N\LazyL10N given, called in /var/www/html/custom_apps/appointments/lib/Backend/DavListener.php on line 1129

Appointments version 1.12.6 Nextcloud version 22.2.8

wiertz avatar Jun 23 '22 13:06 wiertz

Bug is confirmed. Wrong L10N class is passed to EMailTemplate::class constructor. Fix should released asap.

SergeyMosin avatar Jun 23 '22 14:06 SergeyMosin

Fixed in v1.12.7

SergeyMosin avatar Jun 23 '22 15:06 SergeyMosin