Skip to content
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 Page, 500 Internal Server Error #616

Closed
dguedry opened this issue Mar 7, 2015 · 3 comments
Closed

Deleted Assets Page, 500 Internal Server Error #616

dguedry opened this issue Mar 7, 2015 · 3 comments

Comments

@dguedry
Copy link

dguedry commented Mar 7, 2015

When trying to view assets->deleted, I'm getting a 500 error on both the demo site and my local installation.

http://demo.snipeitapp.com/hardware?Deleted=true

@snipe
Copy link
Owner

snipe commented Mar 7, 2015

Please see the documentation on getting help. http://snipeitapp.com/documentation/getting-help/

@dguedry
Copy link
Author

dguedry commented Mar 12, 2015

Version 1.2.6
Error 500 - Internal Server Error

Log file output:
[2015-03-12 10:11:50] production.ERROR: exception 'ErrorException' with message 'Trying to get property of non-object' in /var/www/html/snipe-it-1.2.6/app/storage/views/51d739af55050583e02c0a1ac3af37b9:95
Stack trace:
#0 /var/www/html/snipe-it-1.2.6/app/storage/views/51d739af55050583e02c0a1ac3af37b9(95): Illuminate\Exception\Handler->handleError(8, 'Trying to get p...', '/var/www/html/s...', 95, Array)
#1 /var/www/html/snipe-it-1.2.6/bootstrap/compiled.php(9830): include('/var/www/html/s...')
#2 /var/www/html/snipe-it-1.2.6/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(56): Illuminate\View\Engines\PhpEngine->evaluatePath('/var/www/html/s...', Array)
#3 /var/www/html/snipe-it-1.2.6/bootstrap/compiled.php(9708): Illuminate\View\Engines\CompilerEngine->get('/var/www/html/s...', Array)
#4 /var/www/html/snipe-it-1.2.6/bootstrap/compiled.php(9695): Illuminate\View\View->getContents()
#5 /var/www/html/snipe-it-1.2.6/bootstrap/compiled.php(9686): Illuminate\View\View->renderContents()
#6 /var/www/html/snipe-it-1.2.6/bootstrap/compiled.php(10388): Illuminate\View\View->render()
#7 /var/www/html/snipe-it-1.2.6/bootstrap/compiled.php(9918): Illuminate\Http\Response->setContent(Object(Illuminate\View\View))
#8 /var/www/html/snipe-it-1.2.6/bootstrap/compiled.php(5222): Symfony\Component\HttpFoundation\Response->__construct(Object(Illuminate\View\View))
#9 /var/www/html/snipe-it-1.2.6/bootstrap/compiled.php(5030): Illuminate\Routing\Router->prepareResponse(Object(Illuminate\Http\Request), Object(Illuminate\View\View))
#10 /var/www/html/snipe-it-1.2.6/bootstrap/compiled.php(5016): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#11 /var/www/html/snipe-it-1.2.6/bootstrap/compiled.php(721): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#12 /var/www/html/snipe-it-1.2.6/bootstrap/compiled.php(702): Illuminate\Foundation\Application->dispatch(Object(Illuminate\Http\Request))
#13 /var/www/html/snipe-it-1.2.6/vendor/barryvdh/laravel-debugbar/src/Middleware/Stack.php(34): Illuminate\Foundation\Application->handle(Object(Illuminate\Http\Request), 1, true)
#14 /var/www/html/snipe-it-1.2.6/bootstrap/compiled.php(7779): Barryvdh\Debugbar\Middleware\Stack->handle(Object(Illuminate\Http\Request), 1, true)
#15 /var/www/html/snipe-it-1.2.6/bootstrap/compiled.php(8386): Illuminate\Session\Middleware->handle(Object(Illuminate\Http\Request), 1, true)
#16 /var/www/html/snipe-it-1.2.6/bootstrap/compiled.php(8333): Illuminate\Cookie\Queue->handle(Object(Illuminate\Http\Request), 1, true)
#17 /var/www/html/snipe-it-1.2.6/bootstrap/compiled.php(10992): Illuminate\Cookie\Guard->handle(Object(Illuminate\Http\Request), 1, true)
#18 /var/www/html/snipe-it-1.2.6/bootstrap/compiled.php(664): Stack\StackedHttpKernel->handle(Object(Illuminate\Http\Request))
#19 /var/www/html/snipe-it-1.2.6/public/index.php(49): Illuminate\Foundation\Application->run()
#20 {main}

Next exception 'ErrorException' with message 'Trying to get property of non-object (View: /var/www/html/snipe-it-1.2.6/app/views/backend/hardware/index.blade.php)' in /var/www/html/snipe-it-1.2.6/app/storage/views/51d739af55050583e02c0a1ac3af37b9:95
Stack trace:
#0 /var/www/html/snipe-it-1.2.6/bootstrap/compiled.php(9832): Illuminate\View\Engines\CompilerEngine->handleViewException(Object(ErrorException), 1)
#1 /var/www/html/snipe-it-1.2.6/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(56): Illuminate\View\Engines\PhpEngine->evaluatePath('/var/www/html/s...', Array)
#2 /var/www/html/snipe-it-1.2.6/bootstrap/compiled.php(9708): Illuminate\View\Engines\CompilerEngine->get('/var/www/html/s...', Array)
#3 /var/www/html/snipe-it-1.2.6/bootstrap/compiled.php(9695): Illuminate\View\View->getContents()
#4 /var/www/html/snipe-it-1.2.6/bootstrap/compiled.php(9686): Illuminate\View\View->renderContents()
#5 /var/www/html/snipe-it-1.2.6/bootstrap/compiled.php(10388): Illuminate\View\View->render()
#6 /var/www/html/snipe-it-1.2.6/bootstrap/compiled.php(9918): Illuminate\Http\Response->setContent(Object(Illuminate\View\View))
#7 /var/www/html/snipe-it-1.2.6/bootstrap/compiled.php(5222): Symfony\Component\HttpFoundation\Response->__construct(Object(Illuminate\View\View))
#8 /var/www/html/snipe-it-1.2.6/bootstrap/compiled.php(5030): Illuminate\Routing\Router->prepareResponse(Object(Illuminate\Http\Request), Object(Illuminate\View\View))
#9 /var/www/html/snipe-it-1.2.6/bootstrap/compiled.php(5016): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#10 /var/www/html/snipe-it-1.2.6/bootstrap/compiled.php(721): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#11 /var/www/html/snipe-it-1.2.6/bootstrap/compiled.php(702): Illuminate\Foundation\Application->dispatch(Object(Illuminate\Http\Request))
#12 /var/www/html/snipe-it-1.2.6/vendor/barryvdh/laravel-debugbar/src/Middleware/Stack.php(34): Illuminate\Foundation\Application->handle(Object(Illuminate\Http\Request), 1, true)
#13 /var/www/html/snipe-it-1.2.6/bootstrap/compiled.php(7779): Barryvdh\Debugbar\Middleware\Stack->handle(Object(Illuminate\Http\Request), 1, true)
#14 /var/www/html/snipe-it-1.2.6/bootstrap/compiled.php(8386): Illuminate\Session\Middleware->handle(Object(Illuminate\Http\Request), 1, true)
#15 /var/www/html/snipe-it-1.2.6/bootstrap/compiled.php(8333): Illuminate\Cookie\Queue->handle(Object(Illuminate\Http\Request), 1, true)
#16 /var/www/html/snipe-it-1.2.6/bootstrap/compiled.php(10992): Illuminate\Cookie\Guard->handle(Object(Illuminate\Http\Request), 1, true)
#17 /var/www/html/snipe-it-1.2.6/bootstrap/compiled.php(664): Stack\StackedHttpKernel->handle(Object(Illuminate\Http\Request))
#18 /var/www/html/snipe-it-1.2.6/public/index.php(49): Illuminate\Foundation\Application->run()
#19 {main} [] []

@snipe
Copy link
Owner

snipe commented Mar 12, 2015

Please delete your seed data and try again. There was a bug in the seed data that causes this issue. It's been resolved, but it not in a release yet.

@snipe snipe closed this as completed Mar 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants