PHP fatal errors on new install

Post Reply
fsoyer
Posts: 7
Joined: Thu Oct 31, 2024 10:37 am

Hi there,
I've just installed a new server (Debian 13) with myVesta, and some screens do not work. Example, on main page, I have not the details on the user admin (bandwith, disk, ...). On the web page, no details too on the main site (vesta host). And, if I want to edit it, I have an "internal vesta error" 505. In /var/log/vesta/nginx-error.log, this error :
2026/01/21 15:22:48 [error] 1184#0: *82 FastCGI sent in stderr: "PHP message: PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /usr/local/vesta/web/inc/main.php on line 385; PHP message: PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /usr/local/vesta/web/inc/main.php on line 385; PHP message: PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /usr/local/vesta/web/inc/main.php on line 389" while reading response header from upstream, client: 12.23.34.45, server: _, request: "GET /list/web/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "myvesa.example.com:9024", referrer: "https://myvesa.example.com:9024/list/user/"
2026/01/21 15:22:49 [error] 1184#0: *82 FastCGI sent in stderr: "; PHP message: PHP Warning: Undefined variable $i in /usr/local/vesta/web/templates/right.html on line 130" while reading upstream, client: 12.23.34.45, server: _, request: "GET /list/web/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "myvesa.example.com:9024", referrer: "https://myvesa.example.com:9024/list/user/"
2026/01/21 15:22:49 [error] 1184#0: *82 FastCGI sent in stderr: "; PHP message: PHP Fatal error: Uncaught TypeError: Unsupported operand types: string / string in /usr/local/vesta/web/inc/main.php:316
Stack trace:
#0 /usr/local/vesta/web/templates/admin/list_web.html(212): get_percentage('0', 'unlimited')
#1 /usr/local/vesta/web/inc/main.php(183): include('/usr/local/vest...')
#2 /usr/local/vesta/web/list/web/index.php(15): render_page('admin', 'WEB', 'list_web')
#3 {main}
thrown in /usr/local/vesta/web/inc/main.php on line 316" while reading upstream, client: 12.23.34.45, server: _, request: "GET /list/web/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "myvesa.example.com:9024", referrer: "https://myvesa.example.com:9024/list/user/"
2026/01/21 15:22:51 [error] 1184#0: *82 FastCGI sent in stderr: "PHP message: PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /usr/local/vesta/web/inc/main.php on line 385; PHP message: PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /usr/local/vesta/web/inc/main.php on line 385; PHP message: PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /usr/local/vesta/web/inc/main.php on line 389; PHP message: PHP Warning: Undefined array key "CGI" in /usr/local/vesta/web/edit/web/index.php on line 35; PHP message: PHP Warning: Undefined array key "ELOG" in /usr/local/vesta/web/edit/web/index.php on line 36; PHP message: PHP Fatal error: Uncaught Error: str_replace(): Argument #4 ($count) could not be passed by reference in /usr/local/vesta/web/edit/web/index.php:67
Stack trace:
#0 {main}
thrown in /usr/local/vesta/web/edit/web/index.php on line 67" while reading response header from upstream, client: 12.23.34.45, server: _, request: "GET /edit/web/?domain=myvesa.example.com HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "myvesa.example.com:9024", referrer: "https://myvesa.example.com:9024/list/web/"
if I try to go Server / my hostname / configure, I have this error :
#3 {main}
thrown in /usr/local/vesta/web/inc/main.php on line 316" while reading upstream, client: 12.23.34.45 server: _, request: "GET /list/user/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "myvesta.example.com:9024", referrer: "https://myvesta.example.com:9024/list/db/"
2026/01/21 15:28:22 [error] 1184#0: *98 FastCGI sent in stderr: "PHP message: PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /usr/local/vesta/web/inc/main.php on line 385; PHP message: PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /usr/local/vesta/web/inc/main.php on line 385; PHP message: PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /usr/local/vesta/web/inc/main.php on line 389" while reading response header from upstream, client: 12.23.34.45 server: _, request: "GET /list/server/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "myvesta.example.com:9024", referrer: "https://myvesta.example.com:9024/list/user/"
2026/01/21 15:28:23 [error] 1184#0: *98 FastCGI sent in stderr: "; PHP message: PHP Warning: Undefined variable $i in /usr/local/vesta/web/templates/right.html on line 130" while reading upstream, client: 12.23.34.45 server: _, request: "GET /list/server/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "myvesta.example.com:9024", referrer: "https://myvesta.example.com:9024/list/user/"
2026/01/21 15:28:27 [error] 1184#0: *98 FastCGI sent in stderr: "PHP message: PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /usr/local/vesta/web/inc/main.php on line 385; PHP message: PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /usr/local/vesta/web/inc/main.php on line 385; PHP message: PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /usr/local/vesta/web/inc/main.php on line 389; PHP message: PHP Fatal error: Uncaught DateInvalidTimeZoneException: DateTimeZone::__construct(): Unknown or bad timezone (HAST) in /usr/local/vesta/web/inc/main.php:348
Stack trace:
#0 /usr/local/vesta/web/inc/main.php(348): DateTimeZone->__construct('HAST')
#1 /usr/local/vesta/web/edit/server/index.php(18): list_timezones()
#2 {main}
thrown in /usr/local/vesta/web/inc/main.php on line 348" while reading response header from upstream, client: 12.23.34.45 server: _, request: "GET /edit/server/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "myvesta.example.com:9024", referrer: "https://myvesta.example.com:9024/list/server/"
This is not the first myvesta on debian I installed, but this is the first which give me this errors. Any Idea ?
Debian Trixie 13.3
myvesta 0.9.9-0-13
PHP 8.4 with PHP-FPM 8.4.16-1
Apache 2.4.66-1
fsoyer
Posts: 7
Joined: Thu Oct 31, 2024 10:37 am

well, no reply, no suggestions in 2 days... myVesta was my choice for its functionnalities, but without support, it becomes less interesting :?

After searching more, I noticed that between my last install (february 2025, vesta-php 0.9.9-0-3) and this new one (vesta-php 0.9.9-0-13) the local php has been highly updated.
"old" myvesta :

Code: Select all

/usr/local/vesta/php/sbin/vesta-php -v
PHP 5.6.40 (fpm-fcgi) (built: Jun 16 2023 20:47:54)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
new myvesta :

Code: Select all

/usr/local/vesta/php/sbin/vesta-php -v
PHP 8.4.11 (fpm-fcgi) (built: Aug 18 2025 14:37:09) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.4.11, Copyright (c) Zend Technologies
Can it have incompatibilty with php 8 ? It seems compatible since 0.9.9-0-10, but ?...
fsoyer
Posts: 7
Joined: Thu Oct 31, 2024 10:37 am

Image

Image
fsoyer
Posts: 7
Joined: Thu Oct 31, 2024 10:37 am

Replying myself.
Don't worry. After resintalling a fresh Debian 12, no more errors.

To those seeing this post later :
AT THIS TIME, MYVESTACP IS NOT DEBIAN 13 COMPATIBLE.

In first analysis, the php binary in /usr/local/vesta/bin is back to version 5.6.40. I don't understand for now how this "local" php is generated by the install, but in Debian 13 it was in version 8. And, clearly, Vesta isn't compatible with PHP 8...
User avatar
mixxa
Posts: 3
Joined: Sat Jun 03, 2023 6:57 pm
Your location: 127.0.0.1

myVesta is compatible with php8.X+
i have 8.4 and 8.5 installed and they work
it just that myVesta does not officiallly support Debian 13 yet, they are working on it. viewtopic.php?t=1105 You can install on Debian 12 no problem.
Post Reply