snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

Upgrade from v3.6.6 to v4.0.5 | I'm trying to execute "php artisan migrate" I got error class not defined.

Open itims opened this issue 9 years ago • 9 comments

Hi, I'm trying to execute "php artisan migrate" I got error class not defined. "

[Symfony\Component\Debug\Exception\FatalThrowableError] Class 'Illuminate\Notifications\NotificationServiceProvider' not found"

Could you please help me?

image


Please provide answers to these questions before posting your bug report:

  • Version of Snipe-IT you're running - 3.6.6
  • What OS and web server you're running Snipe-IT on - Ubuntu 14 server & Apache2
  • What method you used to install Snipe-IT (install.sh, manual installation, docker, etc) - install.sh
  • WITH DEBUG TURNED ON, if you're getting an error in your browser, include that error
  • What specific Snipe-IT page you're on, and what specific element you're interacting with to trigger the error
  • If a stacktrace is provided in the error, include that too.
  • Any errors that appear in your browser's error console.
  • Confirm whether the error is reproduceable on the demo.
  • Include any additional information you can find in app/storage/logs and your webserver's logs.
  • Include what you've done so far in the installation, and if you got any error messages along the way.
  • Indicate whether or not you've manually edited any data directly in the database

itims avatar Sep 29 '17 06:09 itims

Remove the contents of the bootstrap/cache directory.

Then run:

composer dump
php artisan cache:clear
php artisan route:clear
php artisan view:clear

snipe avatar Sep 29 '17 08:09 snipe

I removed the contents of the "bootstrap/cache" then run composer dump. But I couldn't run the following commands, getting the same error as previous has happened. php artisan cache:clear php artisan route:clear php artisan view:clear image

itims avatar Sep 29 '17 11:09 itims

Did your composer install --no-dev --prefer-source give you any errors when you ran it?

snipe avatar Sep 29 '17 11:09 snipe

I didn't get any errors.

itims avatar Sep 29 '17 11:09 itims

image

itims avatar Sep 29 '17 11:09 itims

Try deleting the contents of your vendor directory and re-running the composer install command

snipe avatar Sep 29 '17 11:09 snipe

I deleted the contents of vendor directory and executed the composer install command. Then I'm trying to execute "php artisan migrate" I got error like this.

root@ashir:/var/www/snipeit# php artisan migrate PHP Fatal error: Class 'Illuminate\Foundation\Application' not found in /var/www/snipeit/bootstrap/app.php on line 14

itims avatar Sep 29 '17 13:09 itims

The log you pasted makes it look like you're missing some php extensions.. look further up in that.

mnemonicly avatar Sep 29 '17 14:09 mnemonicly

Could you please help me?

itims avatar Sep 29 '17 14:09 itims