Page 2 of 2

Re: Vesta error after update Vesta 0.9.8-17

Posted: Thu Jun 08, 2017 3:25 pm
by buninsan
Hello!
Sorry, I use a translator.

I have errors on the site in the admin panel
Related to the session:
[Thu Jun 08 16:59:18.917508 2017] [:error] [pid 651] [client 212.66.34.157:45222] PHP Fatal error: Call to a member function numRows() on a non-object in /home/admin/web/site.com/public_html/oc-includes/osclass/model/Admin.php on line 63, referer: https://site.com/oc-admin/index.php?pag ... it&id=2026

And there are warnings
/var/log/vesta/nginx-error.log
2017/06/08 10:49:21 [error] 940#0: *19434 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined index: HTTP_CLIENT_IP in /usr/local/vesta/web/inc/main.php on line 14
PHP message: PHP Notice: Undefined index: HTTP_X_FORWARDED_FOR in /usr/local/vesta/web/inc/main.php on line 14
PHP message: PHP Notice: Undefined index: HTTP_X_FORWARDED in /usr/local/vesta/web/inc/main.php on line 14
PHP message: PHP Notice: Undefined index: HTTP_FORWARDED_FOR in /usr/local/vesta/web/inc/main.php on line 14
PHP message: PHP Notice: Undefined index: HTTP_FORWARDED in /usr/local/vesta/web/inc/main.php on line 14" while reading response header from upstream, client: ipadress, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "ipadress", referrer: "https://ipadress:8083/list/user/"

Session cleared
rm -rf /usr/local/vesta/data/sessions/* && service vesta restart

/etc/sudoers.d/admin code:
# Created by vesta installer
Defaults env_keep="VESTA"
Defaults:admin !syslog
Defaults:admin !requiretty
Defaults:root !requiretty

admin ALL=(ALL) ALL
admin ALL=NOPASSWD:/usr/local/vesta/bin/*

vestacp 0.9.8 (amd64) centos 7.2 x64

Tell me please
Can these errors be related?
And how to fix them?