bagisto: Can't locate path for migrations in bagisto/packages

Clean install via zip file and composer install but when publishing assets shows error: Can’t locate path

Copied Directory [/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/views] To [/resources/views/errors]
Copied Directory [/vendor/laravel/framework/src/Illuminate/Notifications/resources/views] To [/resources/views/vendor/notifications]
Copied Directory [/vendor/laravel/framework/src/Illuminate/Pagination/resources/views] To [/resources/views/vendor/pagination]
Copied File [/vendor/flynsarmy/db-blade-compiler/config/.gitkeep] To [/storage/app/db-blade-compiler/views/.gitkeep]
Can't locate path: </Users/john/Sites/bagisto/vendor/bagisto/bagisto/packages/Webkul/Attribute/src/resources/database/migrations>
Can't locate path: </Users/john/Sites/bagisto/vendor/bagisto/bagisto/packages/Webkul/BookingProduct/src/resources/database/migrations>
Can't locate path: </Users/john/Sites/bagisto/vendor/bagisto/bagisto/packages/Webkul/Category/src/resources/database/migrations>
Can't locate path: </Users/john/Sites/bagisto/vendor/bagisto/bagisto/packages/Webkul/Checkout/src/resources/database/migrations>
Can't locate path: </Users/john/Sites/bagisto/vendor/bagisto/bagisto/packages/Webkul/Core/src/resources/database/migrations>
Can't locate path: </Users/john/Sites/bagisto/vendor/bagisto/bagisto/packages/Webkul/Customer/src/resources/database/migrations>
Can't locate path: </Users/john/Sites/bagisto/vendor/bagisto/bagisto/packages/Webkul/Inventory/src/resources/database/migrations>
Can't locate path: </Users/john/Sites/bagisto/vendor/bagisto/bagisto/packages/Webkul/Product/src/resources/database/migrations>
Can't locate path: </Users/john/Sites/bagisto/vendor/bagisto/bagisto/packages/Webkul/Sales/src/resources/database/migrations>
Can't locate path: </Users/john/Sites/bagisto/vendor/bagisto/bagisto/packages/Webkul/Tax/src/resources/database/migrations>
Can't locate path: </Users/john/Sites/bagisto/vendor/bagisto/bagisto/packages/Webkul/User/src/resources/database/migrations>
Can't locate path: </Users/john/Sites/bagisto/vendor/bagisto/bagisto/packages/Webkul/CatalogRule/src/resources/database/migrations>
Can't locate path: </Users/john/Sites/bagisto/vendor/bagisto/bagisto/packages/Webkul/CartRule/src/resources/database/migrations>
Can't locate path: </Users/john/Sites/bagisto/vendor/bagisto/bagisto/packages/Webkul/CMS/src/resources/database/migrations>
Can't locate path: </Users/john/Sites/bagisto/vendor/bagisto/bagisto/packages/Webkul/Velocity/src/resources/database/migrations>
Copied Directory [/vendor/bagisto/bagisto/packages/Webkul/Admin/publishable/assets] To [/public/vendor/webkul/admin/assets]
Copied Directory [/vendor/bagisto/bagisto/packages/Webkul/Ui/publishable/assets] To [/public/vendor/webkul/ui/assets]
Copied Directory [/vendor/bagisto/bagisto/packages/Webkul/Shop/publishable/assets] To [/public/themes/default/assets]
Copied Directory [/vendor/bagisto/bagisto/packages/Webkul/Velocity/publishable/assets] To [/public/themes/velocity/assets]
Copied Directory [/vendor/bagisto/bagisto/packages/Webkul/Velocity/src/Resources/views/shop] To [/resources/themes/velocity/views]
Copied Directory [/vendor/bagisto/bagisto/packages/Webkul/BookingProduct/publishable/assets] To [/public/themes/default/assets]
Copied Directory [/packages/Webkul/UpgradeVersion/publishable/assets] To [/public/vendor/webkul/upgrade-version/assets]
Copied Directory [/vendor/laravel/framework/src/Illuminate/Mail/resources/views] To [/resources/views/vendor/mail]
Publishing complete.

Environment is docker nginx 1.6 / php-fpm 7.3.16

Looking at the code inside class CartRuleServiceProvider it loads the migrations from: $this->loadMigrationsFrom(DIR . ‘/…/Database/Migrations’);

But composer is looking in resources with lowercase: /Users/john/Sites/bagisto/vendor/bagisto/bagisto/packages/Webkul/CartRule/src/resources/database/migrations

The real path is: /Users/john/Sites/bagisto/vendor/bagisto/bagisto/packages/Webkul/CartRule/src/Database/Migrations

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 16 (3 by maintainers)

Commits related to this issue

Most upvoted comments

@howdu this bug is fixed now. kindly install bagisto from the master branch and check.

@sergiocntr make sure the rewrite_mode is enabled in the apache configuration.

@sergiocntr you may follow the below steps to install the bagisto

  1. download the zip from here https://bagisto.com/en/download/
  2. unzip the respective zip
  3. run composer create-project inside project root directory
  4. go to the .env and add database credentials

run the below commands

php artisan migrate php artisan db:seed php artisan vendor:publish --force