简体   繁体   English

可捕获的致命错误:传递给 Illuminate\\Config\\Repository::__construct() 的参数 1 必须是数组类型,给定整数

[英]Catchable fatal error: Argument 1 passed to Illuminate\Config\Repository::__construct() must be of the type array, integer given

I'm having problem in issuing this command php artisan cache:clear , or php artisan I get this error.我在发出此命令时遇到问题php artisan cache:clearphp artisan我收到此错误。

Catchable fatal error: Argument 1 passed to Illuminate\\Config\\Repository::__construct() must be of the type array, integer given integer given, called in /var/www/mysite/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php on line 32 and defined in /var/www/mysite/vendor/laravel/framework/src/Illuminate/Config/Repository.php on line 24可捕获的致命错误:传递给 Illuminate\\Config\\Repository::__construct() 的参数 1 必须是数组类型,给定整数给定整数,在 /var/www/mysite/vendor/laravel/framework/src/Illuminate/Foundation 中调用第 32 行的 /Bootstrap/LoadConfiguration.php 并在第 24 行的 /var/www/mysite/vendor/laravel/framework/src/Illuminate/Config/Repository.php 中定义

Thank you in advance.先感谢您。

Solved Rename your cache.php file, located in bootstrap/cache/ .已解决重命名位于bootstrap/cache/ cache.php文件。 After this, run php artisan config:cache command if still not working.在此之后,如果仍然无法正常工作,请运行php artisan config:cache命令。

在 Laravel 5.5 中通过删除bootstrap/cache文件夹中的config.php文件然后运行php artisan config:cache

In your config/***.php file, the first line must be在你的 config/***.php 文件中,第一行必须是

<?php

NOT不是

<?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 切换表时出现zend db错误可捕获的致命错误:传递给__construct()的参数1必须是一个数组,给定对象,在 - zend db error on switching tables Catchable fatal error: Argument 1 passed to __construct() must be an array, object given, called in 可捕获的致命错误:传递给UsernamePasswordToken :: __ construct()的参数4必须是一个数组,给定null - Catchable Fatal Error: Argument 4 passed to UsernamePasswordToken::__construct() must be an array, null given 可捕获的致命错误:传递给...的参数1必须是...,给定数组的实例 - Catchable Fatal Error: Argument 1 passed to … must be an instance of …, array given Modx:可捕获的致命错误:传递给modParser :: collectElementTags()的参数2必须为数组类型,给定为null - Modx: Catchable fatal error: Argument 2 passed to modParser::collectElementTags() must be of the type array, null given PHP可捕获的致命错误:传递给参数1的类型必须为数组类型,给定为null,在第208行调用并定义 - PHP Catchable fatal error: Argument 1 passed to must be of the type array, null given, called in on line 208 and defined 可捕获的致命错误:传递给AppBundle \\ Form \\ TagType :: __ construct()的参数1必须是Doctrine \\ ORM \\ EntityRepository的实例,未给出任何实例, - Catchable Fatal Error: Argument 1 passed to AppBundle\Form\TagType::__construct() must be an instance of Doctrine\ORM\EntityRepository, none given, 可捕获的致命错误:传递给Controller :: __ construct()的参数1必须是Doctrine \\ ORM \\ EntityManager的实例,未给出任何实例,称为 - Catchable Fatal Error: Argument 1 passed to Controller::__construct() must be an instance of Doctrine\ORM\EntityManager, none given, called Symfony2:ContextErrorException:可捕获的致命错误:传递给[…] :: __ construct()的参数1必须实现接口[…]没有给出 - Symfony2: ContextErrorException: Catchable Fatal Error: Argument 1 passed to […]::__construct() must implement interface […] none given 可捕获的致命错误:传递给 Album\Controller\AlbumController::__construct() 的参数 1 必须是 Album\Model\AlbumTable 的实例,没有给出 - Catchable fatal error: Argument 1 passed to Album\Controller\AlbumController::__construct() must be an instance of Album\Model\AlbumTable, none given 可捕获的致命错误:传递给“…\\ FormType :: __ construct()的参数1必须实现接口 - Catchable Fatal Error: Argument 1 passed to "…\FormType::__construct() must implement interface
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM