luyadev / luya-module-payment

Abstraction layer for online payments with PayPal, SaferPay and others
MIT License
10 stars 4 forks source link

migration issue on windows #15

Closed xklake closed 5 years ago

xklake commented 5 years ago

What steps will reproduce the problem?

After install extension, running this on dos

./vendor/bin/luya.bat migrate string(15) "configs/env.php" array(2) { 'id' => string(10) "consoleapp" 'basePath' => string(54) "C:\xampp\htdocs\pandablog.com\vendor\luyadev\luya-core" } Yii Migration Tool (based on Yii v2.0.25)

Error: Failed to instantiate component or class "db".

How should i do to remove this issue? i am not very familiar with Yii2.

What is the expected result?

No error

What do you get instead? (A Screenshot can help us a lot!)

LUYA Check ouput (run this script and post the result: luyacheck.php)

Additional infos

Q A
LUYA Version latest
PHP Version 5.6
Platform Apache/XAMPP/MAMPP/etc.
Operating system Windows/Linux Server/OSX/etc.
xklake commented 5 years ago

after i added db configuration into component, run again

vendor\bin\luya.bat migrate create string(15) "configs/env.php" Yii Migration Tool (based on Yii v2.0.25)

No new migrations found. Your system is up-to-date.

But no data table has been created.

when i tried the sample code to dispatch, It failed on $integrator = Module::getInstance()->getIntegrator();

on Pay.php

nadar commented 5 years ago

on windows you should do php index.php migrate in public html folder according to the docs: https://luya.io/guide/install-windows

xklake commented 5 years ago

That’s not for the same plugin.

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10


From: Basil notifications@github.com Sent: Wednesday, August 14, 2019 5:19:05 PM To: luyadev/luya-module-payment luya-module-payment@noreply.github.com Cc: Qiang Li joneleesz@hotmail.com; Author author@noreply.github.com Subject: Re: [luyadev/luya-module-payment] migration issue on windows (#15)

on windows you should do php index.php migrate in public html folder according to the docs: https://luya.io/guide/install-windows

― You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/luyadev/luya-module-payment/issues/15?email_source=notifications&email_token=ACABE4RARSZDXUNNCUKJJVTQEQV7TA5CNFSM4ILV72LKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4JKKRY#issuecomment-521315655, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACABE4UXDROUMKZL2QKPK6LQEQV7TANCNFSM4ILV72LA.

nadar commented 5 years ago

then i don't understand your question. because LUYA does not have a bat, so i am not sure where your bat files is from nor where this dump happens.

xklake commented 5 years ago

I read the document from here,

https://github.com/luyadev/luya-module-payment/blob/master/guide/setup.md

the bat for window or sh script on /vendor/bin/luya.

I have manually added DB component to fix migrate error, but nothing can be imported my database. Also it still failed to create Pay Module.

I have to switch to other payment extension due to there is not much document and it seems not too many dev are using this extension.

But thank you very much anyway, Basil.

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10


From: Basil notifications@github.com Sent: Thursday, August 15, 2019 8:10:54 AM To: luyadev/luya-module-payment luya-module-payment@noreply.github.com Cc: Qiang Li joneleesz@hotmail.com; Author author@noreply.github.com Subject: Re: [luyadev/luya-module-payment] migration issue on windows (#15)

then i don't understand your question. because LUYA does not have a bat, so i am not sure where your bat files is from nor where this dump happens.

― You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/luyadev/luya-module-payment/issues/15?email_source=notifications&email_token=ACABE4V5BMTV3BE6KMQLBM3QET6P5A5CNFSM4ILV72LKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4LBI2Q#issuecomment-521540714, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACABE4RS2ZPRTDF2NMCRQNLQET6P5ANCNFSM4ILV72LA.

nadar commented 5 years ago

The luya payment requires LUYA core and LUYA application setup, so i assume this is what was missing. its not yii2 only. Read more about LUYA if you like: https://luya.io/

Welcome! :-)

xklake commented 5 years ago

They are all downloaded by my composer.

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10


From: Basil notifications@github.com Sent: Thursday, August 15, 2019 8:17:39 AM To: luyadev/luya-module-payment luya-module-payment@noreply.github.com Cc: Qiang Li joneleesz@hotmail.com; Author author@noreply.github.com Subject: Re: [luyadev/luya-module-payment] migration issue on windows (#15)

The luya payment requires luya core and luya application setup, so i assume this is what was missing. its not yii2 only. Read more about LUYA if you like: https://luya.io/

Welcome! :-)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/luyadev/luya-module-payment/issues/15?email_source=notifications&email_token=ACABE4RZC3YP7NFVSLFLZ4LQET7JHA5CNFSM4ILV72LKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4LBU5Q#issuecomment-521542262, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACABE4QUR5NMKMNJKELTLXDQET7JHANCNFSM4ILV72LA.

nadar commented 5 years ago

Yes but you need the application setup like this: https://github.com/luyadev/luya-kickstarter and then add the payment module (or https://github.com/luyadev/luya-kickstarter-core or https://github.com/luyadev/luya-kickstarter-bootstrap4)

xklake commented 5 years ago

OMG, I am so silly, now I realize this is not for Yii2.i must did some searches then forget to check this extension is not for yii2. Sorry for this trouble.

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10


From: Basil notifications@github.com Sent: Thursday, August 15, 2019 8:23:13 AM To: luyadev/luya-module-payment luya-module-payment@noreply.github.com Cc: Qiang Li joneleesz@hotmail.com; Author author@noreply.github.com Subject: Re: [luyadev/luya-module-payment] migration issue on windows (#15)

Yes but you need the application setup like this: https://github.com/luyadev/luya-kickstarter and then add the payment module (or https://github.com/luyadev/luya-kickstarter-core or https://github.com/luyadev/luya-kickstarter-bootstrap4)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/luyadev/luya-module-payment/issues/15?email_source=notifications&email_token=ACABE4Q2BT35JADWFZ3PFBLQET76DA5CNFSM4ILV72LKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4LB7LQ#issuecomment-521543598, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACABE4REKSI25DWO5R7FVI3QET76DANCNFSM4ILV72LA.

nadar commented 5 years ago

well LUYA is Yii2 - but yes it won't work only with Yii 2 :-)

No problem, your welcome. Try out luya.io maybe you like it