我正在
糟糕,看起来出了问题。
在我的生产服务器上。
突然之间,没有工匠的命令正在发挥作用。我在/bootstrap/compiled.php:4496
收到错误。
删除 compiled.php 后,我收到相同的消息
" array_merge():参数#2不是数组"在/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository" .php:188。
我的 services.json 文件为空,当我尝试使用PHP artisan cache:clear
时,收到相同的错误消息。
有谁知道我接下来可以尝试什么?提前致谢
答案 0 :(得分:1)
当Laravel正在生产而没有调试选项时,会显示此消息"哎呀,看起来出了问题。",你可以编辑你.env line
APP_DEBUG=false
到
APP_DEBUG=true
然后您将看到错误(有关错误的更多信息)您将知道如何修复。
从bootstrap / cache中删除services.json解决了这个问题。 资料来源:https://laracasts.com/discuss/channels/laravel/update-to-51-and-array-merge-argument-2-is-not-an-array
答案 1 :(得分:1)
看起来我们的服务器空间不足。这就是它无法写入文件的原因。
答案 2 :(得分:0)
have you tried to delete your vender + /bootstrap/compiled.php
and your service.json
and then tried to reinstall laravel again using composer install
?