Hello all,
Problem/Motivation
I've just received the error message, which I paste below:
[error] Error: Call to undefined function l() in field_create_install() (line 14 of /var/www/html/web/modules/contrib/field_create/field_create.install) #0 [internal function]: field_create_install()
#1 /var/www/html/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(417): call_user_func_array()
#2 /var/www/html/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php(357): Drupal\Core\Extension\ModuleHandler->invoke()
#3 /var/www/html/web/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(83): Drupal\Core\Extension\ModuleInstaller->install()
#4 /var/www/html/vendor/drush/drush/src/Drupal/Commands/pm/PmCommands.php(94): Drupal\Core\ProxyClass\Extension\ModuleInstaller->install()
#5 [internal function]: Drush\Drupal\Commands\pm\PmCommands->install()
#6 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(257): call_user_func_array()
#7 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback()
#8 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter()
#9 /var/www/html/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(350): Consolidation\AnnotatedCommand\CommandProcessor->process()
#10 /var/www/html/vendor/symfony/console/Command/Command.php(255): Consolidation\AnnotatedCommand\AnnotatedCommand->execute()
#11 /var/www/html/vendor/symfony/console/Application.php(1027): Symfony\Component\Console\Command\Command->run()
#12 /var/www/html/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand()
#13 /var/www/html/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun()
#14 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(124): Symfony\Component\Console\Application->run()
#15 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(51): Drush\Runtime\Runtime->doRun()
#16 /var/www/html/vendor/drush/drush/drush.php(72): Drush\Runtime\Runtime->run()
#17 /var/www/html/vendor/drush/drush/includes/preflight.inc(18): require('...')
#18 phar:///usr/local/bin/drush/bin/drush.php(143): drush_main()
#19 /usr/local/bin/drush(14): require('...')
#20 {main}.
[19-Oct-2022 14:45:40] Error: Call to undefined function l() in /var/www/html/web/modules/contrib/field_create/field_create.install on line 14 #0 [internal function]: field_create_install()
#1 /var/www/html/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(417): call_user_func_array()
#2 /var/www/html/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php(357): Drupal\Core\Extension\ModuleHandler->invoke()
#3 /var/www/html/web/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(83): Drupal\Core\Extension\ModuleInstaller->install()
#4 /var/www/html/vendor/drush/drush/src/Drupal/Commands/pm/PmCommands.php(94): Drupal\Core\ProxyClass\Extension\ModuleInstaller->install()
#5 [internal function]: Drush\Drupal\Commands\pm\PmCommands->install()
#6 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(257): call_user_func_array()
#7 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback()
#8 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter()
#9 /var/www/html/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(350): Consolidation\AnnotatedCommand\CommandProcessor->process()
#10 /var/www/html/vendor/symfony/console/Command/Command.php(255): Consolidation\AnnotatedCommand\AnnotatedCommand->execute()
#11 /var/www/html/vendor/symfony/console/Application.php(1027): Symfony\Component\Console\Command\Command->run()
#12 /var/www/html/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand()
#13 /var/www/html/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun()
#14 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(124): Symfony\Component\Console\Application->run()
#15 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(51): Drush\Runtime\Runtime->doRun()
#16 /var/www/html/vendor/drush/drush/drush.php(72): Drush\Runtime\Runtime->run()
#17 /var/www/html/vendor/drush/drush/includes/preflight.inc(18): require('...')
#18 phar:///usr/local/bin/drush/bin/drush.php(143): drush_main()
#19 /usr/local/bin/drush(14): require('...')
#20 {main}
Error: Call to undefined function l() in field_create_install() (line 14 of /var/www/html/web/modules/contrib/field_create/field_create.install).
[warning] Drush command terminated abnormally.Steps to reproduce
First, I've install the module with composer:
composer require 'drupal/field_create:^1.0@beta'
Then, I've tried to enable it by drush:
drush en field_create
Right after that, I've received the error message.
When I check the admin/config/development/field-create page, Config fields of entity types appears as disabled.
What should be done?
Best,
Orkut
Comments
Comment #2
taylormade415 commentedthis is an error surrounding the "successful" message which is meant to be translated after installation is complete. It can be safely ignored
Comment #3
adil_siddiqui commentedIt is fixed in 1.0.x-dev version.
Comment #4
matthieuscarset commentedThank you for reporting and for testing this issue.
It is fixed on dev branch indeed.