An empty services.json file crashes a site

I get

Oops, it looks like something went wrong.

on my server.

Suddenly no craft teams work. I received an error message /bootstrap/compiled.php:4496.

After removing compiled.php I get the same message

"array_merge (): Argument # 2 is not an array" in / vendor / laravel / framework / src / Illuminate / Foundation / ProviderRepository .php: 188.

My services.json files are empty, and when I try PHP artisan cache:clear, I get the same error message.

Does anyone know what I can try next? thanks in advance

+4
source share
3 answers

When Laravel is in production without a debugging option, this message displays "Oops, something seems to have gone wrong." You can edit the .env line

APP_DEBUG=false

to

APP_DEBUG=true

and then you will see an error (get additional information about the error), you will learn how to fix it.

Removing services.json from bootstrap / cache fixed the problem. Source: https://laracasts.com/discuss/channels/laravel/update-to-51-and-array-merge-argument-2-is-not-an-array

+1
source

It looks like we have run out of free space on the server. That is why he could not write the file.

+1
source

vender + /bootstrap/compiled.php service.json, laravel composer install?

0

Source: https://habr.com/ru/post/1612434/


All Articles