Upgrading exception from version 7 to 8. #2052
Unanswered
frogeyedman
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When upgrading the package from version 7 to 8 the following exception occurs (this only happens when the config file is cached).
This happens because the config file is cached in the
bootstrap/cache/config.php
file, howeverphp artisan config:clear
cant be executed this will result in the following exception.This won't be a problem in a local environment because we do not cache the config file locally, but we do on production and test environments. The only solution (I am able to find) at the moment is to remove the
bootstrap/cache/config.php
file manually, will there be "easier" fix in the future ?Many other people seem to have the same problem: https://github.com/spatie/laravel-medialibrary/issues?q=Class+name+must+be+a+valid+object+or+a+string
Beta Was this translation helpful? Give feedback.
All reactions