bug when creating a product in update from v0.1.8 to v.1.0.0
-
after i create a product it shows this error, and i cant resolve this for 2 days
could you help me resolve this?
-
What you have to do is:
Step 1: Go to config/app.php and look for
"Webkul\Discount\Providers\DiscountServiceProvider::class," under providers array.
Step 2: Remove it.Step 3: Go to composer.json in the root directory and look for
"Webkul\Discount\": "packages/Webkul/Discount/src", under psr-4
Step 4: Remove itStep 5: Again Go to config/app.php and add these under providers array.
Webkul\CatalogRule\Providers\CatalogRuleServiceProvider::class,
Webkul\CartRule\Providers\CartRuleServiceProvider::class,
Webkul\Rule\Providers\RuleServiceProvider::class,Step 6: Now Go to composer.json again in the root directory and add these under psr-4
"Webkul\CatalogRule\":"packages/Webkul/CatalogRule/src",
"Webkul\CartRule\":"packages/Webkul/CartRule/src",
"Webkul\Rule\":"packages/Webkul/Rule/src",Step 7: Run php artisan vendor:publish --force
Step 8: Run composer dump-autoload. -
@aayush-bhatt172 yes i've already done that, and still throwing that error
-
@aayush-bhatt172 said in bug when creating a product in update from v0.1.8 to v.1.0.0:
Webkul\Discount\Providers\DiscountServiceProvider::class,
if there's no product in database, its not throwing that error
-
@ehdava
It seem that your bagisto has not updated correctly, Please mention the steps that you have used to update. -
@Jyoti i'm following the step from here https://devdocs.bagisto.com/upgrade_to_latest_bagisto.html