tchapi / davis

🗓 A simple, fully translatable admin interface for sabre/dav based on Symfony 5 and Bootstrap 5, initially inspired by Baïkal.

Home Page:https://github.com/users/tchapi/projects/1/views/1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`AddressBookType` class does not exist

samwwwblack opened this issue · comments

Hi,

I'm running a Docker container of davis:v4.2.0 in production where I tried editing a user's addressbook through the admin interface and got a 500 error back.

The prod log has the following;

request.CRITICAL: Uncaught PHP Exception Symfony\Component\Form\Exception\InvalidArgumentException: "Could not load type "App\Controller\Admin\AddressBookType": class does not exist." at /var/www/davis/vendor/symfony/form/FormRegistry.php line 83 {"exception":"[object] (Symfony\\Component\\Form\\Exception\\InvalidArgumentException(code: 0): Could not load type \"App\\Controller\\Admin\\AddressBookType\": class does not exist. at /var/www/davis/vendor/symfony/form/FormRegistry.php:83)"

Checking src/Controller/Admin/AddressBookController.php and the previous src/Controller/AdminController.php it seems use App\Form\AddressBookType; has been omitted, and adding that fixes the issue.

I hope this helps.

Thanks a lot @samwwwblack for your report. I will look at this asap!

Just released v4.2.1 to address the issue