Laravel update via Composer

Asked

Viewed 4,659 times

1

[Runtimeexception]
Error Output: PHP Warning: PHP Startup: Unable to load Dynamic library /usr/lib/php5/20121212+lfs/Curl.so' - /usr/lib/i386-linux-gnu/libgssapi.so. 3: Symbol krb5_ntlm_init_get_challange, version HEIMDAL_KRB5_2.0 not defined in file libkrb5.so.26 with link time Reference in Unknown on line 0
PHP Fatal error: Class 'Collective Html Htmlserviceprovider' not found in /var/www/Laravel/Laravel/vendor/Laravel/framework/src/Illuminate/Foundation/Providerrepository.php on line 150

Does anyone know why you’re making this mistake, I’m a beginner with Poser, someone could explain to me, because I’m trying to do what this response suggests.

  • Is Curl installed on your system? Try typing on the console: curl -V if you show the version, it is installed. If it does not show and you are using Ubuntu or another distro based on Debian, install with: sudo apt-get install curl. Then try again.

  • Ah, if it’s installed, see if the php5-curl is installed looking for function <?php phpinfo(); ?>. You have to have Curl there. If you don’t have, sudo apt-get install php5-curl.

2 answers

0

in this specific case the error occurred in the file /var/www/Laravel/vendor/Laravel/framework/src/Illuminate/Foundation/Providerrepository.php after I ran Composer update, the error was on line 150, in case it was a syntax error, thanks for trying to help.

0


The problem is time for Composer to download updates.

Laravel includes in the Composer file some internal commands for Cache cleaning, Autoload optimization, etc:

"scripts": {
    "post-install-cmd": [
        "php artisan clear-compiled",
        "php artisan optimize"
    ],
    "post-update-cmd": [
        "php artisan clear-compiled",
        "php artisan optimize"
    ],
    "post-create-project-cmd": [
        "php -r \"copy('.env.example', '.env');\"",
        "php artisan key:generate"
    ]
},

In the posted reply, failed to inform an important step: to execute the composer update after changing the file composer.json. How Composer executes an Laravel command and then you entered the Service Provider Collective\Html\HtmlServiceProvider, the same did not exist at the time and caused the error.

You can correct in two ways:

  1. Removing the Collective\Html\HtmlServiceProvider of config\app.php and inserting again after update.

  2. Updating Composer without pre and post update commands: composer update --no-scripts

Browser other questions tagged

You are not signed in. Login or sign up in order to post.