Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't locate path for migrations in bagisto/packages #3807

Closed
howdu opened this issue Aug 20, 2020 · 16 comments
Closed

Can't locate path for migrations in bagisto/packages #3807

howdu opened this issue Aug 20, 2020 · 16 comments
Assignees
Labels
Bug Fixed When bug issue is fixed. Bug Something isn't working.

Comments

@howdu
Copy link
Contributor

howdu commented Aug 20, 2020

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

@ghermans ghermans added the Bug Something isn't working. label Aug 20, 2020
@devansh-webkul devansh-webkul self-assigned this Sep 2, 2020
@devansh-webkul
Copy link
Member

devansh-webkul commented Sep 2, 2020

Hi @howdu,

May I know the steps to reproduce this bug. For e.g. setting up db, config files and which command you run for publishing.

Screenshot from 2020-09-02 14-09-50

As I am not facing this issue.

@devansh-webkul devansh-webkul added the Question Further information is requested. label Sep 2, 2020
@vaishaliwebkul vaishaliwebkul removed the Bug Something isn't working. label Sep 5, 2020
@CodeCures
Copy link

has anyone been able to fix this. am having the same issues and lot other errors
This is what happens when i run php artisan vendor:publish
publish_error

Well, I thought it was a minor issue until i tried to login to admin dashboard and that's where i gave up

admin_error

@vaishaliwebkul vaishaliwebkul added the Bug Something isn't working. label Sep 7, 2020
@vaishaliwebkul
Copy link

Steps to reproduce:

composer create-project bagisto/bagisto-standard

Run
php artisan migrate
php artisan db:seed
php artisan vendor:publish and press 0

@hakimramzani
Copy link

hi, may I know if this issue has been resolved? I still encountered this issue

@hakimramzani
Copy link

hakimramzani commented Sep 26, 2020

I just found the resolution to this issue, for those interested.

the issue is related to this library that resided in laravel project: vendor/konekt/concord/src/Conventions/ConcordDefault.php

`
public function migrationsFolder(): string
{
// return 'resources/database/migrations';
return 'database/migrations';

}
`

inside file ConcordDefault.php, change line 147 like above. I just commented out the library code and replace with new line return database/migrations;.

now, run command php artisan vendor:publish should work fine.

@devansh-webkul
Copy link
Member

I just found the resolution to this issue, for those interested.

the issue is related to this library that resided in laravel project: vendor/konekt/concord/src/Conventions/ConcordDefault.php

`
public function migrationsFolder(): string
{
// return 'resources/database/migrations';
return 'database/migrations';

}
`

inside file ConcordDefault.php, change line 147 like above. I just commented out the library code and replace with new line return database/migrations;.

now, run command php artisan vendor:publish should work fine.

@hakimwd

But this is not a right way, you cannot write the line in the vendor folder directly instead you need to overide this.

Otherwise you will face problem in updating dependencies.

Please check this PR i.e. #3920, this issue is already fixed.

@sergiocntr
Copy link

image

@sergiocntr
Copy link

image

@sergiocntr
Copy link

Sorry , I'm new.
github clone,did php artisan bagisto:install command.

  1. still get error message about path
  2. now I ended up to have 2 folders : one bagisto and one bagisto-standard that look like the same . The second has itself one vendor/bagisto/bagisto nearly as clone ....seems something strange to me....

@sergiocntr
Copy link

image

@vaishaliwebkul
Copy link

@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

@sergiocntr
Copy link

thank you @vaishaliwebkul
now it works on my local machine but online not...
http://developteamgold.altervista.org/ecommerce/bagisto/public/
es I can't add users, admin page http://developteamgold.altervista.org/ecommerce/bagisto/admin/login not found
Thanks again for your time I'm quite a newbie

@ghermans ghermans added the Bug Fixed When bug issue is fixed. label Oct 7, 2020
@vaishaliwebkul
Copy link

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

@vaishaliwebkul
Copy link

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

@devansh-webkul
Copy link
Member

This issue is now completely resolved. If someone is having an issue then please take a pull from master or check the PR in this issue i.e.,

  1. Fixed Migration Path Issue #3807 #3920
  2. Stopped Migration From Getting Published #4230

@kazmi99
Copy link

kazmi99 commented Sep 22, 2021

How can I resolve this error when I am getting it on c-Panel?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Fixed When bug issue is fixed. Bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

8 participants