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

Issue log-in into the app #664

Closed
rnovo-carecloud opened this issue Mar 16, 2015 · 23 comments
Closed

Issue log-in into the app #664

rnovo-carecloud opened this issue Mar 16, 2015 · 23 comments

Comments

@rnovo-carecloud
Copy link

Installed on ubuntu, was working fine but now im trying login and I got this Exception. Using an Admin Account previously created.

image

@rnovo-carecloud
Copy link
Author

I created 3 SuperUsers for the three guys on our IT department but we are getting this error when loggin in with users we created.

@rnovo-carecloud
Copy link
Author

getting this 👍

Symfony \ Component \ Debug \ Exception \ FatalErrorException (E_ERROR)
Call to a member function fullName() on a non-object
Open: /var/www/html/app/storage/views/d5c9c980ae1b12ed26eed4124b94dc77



0): ?>


created_at))); ?>
adminlog->fullName()); ?>

               <td>

Server/Request Data
HTTP_HOST assets.carecloud.com
HTTP_CONNECTION keep-alive
HTTP_CACHE_CONTROL max-age=0
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8
HTTP_USER_AGENT Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.89 Safari/537.36
HTTP_ACCEPT_ENCODING gzip, deflate, sdch
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.8
HTTP_COOKIE __qca=P0-246190778-1422969438889; km_ai=dt%2Bt2Z4CQybex74JTqIlz%2Bb9S64%3D; __cdrop=.D6RR3V.; _mkto_trk=id:403-KYL-804&token:_mch-carecloud.com-1422969438757-89046; km_lv=x; km_uq=; _ga=GA1.2.1037859684.1422966587; __CT_Data=gpv=14&apv_16363_www03=14; WRUID=0; laravel_session=eyJpdiI6IkQ2SXVBYVB4ckVhT3lpdTcxYytyUVNIWEk4NDcxTEJHMGNTTjFxeE4rcjA9IiwidmFsdWUiOiJlVzEyZG9RaWFcL2YxSVRiaXdoem14XC81TVNxRlJyV004YUZHVW1UQzVKM1lIT1BnNmVcL2lrTTVXcVRMeHAzb0FzSkxXU2crZ05PWDZkODlLUFZnbzZoQT09IiwibWFjIjoiNjkxZGU0NmM4YmIyMmQ0ZGU0ZWM0NjVhMWUzMTQzZTNhY2NmMDgyMzkxOGE0ZjQzYWE2YmVhNWExMzhhYjgwMSJ9
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SERVER_SIGNATURE

Apache/2.4.7 (Ubuntu) Server at assets.carecloud.com Port 80
SERVER_SOFTWARE Apache/2.4.7 (Ubuntu)
SERVER_NAME assets.carecloud.com
SERVER_ADDR 192.168.123.20
SERVER_PORT 80
REMOTE_ADDR 192.168.123.57
DOCUMENT_ROOT /var/www/html/public
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /var/www/html/public
SERVER_ADMIN [no address given]
SCRIPT_FILENAME /var/www/html/public/index.php
REMOTE_PORT 24702
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1426531014.098
REQUEST_TIME 1426531014
GET Data
empty
POST Data
empty
Files
empty
Cookies
__qca P0-246190778-1422969438889
km_ai dt+t2Z4CQybex74JTqIlz+b9S64=
__cdrop .D6RR3V.
_mkto_trk id:403-KYL-804&token:_mch-carecloud.com-1422969438757-89046
km_lv x
km_uq
_ga GA1.2.1037859684.1422966587
__CT_Data gpv=14&apv_16363_www03=14
WRUID 0
laravel_session eyJpdiI6IkQ2SXVBYVB4ckVhT3lpdTcxYytyUVNIWEk4NDcxTEJHMGNTTjFxeE4rcjA9IiwidmFsdWUiOiJlVzEyZG9RaWFcL2YxSVRiaXdoem14XC81TVNxRlJyV004YUZHVW1UQzVKM1lIT1BnNmVcL2lrTTVXcVRMeHAzb0FzSkxXU2crZ05PWDZkODlLUFZnbzZoQT09IiwibWFjIjoiNjkxZGU0NmM4YmIyMmQ0ZGU0ZWM0NjVhMWUzMTQzZTNhY2NmMDgyMzkxOGE0ZjQzYWE2YmVhNWExMzhhYjgwMSJ9
Session
empty
Environment Variables
empty
Registered Handlers
0. Whoops\Handler\PrettyPageHandler

@rnovo-carecloud
Copy link
Author

from /app/storage/logs

root@cc-bl-snipe:/var/www/html/app/storage/logs# vim log-apache2handler-2015-03-16.txt
[2015-03-16 14:29:42] local.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Call to a member function fullName() on a non-object' in /var/www/html/app/storage/views/d5c9c980ae1b12ed26eed4124b94dc77:46
Stack trace:
#0 [internal function]: Illuminate\Exception\Handler->handleShutdown()
#1 {main} [] []
[2015-03-16 14:29:56] local.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Call to a member function fullName() on a non-object' in /var/www/html/app/storage/views/d5c9c980ae1b12ed26eed4124b94dc77:46
Stack trace:
#0 [internal function]: Illuminate\Exception\Handler->handleShutdown()
#1 {main} [] []
[2015-03-16 14:30:13] local.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Call to a member function fullName() on a non-object' in /var/www/html/app/storage/views/d5c9c980ae1b12ed26eed4124b94dc77:46
Stack trace:
#0 [internal function]: Illuminate\Exception\Handler->handleShutdown()
#1 {main} [] []
[2015-03-16 14:30:39] local.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Call to a member function fullName() on a non-object' in /var/www/html/app/storage/views/d5c9c980ae1b12ed26eed4124b94dc77:46
Stack trace:
#0 [internal function]: Illuminate\Exception\Handler->handleShutdown()
#1 {main} [] []
[2015-03-16 14:33:07] local.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Call to a member function fullName() on a non-object' in /var/www/html/app/storage/views/d5c9c980ae1b12ed26eed4124b94dc77:46
Stack trace:
#0 [internal function]: Illuminate\Exception\Handler->handleShutdown()
#1 {main} [] []
[2015-03-16 14:33:48] local.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Call to a member function fullName() on a non-object' in /var/www/html/app/storage/views/d5c9c980ae1b12ed26eed4124b94dc77:46
Stack trace:
#0 [internal function]: Illuminate\Exception\Handler->handleShutdown()
#1 {main} [] []
[2015-03-16 14:36:37] local.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Call to a member function fullName() on a non-object' in /var/www/html/app/storage/views/d5c9c980ae1b12ed26eed4124b94dc77:46
Stack trace:
#0 [internal function]: Illuminate\Exception\Handler->handleShutdown()
#1 {main} [] []
[2015-03-16 14:46:37] local.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Call to a member function fullName() on a non-object' in /var/www/html/app/storage/views/d5c9c980ae1b12ed26eed4124b94dc77:46
Stack trace:
#0 [internal function]: Illuminate\Exception\Handler->handleShutdown()
#1 {main} [] []
[2015-03-16 14:55:39] local.ERROR: exception 'Symfony\Component\HttpKernel\Exception\NotFoundHttpException' in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php:148
Stack trace:
#0 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(1049): Illuminate\Routing\RouteCollection->match(Object(Illuminate\Http\Request))
#1 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(1017): Illuminate\Routing\Router->findRoute(Object(Illuminate\Http\Request))
#2 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(996): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#3 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(777): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#4 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(747): Illuminate\Foundation\Application->dispatch(Object(Illuminate\Http\Request))
#5 /var/www/html/vendor/barryvdh/laravel-debugbar/src/Middleware/Stack.php(34): Illuminate\Foundation\Application->handle(Object(Illuminate\Http\Request), 1, true)
#6 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware.php(72): Barryvdh\Debugbar\Middleware\Stack->handle(Object(Illuminate\Http\Request), 1, true)
#7 /var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Queue.php(47): Illuminate\Session\Middleware->handle(Object(Illuminate\Http\Request), 1, true)
#8 /var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Guard.php(51): Illuminate\Cookie\Queue->handle(Object(Illuminate\Http\Request), 1, true)
#9 /var/www/html/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Illuminate\Cookie\Guard->handle(Object(Illuminate\Http\Request), 1, true)
#10 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(643): Stack\StackedHttpKernel->handle(Object(Illuminate\Http\Request))
#11 /var/www/html/public/index.php(49): Illuminate\Foundation\Application->run()
#12 {main} [] []
[2015-03-16 17:36:12] local.ERROR: exception 'Symfony\Component\HttpKernel\Exception\NotFoundHttpException' in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php:148
Stack trace:
#0 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(1049): Illuminate\Routing\RouteCollection->match(Object(Illuminate\Http\Request))
#1 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(1017): Illuminate\Routing\Router->findRoute(Object(Illuminate\Http\Request))
#2 /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(996): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#3 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(777): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#4 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(747): Illuminate\Foundation\Application->dispatch(Object(Illuminate\Http\Request))
#5 /var/www/html/vendor/barryvdh/laravel-debugbar/src/Middleware/Stack.php(34): Illuminate\Foundation\Application->handle(Object(Illuminate\Http\Request), 1, true)
#6 /var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware.php(72): Barryvdh\Debugbar\Middleware\Stack->handle(Object(Illuminate\Http\Request), 1, true)
#7 /var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Queue.php(47): Illuminate\Session\Middleware->handle(Object(Illuminate\Http\Request), 1, true)
#8 /var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Guard.php(51): Illuminate\Cookie\Queue->handle(Object(Illuminate\Http\Request), 1, true)
#9 /var/www/html/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Illuminate\Cookie\Guard->handle(Object(Illuminate\Http\Request), 1, true)
#10 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(643): Stack\StackedHttpKernel->handle(Object(Illuminate\Http\Request))
#11 /var/www/html/public/index.php(49): Illuminate\Foundation\Application->run()
#12 {main} [] []
[2015-03-16 17:44:29] local.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Call to a member function fullName() on a non-object' in /var/www/html/app/storage/views/d5c9c980ae1b12ed26eed4124b94dc77:46
"log-apache2handler-2015-03-16.txt" 101L, 10922C

@dbiers
Copy link

dbiers commented Mar 16, 2015

Which version of PHP is this on?

@rnovo-carecloud
Copy link
Author

root@cc-bl-snipe:# php -v
PHP 5.5.9-1ubuntu4.6 (cli) (built: Feb 13 2015 19:17:11)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
root@cc-bl-snipe:
#

On Mon, Mar 16, 2015 at 5:35 PM, Dave notifications@github.com wrote:

Which version of PHP is this on?


Reply to this email directly or view it on GitHub
#664 (comment).

Thank you,
Roberto Novo Cruz

CARECLOUD
I.T Specialist

@rnovo-carecloud
Copy link
Author

I just noticed if I press back im able to get in and takes me to the edition of my profile. I have been trying creating new profiles but same result. It was no happening before start happening since created this profiles.

@dbiers
Copy link

dbiers commented Mar 17, 2015

@rnovo1983 are you able to attempt it with PHP 5.4.x? I am running it on a CentOS 6.6 VM:

[21:55:06] [root@asset ~]$ php -v
PHP 5.4.38 (cli) (built: Feb 18 2015 16:46:56)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies

@snipe
Copy link
Owner

snipe commented Mar 17, 2015

Snipe-IT should run fine on any version of PHP higher than the required one. I test here with 5.4.34, 5.5.18, and 5.6.2.

Can you tell me anything about your data? We typically see that error when an entry (or user) has been deleted. Are there any deleted users in your data?

@rnovo-carecloud
Copy link
Author

[image: Inline image 1]

On Mon, Mar 16, 2015 at 11:03 PM, snipe notifications@github.com wrote:

Snipe-IT should run fine on any version of PHP higher than the required
one. I test here with 5.4.34, 5.5.18, and 5.6.2.

Can you tell me anything about your data? We typically see that error when
an entry (or user) has been deleted. Are there any deleted users in your
data?


Reply to this email directly or view it on GitHub
#664 (comment).

Thank you,
Roberto Novo Cruz

CARECLOUD
I.T Specialist

@snipe
Copy link
Owner

snipe commented Mar 17, 2015

@rnovo1983 image did not come through.

@rnovo-carecloud
Copy link
Author

have 3 users on user table

@snipe
Copy link
Owner

snipe commented Mar 17, 2015

In the database table? Are any of them deleted?

@rnovo-carecloud
Copy link
Author

untitled

@rnovo-carecloud
Copy link
Author

No, all of them are active users

@snipe
Copy link
Owner

snipe commented Mar 17, 2015

Please try deleting the contents (NOT the directories, just the contents) of app/storage/cache and app/storage/views and try reloading

@snipe
Copy link
Owner

snipe commented Mar 17, 2015

You're logging in as yourself when you see this? It looks like the second user is not actually a superadmin. Looks like a -1 there instead of a 1 in that column

@snipe
Copy link
Owner

snipe commented Mar 17, 2015

Is this only happening on the homepage? (Which would really be the dashboard). If you browse to other pages manually, do you still see errors?

@jotafurtado
Copy link

Same issue here. Happens only at dashboard page.

@snipe
Copy link
Owner

snipe commented Mar 30, 2015

@jotafurtado Can I see the data for your deleted_at, and permissions for your users?

@jotafurtado
Copy link

I found the problem. At my asset_log I had some records without user. I ran this query and got some null users.

SELECT users.id, asset_logs.user_id FROM asset_logs LEFT JOIN users ON users.id = asset_logs.user_id

Then I deleted the relationships and voilà!
Thank you. I hope this help others!

@snipe
Copy link
Owner

snipe commented Mar 30, 2015

Do you have any idea how those bad records got there in the first place?

@jotafurtado
Copy link

Someone in my team had deleted an user directly on database. I instruct them not to do that again. So in my case was not a code issue.

@snipe
Copy link
Owner

snipe commented Mar 30, 2015

That makes sense (and was sort of what I suspected). Thanks for confirming.

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

No branches or pull requests

4 participants