Benim CakePHP 3 uygulamasının yerel sunucumda düzgün çalışması.CakePHP 3 Hata: Uygulama, DebugKit eklentisinden bir dosya yüklemeye çalışıyor
Error: The application is trying to load a file from the DebugKit plugin. Make sure your plugin DebugKit is in the /app/plugins/ directory and was loaded.
Zaten composer install
yaptım çünkü kafam karıştı, ben vendor/cakephp/debug_kit
yılında debug_kit bkz ancak hata diğerinde bakıyor gibi görünüyor: Ben Heroku kurun zaman, aşağıdaki hatayı almaya devam eklentiler dizini.
neden oluyor?
Güncelleme: Ben composer install --verbose
koştum ve aşağıdaki hatayı bakın:
$ composer install --verbose Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Analyzed 91 packages to resolve dependencies Analyzed 165 rules to resolve dependencies Nothing to install or update Generating autoload files
hata görünürpost-autoload-dump: Cake\Composer\Installer\PluginInstaller::postAutoloadDump post-install-cmd: App\Console\Installer::postInstall
Script App\Console\Installer::postInstall handling the post-install-cmd event terminated with an exception
[InvalidArgumentException]
Maximum number of attempts must be a positive value.
Exception trace:
() at phar:///app/.heroku/php/bin/composer/vendor/symfony/console/Symfony/Component/Console/Question/Question.php:191
Symfony\Component\Console\Question\Question->setMaxAttempts() at phar:///app/.heroku/php/bin/composer/src/Composer/IO/ConsoleIO.php:246
Composer\IO\ConsoleIO->askAndValidate() at /app/src/Console/Installer.php:55
App\Console\Installer::postInstall() at phar:///app/.heroku/php/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:211
Composer\EventDispatcher\EventDispatcher->executeEventPhpScript() at phar:///app/.heroku/php/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:167
Composer\EventDispatcher\EventDispatcher->doDispatch() at phar:///app/.heroku/php/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:92
Composer\EventDispatcher\EventDispatcher->dispatchScript() at phar:///app/.heroku/php/bin/composer/src/Composer/Installer.php:342
Composer\Installer->run() at phar:///app/.heroku/php/bin/composer/src/Composer/Command/InstallCommand.php:131
Composer\Command\InstallCommand->execute() at phar:///app/.heroku/php/bin/composer/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:257
Symfony\Component\Console\Command\Command->run() at phar:///app/.heroku/php/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:874
Symfony\Component\Console\Application->doRunCommand() at phar:///app/.heroku/php/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:195
Symfony\Component\Console\Application->doRun() at phar:///app/.heroku/php/bin/composer/src/Composer/Console/Application.php:146
Composer\Console\Application->doRun() at phar:///app/.heroku/php/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:126
Symfony\Component\Console\Application->run() at phar:///app/.heroku/php/bin/composer/src/Composer/Console/Application.php:82
Composer\Console\Application->run() at phar:///app/.heroku/php/bin/composer/bin/composer:43
require() at /app/.heroku/php/bin/composer:25
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [--ignore-platform-reqs] [packages1] ... [packagesN]
Symfony
Teşekkür! Tavsiye ettiğiniz gibi dosyaları yükseltmenin en etkili yolu nedir? CakePHP hala v3.0'da görünüyor, bu yüzden “besteci güncelleme” doğru çalışmıyor mu? – emersonthis
Btw ... App \ Console \ Installer'ı güncelledim ve şimdi 'besteci yüklemesi 'hatasız olarak çalışıyor. Ancak garip bir şekilde, DebugKit hatası hala var. :-( – emersonthis
Maalesef, mevcut tüm dosyalarınızın üzerine yazmanın ve her değişikliğin el ile geçmesiyle ilgili manüel bir işlemdir ('git add --patch 'komutunu kullanın). Hata ile ilgili olarak," composer dump-autoload "işlevi güncellenmelidir. doğru eklenti yoluna sahip satıcı/cakephp-plugins.php' – deizel