Php Version error when installing bagisto
- 
					
					
					
					
 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 17when 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]
- 
					
					
					
					
 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?
- 
					
					
					
					
  image url) image url)
 this occour when php version is 7.4
- 
					
					
					
					
 Parse error: syntax error, unexpected '|', expecting variable (T_VARIABLE) in /Users/kyawsoeaung/code/bagisto/vendor/nunomaduro/termwind/src/Functions.php on line 17this occurs when PHP version is 8.2 
- 
					
					
					
					
  
 this is bagisto version
- 
					
					
					
					
 Bagisto Version 
- 
					
					
					
					
 Parse error: syntax error, unexpected '|', expecting variable (T_VARIABLE) in /Users/kyawsoeaung/code/bagisto/vendor/nunomaduro/termwind/src/Functions.php on line 17this error occur when php version is 8.2, please help 
- 
					
					
					
					
 @sanjay-webkul  
 Composer Version
- 
					
					
					
					
 Hi there, 
 Please try with php v8.1 and still you will get the same issue then please let me know.
- 
					
					
					
					
 @sanjay-webkul  
 change to php 8.1 but error not change
  Parse error: syntax error, unexpected '|', expecting variable (T_VARIABLE) in /Users/kyawsoeaung/code/bagisto/vendor/nunomaduro/termwind/src/Functions.php on line 17
- 
					
					
					
					
 @sanjay-webkul The same issue not get any solutin yet 
- 
					
					
					
					
 Hi there, 
 Please follows the given steps for installing the Bagisto and make sure all the requirements for Bagisto should be meet on your systemgit 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
- 
					
					
					
					
 @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
- 
					
					
					
					
 @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)
- 
					
					
					
					
 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)
- 
					
					
					
					
 Please create a support ticket Here. i need to check on your instance. 
- 
					
					
					
					
 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 
- 
					
					
					
					
 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
- 
					
					
					
					
 And if still you are facing any issue then please let me know. 
 
			
		