Cannot use Package Generator and cannot use admin/configuration
-
Hello!
-
I've installed Bagisto by following your official docs here: https://devdocs.bagisto.com/1.x/introduction/installation.html
-
Tried to install Bagisto Package Generator, but got:
"In InitCommand.php line 919: Could not find a version of package bagisto/bagisto-package-generator matching your minimum-stability (stable). Require it with an explicit version constraint allowing its desired stability." -
Created Package manually based on your docs here: https://devdocs.bagisto.com/1.x/advanced/create-payment-method.html#_2-by-manually-setting-up-all-files
-
At /admin/configuration got an error Undefined array key "sort" at 1059 // if ($a['sort'] == $b['sort']) {
-
-
Hi there,
Can you please share a screenshot or short video? And which version of Bagisto are you using?
Thanks.
-
Sorry, but it will take too long for me to organize a video recording.
I did perform steps exact as described in your docs. Even my environment is the same you recommend to use (Ubuntu+Apache).
I was using CLI to install your system.
I don't know how to check Bagisto version - composer.json doesn't contain that info, but based on the theme I think it's a Bagisto 2.
-
Hi @euge001,
I understand your concern, Currently, we are updating our docs for compatibility with the Bagisto version 2.
Meanwhile, you can make some changes to run the admin panel and solve the exception.
Go to the this path:-
packages/Webkul/Stripe/src/Config/system.php
Here add sorting as 5.
and also replace the payment method updated key in the service provided.
Replace below key to the payment method in the below path:-
payment_methods
Path:-
packages/Webkul/Stripe/src/Providers/StripeServiceProvider.php
If you still facing the same please let us know.
-
- Ive added sorting as 5 at my src/Config/system.php
- Absolutely impossible to understand what you mean by: "Replace below key to the payment method in the below path:- payment_methods Path:- packages/Webkul/Stripe/src/Providers/StripeServiceProvider.php"
Yes, I have my ServiceProvider and the only piece of code which is relevant to what you recommend me to do is:
protected function registerConfig()
{
$this->mergeConfigFrom(
dirname(DIR) . '/Config/paymentmethods.php', 'paymentmethods'
);
so you mean I have to replace 'paymentmethods' with 'payment_methods' right?
If so - it doesn't work anyway and I the old error still persist.
-
@euge001 no answer?
-
Hello there,
The Bagisto Doc has been updated. Please go through and take a reference from here.
If you still facing the same please let us know.
-
I am getting same error after installing Stripe manually.
In admin configure menu , i am getting error as below -
Undefined array key "sort"
URL - admin/configuration
Kindly Help.
-
Is there any issue which is appearing realted to the Stripe or Cashier version.
Can you please share the screenshot of the error.
Thanks