Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AddressBookType class does not exist #121

Closed
samwwwblack opened this issue Nov 20, 2023 · 2 comments
Closed

AddressBookType class does not exist #121

samwwwblack opened this issue Nov 20, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@samwwwblack
Copy link

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.

@tchapi
Copy link
Owner

tchapi commented Nov 20, 2023

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

@tchapi tchapi added the bug Something isn't working label Nov 20, 2023
@tchapi tchapi self-assigned this Nov 20, 2023
@tchapi
Copy link
Owner

tchapi commented Nov 20, 2023

Just released v4.2.1 to address the issue

@tchapi tchapi closed this as completed Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants