Unable to add IP address in network

Hey! Seems like I’ve just found the bug in the latest verison of CP (v1.8.11). I’m trying to add the IP address in network page and getting error 500

After taking a look at

cat /var/log/hestia/nginx-error.log

There’s an error

Text version:

2023/12/29 15:15:27 [error] 473#0: *58 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key “v_owner” in /usr/local/hestia/web/add/ip/index.php on line 51; PHP message: PHP Fatal error: Uncaught TypeError: Hestiacp\quoteshellarg\quoteshellarg(): Argument #1 ($arg) must be of type string, null given, called in /usr/local/hestia/web/add/ip/index.php on line 51 and defined in /usr/local/hestia/web/inc/vendor/hestiacp/phpquoteshellarg/src/Hestiacp/quoteshellarg/quoteshellarg.php:14
Stack trace:
#0 /usr/local/hestia/web/add/ip/index.php(51): Hestiacp\quoteshellarg\quoteshellarg()

Seems like me (as admin) is not visible at a query

/usr/local/hestia/web/add/ip/index.php

Here’s the request body from the network of panel

Hi @roitrafic,

As root, show the output of this command:

grep -ri '$ROOT_USER' /usr/local/hestia/func/

Just use v-add-sys-php via command line …

Hey! empty for me

):

use /usr/local/hestia/bin/v-add-sys-php

Don’t have such executable at /usr/local/hestia/bin/ :dizzy_face:

v-add-sys-ip to add a new ip address

v-add-web-php for the PHP version…

1 Like

that worked! thanks!

1 Like

I have experienced same issue. Probably expects you to add a user for the ip, despite v_shared flag being on

When offsetting v_shared, drop down menu for the v_owner is not working and you cannot insert one manualy.

@eris @sahsanu Even though usage of a console command is a workaround, original problem still persists and an bug needs to be filed.

I have fixed the issue in the repo:

2 Likes

v-list-sys-users json reported a invalid json format …

[
	"admin",
	"yyy",
	"xxxxx",
]

Instead of

[
	"admin",
	"yyy",
	"xxxxx"
]

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.