-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Snipeit 6.4.0 throws Undefined variable: total_due_for_checkin error while fresh install #14692
Comments
Your URL should not have If you run |
Fixes #14692 - set default variables for sidebar totals
Hello @snipe , After running php artisan migrate command the setup starts and completes successfully. Is this fine ?. Regards. |
Yep, should be. 6.4.0 introduced a few additional bits in the middleware, but since those tables didn't exist for you yet, it was erroring. I've pushed out a patch to the master branch to avoid that issue ion the future. |
Okay thanks a lot . |
we have the same error..i am going to the pre flight page..but this happened...also did the same thing Error logs: [2024-04-29 07:28:28] local.ERROR: Command "server" is not defined. Did you mean one of these? Did you mean one of these? [previous exception] [object] (PDOException(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: countries.name at C:\xampp\htdocs\laravel-filament-ticket\filamentproject\vendor\laravel\framework\src\Illuminate\Database\Connection.php:571) [previous exception] [object] (PDOException(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: countries.name at C:\xampp\htdocs\laravel-filament-ticket\filamentproject\vendor\laravel\framework\src\Illuminate\Database\Connection.php:571) |
Debug mode
Describe the bug
Hello ,
I was in the process of manual installation of Snipeit 6.4.0 on Centos 7 with PHP 7.4/8.0/8.1 , MYSQL 5.5, Apache 2.2.
However, after downloading https://github.com/snipe/snipe-it/archive/refs/tags/v6.4.0.zip and after composer install , I renamed .env.example to .env and enetered db details in it and run php artisan key:generate to generate the APP_KEY.
However on running setup i.e
http://{{DOMAIN.COM}}/{{SNIPEIT-FOLDER}}/public/setup
I get the following error :
So to debug the same I changed APP_ENV to local and APP_DEBUG to true . I see the following error i.e :
ErrorException Undefined variable: total_due_for_checkin
Following is the screenshot of the same :
Reproduction steps
2.Run php composer.phar install --no-dev
3.Enter db details in .env file
...
Expected behavior
Snipeit setup should start correctly.
Screenshots
No response
Snipe-IT Version
6.4.0
Operating System
Centos 7
Web Server
Apache 2.2/2.4
PHP Version
7.4, 8.0, 8.1
Operating System
No response
Browser
115.10.0esr (64-bit)
Version
No response
Device
No response
Operating System
No response
Browser
No response
Version
No response
Error messages
Additional context
No response
The text was updated successfully, but these errors were encountered: