• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

  • Register
  • Login
  • Search
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups

Cannot use Package Generator and cannot use admin/configuration

General Discussion
4
9
772
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E
    euge001 last edited by 23 Oct 2023, 08:29

    Hello!

    1. I've installed Bagisto by following your official docs here: https://devdocs.bagisto.com/1.x/introduction/installation.html

    2. 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."

    3. 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

    4. At /admin/configuration got an error Undefined array key "sort" at 1059 // if ($a['sort'] == $b['sort']) {

    1 Reply Last reply Reply Quote 0
    • A
      Amitk-Webkul last edited by 25 Oct 2023, 03:28

      Hi there,

      Can you please share a screenshot or short video? And which version of Bagisto are you using?

      Thanks.

      1 Reply Last reply Reply Quote 0
      • E
        euge001 last edited by 25 Oct 2023, 04:38

        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.

        1 Reply Last reply Reply Quote 0
        • A
          Amitk-Webkul last edited by 26 Oct 2023, 04:18

          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.

          1 Reply Last reply Reply Quote 0
          • E
            euge001 last edited by 28 Oct 2023, 04:36

            1. Ive added sorting as 5 at my src/Config/system.php
            2. 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.

            E 1 Reply Last reply 6 Nov 2023, 04:49 Reply Quote 0
            • 9 days later
            • E
              euge001 @euge001 last edited by 6 Nov 2023, 04:49

              @euge001 no answer?

              1 Reply Last reply Reply Quote 0
              • A
                Amitk-Webkul last edited by 6 Nov 2023, 10:36

                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.

                1 Reply Last reply Reply Quote 0
                • 7 days later
                • K
                  Krishdutta last edited by 13 Nov 2023, 14:28

                  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.

                  ashish2409 1 Reply Last reply 14 Nov 2023, 06:15 Reply Quote 0
                  • ashish2409
                    ashish2409 @Krishdutta last edited by 14 Nov 2023, 06:15

                    @Krishdutta

                    Is there any issue which is appearing realted to the Stripe or Cashier version.

                    Can you please share the screenshot of the error.

                    Thanks

                    1 Reply Last reply Reply Quote 0
                    1 out of 9
                    • First post
                      1/9
                      Last post