Closed prbt2016 closed 1 month ago
Your URL should not have public
in the URL.
If you run php artisan migrate
and then try the setup again, what happens?
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? make:observer serve {"exception":"[object] (Symfony\Component\Console\Exception\CommandNotFoundException(code: 0): Command \"server\" is not defined.
Did you mean one of these? make:observer serve at C:\xampp\htdocs\laravel-filament-ticket\filamentproject\vendor\symfony\console\Application.php:704) [stacktrace]
"} [2024-04-29 08:19:02] local.ERROR: SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: countries.name (Connection: sqlite, SQL: insert into "countries" ("updated_at", "created_at") values (2024-04-29 08:19:02, 2024-04-29 08:19:02)) {"userId":1,"exception":"[object] (Illuminate\Database\QueryException(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: countries.name (Connection: sqlite, SQL: insert into \"countries\" (\"updated_at\", \"created_at\") values (2024-04-29 08:19:02, 2024-04-29 08:19:02)) at C:\xampp\htdocs\laravel-filament-ticket\filamentproject\vendor\laravel\framework\src\Illuminate\Database\Connection.php:813) [stacktrace]
[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) [stacktrace]
"} [2024-04-29 08:19:12] local.ERROR: SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: countries.name (Connection: sqlite, SQL: insert into "countries" ("updated_at", "created_at") values (2024-04-29 08:19:12, 2024-04-29 08:19:12)) {"userId":1,"exception":"[object] (Illuminate\Database\QueryException(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: countries.name (Connection: sqlite, SQL: insert into \"countries\" (\"updated_at\", \"created_at\") values (2024-04-29 08:19:12, 2024-04-29 08:19:12)) at C:\xampp\htdocs\laravel-filament-ticket\filamentproject\vendor\laravel\framework\src\Illuminate\Database\Connection.php:813) [stacktrace]
[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) [stacktrace]
"} [2024-04-30 03:37:39] local.ERROR: Class "App\Models\Employees" not found {"userId":1,"exception":"[object] (Error(code: 0): Class \"App\Models\Employees\" not found at C:\xampp\htdocs\laravel-filament-ticket\filamentproject\vendor\filament\filament\src\Resources\Resource.php:340) [stacktrace]
"} [2024-04-30 03:38:07] local.ERROR: Class "App\Models\Employees" not found {"userId":1,"exception":"[object] (Error(code: 0): Class \"App\Models\Employees\" not found at C:\xampp\htdocs\laravel-filament-ticket\filamentproject\vendor\filament\filament\src\Resources\Resource.php:340) [stacktrace]
"} [2024-04-30 03:38:32] local.ERROR: Class "App\Models\Employees" not found {"userId":1,"exception":"[object] (Error(code: 0): Class \"App\Models\Employees\" not found at C:\xampp\htdocs\laravel-filament-ticket\filamentproject\vendor\filament\filament\src\Resources\Resource.php:340) [stacktrace]
"} [2024-04-30 03:48:34] local.ERROR: Add [first_name] to fillable property to allow mass assignment on [App\Models\Employee]. {"userId":1,"exception":"[object] (Illuminate\Database\Eloquent\MassAssignmentException(code: 0): Add [first_name] to fillable property to allow mass assignment on [App\Models\Employee]. at C:\xampp\htdocs\laravel-filament-ticket\filamentproject\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php:525) [stacktrace]
"} [2024-04-30 03:48:45] local.ERROR: Add [first_name] to fillable property to allow mass assignment on [App\Models\Employee]. {"userId":1,"exception":"[object] (Illuminate\Database\Eloquent\MassAssignmentException(code: 0): Add [first_name] to fillable property to allow mass assignment on [App\Models\Employee]. at C:\xampp\htdocs\laravel-filament-ticket\filamentproject\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php:525) [stacktrace]
"} [2024-04-30 06:31:58] local.ERROR: syntax error, unexpected token "->" {"exception":"[object] (ParseError(code: 0): syntax error, unexpected token \"->\" at C:\xampp\htdocs\laravel-filament-ticket\filamentproject\app\Filament\Resources\EmployeeResource.php:72) [stacktrace]
"} [2024-04-30 06:31:59] local.ERROR: syntax error, unexpected token "->" {"exception":"[object] (ParseError(code: 0): syntax error, unexpected token \"->\" at C:\xampp\htdocs\laravel-filament-ticket\filamentproject\app\Filament\Resources\EmployeeResource.php:72) [stacktrace]
"} [2024-04-30 06:32:04] local.ERROR: syntax error, unexpected token "->" {"exception":"[object] (ParseError(code: 0): syntax error, unexpected token \"->\" at C:\xampp\htdocs\laravel-filament-ticket\filamentproject\app\Filament\Resources\EmployeeResource.php:72) [stacktrace]
"} [2024-04-30 06:35:41] local.ERROR: syntax error, unexpected token "->", expecting "]" {"exception":"[object] (ParseError(code: 0): syntax error, unexpected token \"->\", expecting \"]\" at C:\xampp\htdocs\laravel-filament-ticket\filamentproject\app\Filament\Resources\EmployeeResource.php:72) [stacktrace]
"} [2024-04-30 06:35:43] local.ERROR: syntax error, unexpected token "->", expecting "]" {"exception":"[object] (ParseError(code: 0): syntax error, unexpected token \"->\", expecting \"]\" at C:\xampp\htdocs\laravel-filament-ticket\filamentproject\app\Filament\Resources\EmployeeResource.php:72) [stacktrace]
"} [2024-04-30 06:36:14] local.ERROR: Filament\Tables\Table::columns(): Argument #1 ($components) must be of type array, int given, called in C:\xampp\htdocs\laravel-filament-ticket\filamentproject\app\Filament\Resources\EmployeeResource.php on line 72 {"userId":1,"exception":"[object] (TypeError(code: 0): Filament\Tables\Table::columns(): Argument #1 ($components) must be of type array, int given, called in C:\xampp\htdocs\laravel-filament-ticket\filamentproject\app\Filament\Resources\EmployeeResource.php on line 72 at C:\xampp\htdocs\laravel-filament-ticket\filamentproject\vendor\filament\tables\src\Table\Concerns\HasColumns.php:33) [stacktrace]
"}
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
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