ADDONS & STREAM ARE NOT WORKING
Created 6 years ago by cmanriqueGood afternoon, i am trying to just add a module and coupe of streams (option and sub-options (2 exactly) ) at the admin menu , but am getting the error below
Symfony \ Component \ Debug \ Exception \ FatalErrorException (E_UNKNOWN) Class 'Anomaly\Streams\Platform\Model\Discounts\DiscountsCouponsEntryModel' not found
Despite i just tried to make this https://pyrocms.com/forum/channels/everything/class-anomalystreamsplatformmodelusersusersrolesentrymodel-not-found and https://pyrocms.com/forum/channels/streams-platform/error-when-migrating-to-production-class-anomalystreamsplatformmodelusersusersrolesentrymodel-not-found I AM STILL GETTING THE ERROR, I RUNED THIS COMMANDS :
- composer require anomaly/addons-module
- php artisan make:addon alaska.module.discounts (obviously i did active the addon at addons/modules)
- php artisan make:stream discounts alaska.module.discounts
- php artisan make:stream coupons alaska.module.discounts
- 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 AM TRYING TO SEE IF THERE SOMETHING WRONG OR AM MISSING SOMETHING.
ANY SUGGESTION OR HELP WOULD BE VERY WELCOME
THANKS
php artisan addon:install alaska.module.discounts
You can then simply refresh migrations during the remainder of your development work:
php artisan migrate:refresh --addon=alaska.module.discounts
Or reinstall:
php artisan addon:reinstall alaska.module.discounts
Maybe this a dumb question, but have you added any fields to these streams? Did you assign them? Not entirely sure if not doing so would result in the error you are receiving but figured I'd throw it out there.
Good afternoon, i really appreciate the answers of everybody, i just recreate at scratch the pyrocms project and everything works , i would paste the commands than i just hit could be helpful for any beginner :
- composer create-project pyrocms/pyrocms project_name.dev (cd to project_name.dev after its being generated )
- chmod -R 755 public/app
- chmod -R 755 bootstrap/cache
- chmod -R 755 storage (create the .env file) sudo vim .env paste this replacing the conf variables with your enviroment APP_ENV=local APP_DEBUG=true APP_KEY=base64:KgPfaY41LG1C8ihDjDf+2rumJRGzaYtPoAxKCqeiqP4= DB_CONNECTION=mysql DB_HOST="127.0.0.1 " DB_DATABASE=dbname DB_USERNAME=dbusername DB_PASSWORD="password" APPLICATION_NAME=Default APPLICATION_REFERENCE=default APPLICATION_DOMAIN=localhost LAZY_TRANSLATIONS=true DB_CACHE=true LOCALE=en TIMEZONE=UTC INSTALLED=true
- php artisan key:generate
- php artisan install --ready
- php artisan make:addon addon_name.module.module_name
- php artisan make:stream module_name addon_name.module.module_name
Looks like your addon isn't installed.
Also, it would help if you used code formatting and lay off the caps lock