`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