Zend-crypt must be installed to use the ajax_entity_controller in zenstruck/form-bundle

I’m setting up a legacy Symfony project on a new server.

I’ve done a fresh composer install and everything goes well until this:

[Exception]
zendframework/zend-crypt must be installed to use the ajax_entity_controller feature.

Which is weird, because I can see that zendframework/zend-crypt has definitely been installed. See:

SSH screengrab

I’m pretty sure the Deprecation notices in yellow are unrelated.

Here’s the error on the front end, which suggest the error originates in zenstruck/form-bundle which gets installed at the same time.

Fatal error: Uncaught exception 'Exception' with message 'zendframework/zend-crypt must be installed to use the ajax_entity_controller feature.' in /home/XXXXXX/vendor/zenstruck/form-bundle/Zenstruck/Bundle/FormBundle/DependencyInjection/ZenstruckFormExtension.php:46
Stack trace:
#0 /home/XXXXXX/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/MergeExtensionConfigurationPass.php(50): ZenstruckBundleFormBundleDependencyInjectionZenstruckFormExtension->load(Array, Object(SymfonyComponentDependencyInjectionContainerBuilder))
#1 /home/XXXXXX/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/MergeExtensionConfigurationPass.php(39): SymfonyComponentDependencyInjectionCompilerMergeExtensionConfigurationPass->process(Object(SymfonyComponentDependencyInjectionContainerBuilder))
#2 /home/XXXXXX/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php(117): SymfonyComponentHttpKernelDependencyInjectionMergeExtensionConfiguratio in /home/XXXXXX/vendor/zenstruck/form-bundle/Zenstruck/Bundle/FormBundle/DependencyInjection/ZenstruckFormExtension.php on line 46

Any smart ideas?

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *