Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

eddieace's avatar

Package guzzle/guzzle is abandoned error

For some reason I get this error. I have recently moved my laravel project from one VPS to another and when I try to deploy to my new server is get this composer error. I have tried to update the require in composer.json. I still get the same error.

    "require": {
        "laravel/framework": "5.0.*",
        "laracasts/utilities": "~2.0",
        "pda/pheanstalk": " ~3.0",
        "webpatser/laravel-uuid": "1.*",
        "guzzlehttp/guzzle": "~5.0",
        "laravelcollective/html": "~5.0",
        "tymon/jwt-auth": "0.5.3",
        "propaganistas/laravel-phone": "~2.0",
        "parse/php-sdk" : "1.1.*",
        "jenssegers/agent": "^2.2",
        "graham-campbell/flysystem": "~2.1",
        "league/flysystem-aws-s3-v2": "~1.0",
        "aws/aws-sdk-php-laravel": "~2.0",
        "intervention/image": "^2.3"
    }
Package guzzle/guzzle is abandoned, you should avoid using it. Use guzzlehttp/guzzle instead.
Writing lock file
Generating autoload files
> php artisan clear-compiled
PHP Fatal error:  Uncaught TypeError: Argument 1 passed to App\Exceptions\Handler::report() must be an instance of Exception, instance of Error given, called in /home/forge/XXXX.XXXXXXX.XX/releases/201612312362744/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php on line 73 and defined in /home/forge/XXXX.XXXXXXX.XX/releases/201612312362744/app/Exceptions/Handler.php:25
Stack trace:
#0 /home/forge/XXXX.XXXXXXX.XX/releases/201612312362744/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(73): App\Exceptions\Handler->report(Object(Error))
#1 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleException(Object(Error))
#2 {main}
  thrown in /home/forge/XXXX.XXXXXXX.XX/releases/201612312362744/app/Exceptions/Handler.php on line 25
                                                                                                                                                                                                                                                                                                                                                                      
  [Symfony\Component\Debug\Exception\FatalErrorException]                                                                                                                                                                                                                                                                                                                                                                     
  Uncaught TypeError: Argument 1 passed to App\Exceptions\Handler::report() must be an instance of Exception, instance of Error given, called in /home/forge/XXXX.XXXXXXX.XX/releases/201612312362744/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php on line 73 and defined in /home/forge/jobb.beautifullinesofcode.se/releases/201612312362744/app/Exceptions/Handler.php:25  
  Stack trace:                                                                                                                                                                                                                                                                                                                                                                                                                
  #0 /home/forge/XXXX.XXXXXXX.XX/releases/201612312362744/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(73): App\Exceptions\Handler->report(Object(Error))                                                                                                                                                                                                                    
  #1 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleException(Object(Error))                                                                                                                                                                                                                                                                                                                    
  #2 {main}                                                                                                                                                                                                                                                                                                                                                                                                                   
    thrown                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                              
Script php artisan clear-compiled handling the post-update-cmd event returned with error code 255
0 likes
8 replies
eddieace's avatar

@tomi but my local development server runs php 7. So i guess there should not be a problem. The old webbserver run php 5.X something.

tomopongrac's avatar

i dont understand do your app works on local development server with php7?

which laravel version do you have

eddieace's avatar

I updated laravel to 5.1 now and I don't get the same error. Instead I get this error. It's included in the config/app.php.

Any clues? @tomi

[2016-08-30 10:39:31] dev.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Class 'Laracasts\Utilities\JavaScript\JavascriptServiceProvider' not found in /home/forge/xxxx.xxxxx.xxx/releases/201645354350083720/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:
eddieace's avatar

I found the answer. Change change /JavascriptServiceProvider/ to JavaScriptServiceProvider with Capital 'S'

Laracasts\Utilities\JavaScript\JavaScriptServiceProvider.
sandeepnaroliya's avatar

Hi , i am installing intervention/image in my laravel 5.4.28 and php 7.1.4 but i got error Package guzzle/guzzle is abandoned, you should avoid using it. Use guzzlehttp/guzzle instead. Generating optimized autoload files

Installation failed, reverting ./composer.json to its original content.

[RuntimeException] Could not scan for classes inside "C:\xampp\htdocs\shutterbug\vendor/sebastian/environment/src/" which does not app ear to be a file nor a folder.

Please or to participate in this conversation.