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

Bagisto

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

Php Version error when installing bagisto

Installing Bagisto
3
19
3.5k
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.
  • K
    Kyaw Soe Aung last edited by Kyaw Soe Aung 31 Jan 2023, 03:25 29 Jan 2023, 14:35

    I updated PHP version to 8 showing this error

    Parse error: syntax error, unexpected '|', expecting variable (T_VARIABLE) in /bagisto/vendor/nunomaduro/termwind/src/Functions.php on line 17
    

    when downgrade to 7.4 showing this error

     Problem 1
        - Root composer.json requires codeception/module-asserts ^3.0.0 -> satisfiable by codeception/module-asserts[3.0.0].
        - codeception/module-asserts 3.0.0 requires php ^8.0 -> your php version (7.4.33) does not satisfy that requirement.
      Problem 2
        - Root composer.json requires codeception/module-filesystem ^3.0.0 -> satisfiable by codeception/module-filesystem[3.0.0].
        - codeception/module-filesystem 3.0.0 requires php ^8.0 -> your php version (7.4.33) does not satisfy that requirement.
      Problem 3
        - laravel/framework[v9.0.0-beta.1, ..., 9.x-dev] require php ^8.0.2 -> your php version (7.4.33) does not satisfy that requirement.
        - Root composer.json requires laravel/framework ^9.0 -> satisfiable by laravel/framework[v9.0.0-beta.1, ..., 9.x-dev]
    
    1 Reply Last reply Reply Quote 0
    • sanjay-webkul
      sanjay-webkul last edited by 30 Jan 2023, 08:17

      Hi there,
      Can you please share the steps which you are following for installing the Bagisto? And which version of Bagisto are you trying to install?

      K 3 Replies Last reply 31 Jan 2023, 03:24 Reply Quote 0
      • K
        Kyaw Soe Aung last edited by Kyaw Soe Aung 30 Jan 2023, 15:52 30 Jan 2023, 15:50

        ![alt text](Screen Shot 2023-01-29 at 20.45.27.png image url)
        this occour when php version is 7.4

        1 Reply Last reply Reply Quote 0
        • K
          Kyaw Soe Aung last edited by 30 Jan 2023, 15:51

          Parse error: syntax error, unexpected '|', expecting variable (T_VARIABLE) in /Users/kyawsoeaung/code/bagisto/vendor/nunomaduro/termwind/src/Functions.php on line 17
          

          this occurs when PHP version is 8.2

          1 Reply Last reply Reply Quote 0
          • K
            Kyaw Soe Aung last edited by Kyaw Soe Aung 30 Jan 2023, 15:55 30 Jan 2023, 15:54

            Screen Shot 2023-01-30 at 22.24.10.png
            this is bagisto version

            1 Reply Last reply Reply Quote 0
            • K
              Kyaw Soe Aung @sanjay-webkul last edited by 30 Jan 2023, 15:57

              @sanjay-webkul Screen Shot 2023-01-30 at 22.24.10.png

              Bagisto Version

              1 Reply Last reply Reply Quote 0
              • K
                Kyaw Soe Aung @sanjay-webkul last edited by 30 Jan 2023, 15:59

                @sanjay-webkul

                 Parse error: syntax error, unexpected '|', expecting variable (T_VARIABLE) in /Users/kyawsoeaung/code/bagisto/vendor/nunomaduro/termwind/src/Functions.php on line 17
                

                this error occur when php version is 8.2, please help

                1 Reply Last reply Reply Quote 0
                • K
                  Kyaw Soe Aung @sanjay-webkul last edited by 31 Jan 2023, 03:24

                  @sanjay-webkul Screen Shot 2023-01-31 at 09.53.25.png
                  Composer Version

                  1 Reply Last reply Reply Quote 0
                  • sanjay-webkul
                    sanjay-webkul last edited by 31 Jan 2023, 11:45

                    Hi there,
                    Please try with php v8.1 and still you will get the same issue then please let me know.

                    K 2 Replies Last reply 31 Jan 2023, 14:20 Reply Quote 0
                    • K
                      Kyaw Soe Aung @sanjay-webkul last edited by Kyaw Soe Aung 31 Jan 2023, 14:16 31 Jan 2023, 14:15

                      @sanjay-webkul Screen Shot 2023-01-31 at 20.44.02.png
                      change to php 8.1 but error not change
                      Screen Shot 2023-01-31 at 20.45.10.png

                      Parse error: syntax error, unexpected '|', expecting variable (T_VARIABLE) in /Users/kyawsoeaung/code/bagisto/vendor/nunomaduro/termwind/src/Functions.php on line 17
                      
                      1 Reply Last reply Reply Quote 0
                      • K
                        Kyaw Soe Aung @sanjay-webkul last edited by 31 Jan 2023, 14:20

                        @sanjay-webkul The same issue not get any solutin yet

                        1 Reply Last reply Reply Quote 0
                        • sanjay-webkul
                          sanjay-webkul last edited by 2 Feb 2023, 07:27

                          Hi there,
                          Please follows the given steps for installing the Bagisto and make sure all the requirements for Bagisto should be meet on your system

                          git clone -b v1.4.5 https://github.com/bagisto/bagisto.git
                          cd bagisto
                          composer create
                          edit your .env file  configure database,email credentials and set the APP_URL
                          php artisan bagisto:install
                          K 1 Reply Last reply 2 Feb 2023, 17:04 Reply Quote 0
                          • K
                            Kyaw Soe Aung @sanjay-webkul last edited by 2 Feb 2023, 17:04

                            @sanjay-webkul I followed step by step as above but the error still occurs

                            Parse error: syntax error, unexpected '|', expecting variable (T_VARIABLE) in /Users/kyawsoeaung/code/bagisto/vendor/nunomaduro/termwind/src/Functions.php on line 17
                            
                            K 1 Reply Last reply 2 Feb 2023, 17:08 Reply Quote 0
                            • K
                              Kyaw Soe Aung @Kyaw Soe Aung last edited by 2 Feb 2023, 17:08

                              @Kyaw-Soe-Aung this error also

                              Illegal offset type in isset or empty (View: /Users/kyawsoeaung/code/bagisto/resources/themes/velocity/views/home/index.blade.php)
                              
                              1 Reply Last reply Reply Quote 0
                              • sanjay-webkul
                                sanjay-webkul last edited by 3 Feb 2023, 07:29

                                I guess you run composer update command that's why this error is occurring.

                                Illegal offset type in isset or empty (View: /Users/kyawsoeaung/code/bagisto/resources/themes/velocity/views/home/index.blade.php)
                                1 Reply Last reply Reply Quote 0
                                • sanjay-webkul
                                  sanjay-webkul last edited by 3 Feb 2023, 07:30

                                  Please create a support ticket Here. i need to check on your instance.

                                  1 Reply Last reply Reply Quote 0
                                  • 2 months later
                                  • H
                                    httpsdoug last edited by 20 Mar 2023, 20:41

                                    Follow these steps:

                                    • mkdir bagisto
                                    • cd bagisto
                                    • composer create-project bagisto/bagisto=1.4.5

                                    In March 2023 with PHP 8.1 it will be enough for your installation to work

                                    1 Reply Last reply Reply Quote 0
                                    • sanjay-webkul
                                      sanjay-webkul last edited by 21 Mar 2023, 07:06

                                      Hi there,
                                      please follows the given steps for installing the Bagisto.

                                      1. git clone -b v1.4.5 https://github.com/bagisto/bagisto.git
                                      2. cd bagisto
                                      3. composer create
                                      4. nano .env [configure app_url, email and database credentials]
                                      5. php artisan bagisto:install

                                      1 Reply Last reply Reply Quote 0
                                      • sanjay-webkul
                                        sanjay-webkul last edited by 21 Mar 2023, 07:06

                                        And if still you are facing any issue then please let me know.

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