Recent Topics

run bagisato on php 8.1



  • Hello

    i have bagisto 1.3.2 and Im trying to work with PHP 8.1 but it give me error

    In Collection.php line 13:
                                                                                                                                                                                                                                                                                                            
      During inheritance of ArrayAccess: Uncaught ErrorException: Return type of Illuminate\Support\Collection::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the n  
      otice in /Users/abbaskhajah/Homestead/Sites/kidsstore/vendor/laravel/framework/src/Illuminate/Collections/Collection.php:1443                                                                                                                                                                         
      Stack trace:                                                                                                                                                                                                                                                                                          
      #0 /Users/abbaskhajah/Homestead/Sites/kidsstore/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(13): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8192, 'Return type of ...', '/Users/abbaskha...', 1443)                                                         
      #1 /Users/abbaskhajah/Homestead/Sites/kidsstore/vendor/composer/ClassLoader.php(571): include('/Users/abbaskha...')                                                                                                                                                                                   
      #2 /Users/abbaskhajah/Homestead/Sites/kidsstore/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile('/Users/abbaskha...')                                                                                                                                                             
      #3 /Users/abbaskhajah/Homestead/Sites/kidsstore/vendor/laravel/framework/src/Illuminate/Collections/helpers.php(15): Composer\Autoload\ClassLoader->loadClass('Illuminate\\Supp...')                                                                                                                  
      #4 /Users/abbaskhajah/Homestead/Sites/kidsstore/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php(130): collect(Array)                                                                                                                                                           
      #5 /Users/abbaskhajah/Homestead/Sites/kidsstore/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php(106): Illuminate\Foundation\PackageManifest->build()                                                                                                                           
      #6 /Users/abbaskhajah/Homestead/Sites/kidsstore/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php(89): Illuminate\Foundation\PackageManifest->getManifest()                                                                                                                      
      #7 /Users/abbaskhajah/Homestead/Sites/kidsstore/vendor/laravel/framework/src/Illuminate/Foundation/PackageManifest.php(78): Illuminate\Foundation\PackageManifest->config('aliases')                                                                                                                  
      #8 /Users/abbaskhajah/Homestead/Sites/kidsstore/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterFacades.php(26): Illuminate\Foundation\PackageManifest->aliases()                                                                                                                
      #9 /Users/abbaskhajah/Homestead/Sites/kidsstore/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(237): Illuminate\Foundation\Bootstrap\RegisterFacades->bootstrap(Object(Illuminate\Foundation\Application))                                                                        
      #10 /Users/abbaskhajah/Homestead/Sites/kidsstore/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(310): Illuminate\Foundation\Application->bootstrapWith(Array)                                                                                                                  
      #11 /Users/abbaskhajah/Homestead/Sites/kidsstore/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(127): Illuminate\Foundation\Console\Kernel->bootstrap()                                                                                                                        
      #12 /Users/abbaskhajah/Homestead/Sites/kidsstore/artisan(37): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))                                                                                 
      #13 {main}                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                            
    
    Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255
    
    

    please advise

    best regards



  • Hello !!!!



  • can any help me out here !!!



  • Hello @cmpengineers,

    Bagisto 1.3.2 is not compatible with PHP 8.1.


Log in to reply