Error when migrating to production - Class 'Anomaly\Streams\Platform\Model\Users\UsersRolesEntryModel' not found
Created 8 years ago by huglesterThe is a know problem after moving to production with errors similar to:
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'Anomaly\Streams\Platform\Model\Users\UsersRolesEntryModel' not found
Here is a short code snippet how to fix this:
#!/usr/bin/env bash
sed -i 's/INSTALLED=true/INSTALLED=false/g' .env
php artisan migrate --force --streams
php artisan migrate --force
php artisan migrate --force --all-addons
php artisan streams:compile
sed -i 's/INSTALLED=false/INSTALLED=true/g' .env
exit 0;
Hope it helps, snippet provided by @stijnt
ankitasoman
—
7 years ago
I am still getting this error. Please give me solution.
emergingdzns
—
7 years ago
I'm having the same error. No stacktrace. Artisan commands file as long as the installed in the .env is set to true. If set to false I can run artisan commands, which I've done (clear-compiled, cache:clear, config:clear, twig:clean, etc). No luck. I'm stumped.
emergingdzns
—
7 years ago
Ah ha! Forum FTW! https://pyrocms.com/forum/channels/everything/class-anomalystreamsplatformmodelusersusersrolesentrymodel-not-found helped me!
Excellent resource!