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()

Created on 19 October 2022, about 2 years ago
Updated 9 February 2023, almost 2 years ago

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

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇹🇷Turkey orkut murat yılmaz Istanbul

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024