Error when migrating to production - Class 'Anomaly\Streams\Platform\Model\Users\UsersRolesEntryModel' not found

huglester - 11 months ago

The 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

Answer

- 11 months ago

Excellent resource!

ryanthompson - 11 months ago

Excellent resource!

ankitasoman - 5 months ago

I am still getting this error. Please give me solution.

emergingdzns - 3 months 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.