-
-
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
Deleted Assets failing with "Server Error:500" #834
Comments
@akosinski Did you manually edit any data int he database? Also, can you please provide more info? http://snipeitapp.com/documentation/getting-help/ |
Hi, We are running v1.2.5 on Windows 2012. We did import a load of assets into the database via a HeidiSQL tool. It would not accept them as some NULL values could not be set correctly. We manually set the values in the database to allow them by right clicking on the fields and setting the I clicked on the deleted assets and it created this in app/storage/logs... [2015-06-09 13:29:01] production.ERROR: exception 'ErrorException' with message 'Trying to get property of non-object' in C:\inetpub\wwwroot\snipe-it\app\storage\views\20bad27bf8db88ff829c992ada40fec3:95 Next exception 'ErrorException' with message 'Trying to get property of non-object (View: C:\inetpub\wwwroot\snipe-it\app\views\backend\hardware\index.blade.php)' in C:\inetpub\wwwroot\snipe-it\app\storage\views\20bad27bf8db88ff829c992ada40fec3:95 Thanks Andy |
Since you asked about the database being edited I have had a look at each table and the data and it appears that the "models" start from id7 which would indicate some where removed prior to its first use as everything else is in order. Andy |
@akosinski You should try to never delete anything directly from the database, as you end up breaking the relationships, since you're then looking for asset model information on a model that no longer exists. (That's why we soft delete instead of hard deleting.) Can you add 1-6 back in, or just create dummy entries for them and then move the assets assigned to them to non-deleted assets? |
I took a backup and I added back in 6 random models (ID 1-6) and the deleted assets options is now working. Moral to the story is don't ever delete lines manually from the database in the interest of trying to be tidy... :) Thanks for your help.... |
I have been using Snipe-IT for a couple of months now and its fantastic.
All parts work except today for the first time I tried to view the "Deleted" Assets and it comes back with the following:
Ouch.
Server Error: 500 (Internal Server Error)
What does this mean?
Something went wrong on our servers while we were processing your request. We're really sorry about this, and will work hard to get this resolved as soon as possible.
Perhaps you would like to go to our home page?
Its a windows install on Windows 2012 server.
I looked at the event logs and logs in inetpub but didn't see anything obvious..
Andy
The text was updated successfully, but these errors were encountered: