Compile container for production (v2024)

Hi everyone

I have the following error when trying to compile for production on version 2024.16

Fatal error: Uncaught DI\Definition\Exception\InvalidDefinition: Entry "events" cannot be compiled: the class is not instantiable Full definition: Object ( class = #NOT INSTANTIABLE# Doctrine\ORM\Events lazy = false ) in C:\xampp\htdocs\vendor\php-di\php-di\src\Definition\Exception\InvalidDefinition.php:19

any ideas

thanks

Did you have a table named “events” and removed later? If you have changed database schema, make sure you generate all files again, especially the src\definitions.php.

Also make sure you delete old compiled cache files first, see Compile container for production.

Thanks for replying

Yes, it was the events table that was generating the error