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

View Assigned Assets #2280

Closed
ghost opened this issue Jul 20, 2016 · 13 comments
Closed

View Assigned Assets #2280

ghost opened this issue Jul 20, 2016 · 13 comments

Comments

@ghost
Copy link

ghost commented Jul 20, 2016

When I hit 'View Assigned Assets' or when redirected to that page in some other way (after accepting asset), the page displays some raw data with an exception:

capture

@snipe
Copy link
Owner

snipe commented Jul 21, 2016

Please provide answers to the questions you deleted.

  • Version of Snipe-IT you're running
  • What OS and web server you're running Snipe-IT on
  • What method you used to install Snipe-IT (install.sh, manual installation, docker, etc)
  • If you're getting an error in your browser, include that error
  • What specific Snipe-IT page you're on, and what specific element you're interacting with to trigger the error
  • If a stacktrace is provided in the error, include that too.
  • Any errors that appear in your browser's error console.
  • Confirm whether the error is reproduceable on the demo.
  • Include any additional information you can find in app/storage/logs and your webserver's logs.
  • Include what you've done so far in the installation, and if you got any error messages along the way.
  • Indicate whether or not you've manually edited any data directly in the database

@ghost
Copy link
Author

ghost commented Jul 21, 2016

•Version of Snipe-IT you're running - V3 latest
•What OS and web server you're running Snipe-IT on - IIS8, Server 2012
•What method you used to install Snipe-IT (install.sh, manual installation, docker, etc) - manual
•If you're getting an error in your browser, include that error
•What specific Snipe-IT page you're on, and what specific element you're interacting with to trigger the error - from anywhere, clicking on logged in user and selecting 'View Assigned Assets'
•If a stacktrace is provided in the error, include that too.
•Any errors that appear in your browser's error console.
•Confirm whether the error is reproduceable on the demo. No
•Include any additional information you can find in app/storage/logs and your webserver's logs.
[2016-07-21 08:45:09] production.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Call to a member function fullName() on null' in C:\inetpub\wwwroot\snipe-it\storage\framework\views\d03d781b83abe12c0cd49d14bcffc62e25173faa.php:316

•Include what you've done so far in the installation, and if you got any error messages along the way.
Upgraded from V3 beta (had same behaviour then).

•Indicate whether or not you've manually edited any data directly in the database - No.

@snipe
Copy link
Owner

snipe commented Jul 22, 2016

Can you look at C:\inetpub\wwwroot\snipe-it\storage\framework\views\d03d781b83abe12c0cd49d14bcffc62e25173faa.php and tell me what's on line 316?

@ghost
Copy link
Author

ghost commented Jul 22, 2016

<td><?php echo e($log->adminlog->fullName()); ?></td>

@snipe
Copy link
Owner

snipe commented Jul 22, 2016

Did you purge any data recently? There should never be an entry in the admin log where it can't find someone's name.

@snipe snipe closed this as completed in cc6b2a0 Jul 22, 2016
@ghost
Copy link
Author

ghost commented Jul 22, 2016

Well - I do occasionally purge when / if I've deleted some records... only ever gracefully through settings though...

@snipe
Copy link
Owner

snipe commented Jul 22, 2016

Yeah, which makes me think we're missing something in the purger.

@ghost
Copy link
Author

ghost commented Jul 22, 2016

Thanks for the fix.

@snipe
Copy link
Owner

snipe commented Jul 22, 2016

Can you confirm it's working?

@ghost
Copy link
Author

ghost commented Jul 22, 2016

Yes - working perfectly.

@snipe
Copy link
Owner

snipe commented Jul 22, 2016

Great! I'm going to have to try to go back through the purger and figure out what it's missing. Grr.

@ghost
Copy link
Author

ghost commented Jul 22, 2016

I don't know if it's of any help, but it seemed only to break in that way for me, other users could view their own assigned assets no problem.

@snipe
Copy link
Owner

snipe commented Jul 22, 2016

That is interesting data, for sure. Will be a bitch to try to reproduce, but I'll try.

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

1 participant