Hello everyone
I have a problem when accessing web log for my domain, domain hosted on Debian 11 VPS and HestiaCP 1.6.7.
https://panel.domain.tld:8083/list/web-log/?domain=mydomain.tld&type=access#
Any help very appreciated.
Hello everyone
I have a problem when accessing web log for my domain, domain hosted on Debian 11 VPS and HestiaCP 1.6.7.
https://panel.domain.tld:8083/list/web-log/?domain=mydomain.tld&type=access#
Any help very appreciated.
nginx-error.log
how and where i can access nginx-error.log ?
here is nginx-error.log
2022/08/24 22:48:19 [error] 601#0: *1 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "favourites" in /usr/local/hestia/web/templates/pages/list_web.htm>
2022/08/24 22:48:19 [error] 601#0: *1 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "favourites" in /usr/local/hestia/web/templates/pages/list_web.htm>
2022/08/24 22:48:19 [error] 601#0: *1 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "favourites" in /usr/local/hestia/web/templates/pages/list_web.htm>
2022/08/24 22:48:24 [error] 601#0: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught ArgumentCountError: _() expects exactly 1 argument, 3 given in /usr/local>
Stack trace:
#0 /usr/local/hestia/web/templates/pages/list_weblog.html(40): _()
#1 /usr/local/hestia/web/list/web-log/index.php(16): include('/usr/local/hest...')
#2 {main}
thrown in /usr/local/hestia/web/templates/pages/list_weblog.html on line 40" while reading response header from upstream, client: 139.194.222.203, server: _, request: "GET /l>
2022/08/24 22:48:29 [error] 601#0: *8 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "favourites" in /usr/local/hestia/web/templates/pages/list_web.htm>
2022/08/24 22:48:29 [error] 601#0: *8 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "favourites" in /usr/local/hestia/web/templates/pages/list_web.htm>
2022/08/24 22:48:29 [error] 601#0: *8 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "favourites" in /usr/local/hestia/web/templates/pages/list_web.htm>
This line is an error. $_GET[‘domain’] and $type are set according the url. Also have no issues on my test server
And
It looks like you are using an older version and not 1.6.7
<div style="margin-left: auto; margin-right: auto; padding-top: 80px; width: 1020px;"><?=_('Last 70 lines of %s.%s.log',htmlentities($_GET['domain']),htmlentities($_GET['type'])) ;?></div>
with
<div style="margin-left: auto; margin-right: auto; padding-top: 80px; width: 1020px;"><?=sprintf(_('Last 70 lines of %s.%s.log'),htmlentities($_GET['domain']),htmlentities($type)) ;?></div>
So update to the latest version
According the patch it has been changed in April
Even the staging 1.6.7 branch have been updated:
You might want to check how the file looks like on your server
here is the code on line 40 of my server
<div style="margin-left: auto; margin-right: auto; padding-top: 80px; width: 1020px;"><?=_('Last 70 lines of %s.%s.log',htmlentities($_GET['domain']),htmlentities($_GET['type'])) ;>
<pre style="width: 1020px; margin-left: auto; margin-right: auto;" class="console-output">
and then i change it with this code as you mention above and now web log is accessible and normal again.
<div style=margin-left: auto; margin-right: auto; padding-top: 80px; width: 1020px;><?=sprintf(_('Last 70 lines of %s.%s.log'),htmlentities($_GET['domain']),htmlentities($type)) ;?></div>
<pre style=width: 1020px; margin-left: auto; margin-right: auto; class=console-output>
Thank You Eris!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.