-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Can't edit user, how can i fix it? #12100
Comments
what's the result of running |
c:\snipe-it>php artisan migrate In Request.php line 334: Symfony\Component\HttpFoundation\Request::create(): Argument #1 ($uri) must be of type string, null given, called i |
log error: [00:51:09] LOG.error: PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'users.start_date' in 'field list' in C:\snipe-it\vendor\laravel\framework\src\Illuminate\Database\Connection.php:368 Next Illuminate\Database\QueryException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'users.start_date' in 'field list' (SQL: select [00:51:09] LOG.error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'users.start_date' in 'field list' (SQL: select |
It's ok now. THX! |
Debug mode
Describe the bug
Last month, I built the Snipe-IT system (I have 4~5 times of building experience). Everything was working fine then. This is the first time I use GIT to manage the system, in order to facilitate the upgrade. After several upgrades, today I found that the user interface does not display the user, and creating a user will also report errors. Are there any other operations after using Git to upgrade? and I don't know what to do.
---------create error massage---------
Illuminate\Database\QueryException
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'start_date' in 'field list' (SQL: insert into
users
(email
,username
,password
,first_name
,last_name
,locale
,employee_num
,activated
,jobtitle
,phone
,location_id
,department_id
,company_id
,manager_id
,notes
,address
,city
,state
,country
,zip
,remote
,website
,created_by
,start_date
,end_date
,permissions
,updated_at
,created_at
) values (, test, $2y$10$MExL3rR03mIJmicjlftG/eM.jKC5QHl.rUmhM.dpK4LPfkrf37tlS, test, ?, ?, ?, 1, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 0, ?, 1, ?, ?, {"superuser":"0","admin":"0","import":"0","reports.view":"0","assets.view":"0","assets.create":"0","assets.edit":"0","assets.delete":"0","assets.checkin":"0","assets.checkout":"0","assets.audit":"0","assets.view.requestable":"0","accessories.view":"0","accessories.create":"0","accessories.edit":"0","accessories.delete":"0","accessories.checkout":"0","accessories.checkin":"0","accessories.files":"0","consumables.view":"0","consumables.create":"0","consumables.edit":"0","consumables.delete":"0","consumables.checkout":"0","consumables.files":"0","licenses.view":"0","licenses.create":"0","licenses.edit":"0","licenses.delete":"0","licenses.checkout":"0","licenses.keys":"0","licenses.files":"0","components.view":"0","components.create":"0","components.edit":"0","components.delete":"0","components.checkout":"0","components.checkin":"0","components.files":"0","kits.view":"0","kits.create":"0","kits.edit":"0","kits.delete":"0","users.view":"0","users.create":"0","users.edit":"0","users.delete":"0","models.view":"0","models.create":"0","models.edit":"0","models.delete":"0","categories.view":"0","categories.create":"0","categories.edit":"0","categories.delete":"0","departments.view":"0","departments.create":"0","departments.edit":"0","departments.delete":"0","statuslabels.view":"0","statuslabels.create":"0","statuslabels.edit":"0","statuslabels.delete":"0","customfields.view":"0","customfields.create":"0","customfields.edit":"0","customfields.delete":"0","suppliers.view":"0","suppliers.create":"0","suppliers.edit":"0","suppliers.delete":"0","manufacturers.view":"0","manufacturers.create":"0","manufacturers.edit":"0","manufacturers.delete":"0","depreciations.view":"0","depreciations.create":"0","depreciations.edit":"0","depreciations.delete":"0","locations.view":"0","locations.create":"0","locations.edit":"0","locations.delete":"0","companies.view":"0","companies.create":"0","companies.edit":"0","companies.delete":"0","self.two_factor":"0","self.api":"0","self.edit_location":"0","self.checkout_assets":"0"}, 2022-11-14 05:49:13, 2022-11-14 05:49:13))Reproduction steps
1.User does not appear in user list;
2.Users can be seen in the device list;
3.User page like "http://localhost:8090/users/3" can be displayed normally;
4.Edit or create a new user to report errors.
Expected behavior
I want the user interface to return to normal, to be able to display, to be able to create users normally, please help me.
Screenshots
Snipe-IT Version
6.0.13
Operating System
Windows Server 2019
Web Server
IIS 10
PHP Version
8.0.23
Operating System
Windows 10 Windows 11
Browser
Chrome
Version
107
Device
No response
Operating System
No response
Browser
No response
Version
No response
Error messages
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: