我正在尝试在ubuntu 16.04中在Symfony 3中实现Symfony2项目(来自Ubuntu 14.04),并且我已经击中了一些墙。当我运行作曲家更新(冗长)时,我会在最后收到以下异常,并在结尾处进行跟踪,我不确定如何清除它。我知道我做错了什么,但是例外并不有助于固定问题的位置。有人以前遇到过这个问题并知道一些可能的罪魁祸首吗?
[SymfonyComponentDebugExceptionContextErrorException]
Warning: Invalid argument supplied for foreach()
Script SensioBundleDistributionBundleComposerScriptHandler::clearCache handling the symfony-scripts event terminated with an exception
[RuntimeException]
An error occurred when executing the "'cache:clear --no-warmup'" command:
[SymfonyComponentDebugExceptionContextErrorException]
Warning: Invalid argument supplied for foreach()
Exception trace:
() at /vendor/sensio/distribution-bundle/Composer/ScriptHandler.php:293
SensioBundleDistributionBundleComposerScriptHandler::executeCommand() at /vendor/sensio/distribution-bundle/Composer/ScriptHandler.php:143
SensioBundleDistributionBundleComposerScriptHandler::clearCache() at /usr/share/php/Composer/EventDispatcher/EventDispatcher.php:238
ComposerEventDispatcherEventDispatcher->executeEventPhpScript() at /usr/share/php/Composer/EventDispatcher/EventDispatcher.php:192
ComposerEventDispatcherEventDispatcher->doDispatch() at /usr/share/php/Composer/EventDispatcher/EventDispatcher.php:79
ComposerEventDispatcherEventDispatcher->dispatch() at /usr/share/php/Composer/EventDispatcher/EventDispatcher.php:177
ComposerEventDispatcherEventDispatcher->doDispatch() at /usr/share/php/Composer/EventDispatcher/EventDispatcher.php:94
ComposerEventDispatcherEventDispatcher->dispatchScript() at /usr/share/php/Composer/Installer.php:337
ComposerInstaller->run() at /usr/share/php/Composer/Command/UpdateCommand.php:173
ComposerCommandUpdateCommand->execute() at /usr/share/php/Symfony/Component/Console/Command/Command.php:256
SymfonyComponentConsoleCommandCommand->run() at /usr/share/php/Symfony/Component/Console/Application.php:841
SymfonyComponentConsoleApplication->doRunCommand() at /usr/share/php/Symfony/Component/Console/Application.php:189
SymfonyComponentConsoleApplication->doRun() at /usr/share/php/Composer/Console/Application.php:166
ComposerConsoleApplication->doRun() at /usr/share/php/Symfony/Component/Console/Application.php:120
SymfonyComponentConsoleApplication->run() at /usr/share/php/Composer/Console/Application.php:99
ComposerConsoleApplication->run() at /usr/bin/composer:44
您是否删除/添加了一个lib,忘了从appkernel中删除/添加它?