Page 1 of 1

PHP Warning: Undefined array key "encryption" in /home/keyhelp/www/keyhelp/core/License/License.php on line 144

Posted: Fri 7. Nov 2025, 14:09
by bestman
Hello
During installation saw this error to Debian 13
PHP Warning: Undefined array key "encryption" in /home/keyhelp/www/keyhelp/core/License/License.php on line 144

Warning: Undefined array key "encryption" in /home/keyhelp/www/keyhelp/core/License/License.php on line 144
PHP Warning: Trying to access array offset on null in /home/keyhelp/www/keyhelp/core/License/License.php on line 144

Warning: Trying to access array offset on null in /home/keyhelp/www/keyhelp/core/License/License.php on line 144
hostname: Name or service not known
PHP Fatal error: Uncaught ValueError: idn_to_ascii(): Argument #1 ($domain) must not be empty in /home/keyhelp/www/keyhelp/functions/functions.main.php:2246
Stack trace:
#0 /home/keyhelp/www/keyhelp/functions/functions.main.php(2246): idn_to_ascii()
#1 /home/keyhelp/www/keyhelp/core/Validation/Validation.php(390): idnToAscii()
#2 /home/keyhelp/www/keyhelp/functions/functions.install.php(26): Validation\Validation::domain()
#3 /home/keyhelp/www/keyhelp/install/install.php(75): getServerFQDN()
#4 {main}
thrown in /home/keyhelp/www/keyhelp/functions/functions.main.php on line 2246

Fatal error: Uncaught ValueError: idn_to_ascii(): Argument #1 ($domain) must not be empty in /home/keyhelp/www/keyhelp/functions/functions.main.php:2246
Stack trace:
#0 /home/keyhelp/www/keyhelp/functions/functions.main.php(2246): idn_to_ascii()
#1 /home/keyhelp/www/keyhelp/core/Validation/Validation.php(390): idnToAscii()
#2 /home/keyhelp/www/keyhelp/functions/functions.install.php(26): Validation\Validation::domain()
#3 /home/keyhelp/www/keyhelp/install/install.php(75): getServerFQDN()
#4 {main}
thrown in /home/keyhelp/www/keyhelp/functions/functions.main.php on line 2246

How resolve it?

Re: PHP Warning: Undefined array key "encryption" in /home/keyhelp/www/keyhelp/core/License/License.php on line 144

Posted: Fri 7. Nov 2025, 14:26
by Alexander
Hello,

Code: Select all

hostname: Name or service not known
You have to make sure the command "hostname --fqdn" returns something meaningful.

Please check /etc/hosts and /etc/hostname in order to fix this.


Because of the licence error message, this can be ignored in KeyHelp 25.2 + it will not show up on upcoming versions.

Re: PHP Warning: Undefined array key "encryption" in /home/keyhelp/www/keyhelp/core/License/License.php on line 144

Posted: Fri 7. Nov 2025, 14:44
by bestman
What are correctly hosts and hostnames?

Re: PHP Warning: Undefined array key "encryption" in /home/keyhelp/www/keyhelp/core/License/License.php on line 144

Posted: Fri 7. Nov 2025, 14:52
by Alexander
That depends on which server name and IP address have been assigned to the server. The server name should be a "fully qualified domain name" (FQDN).

Example: /etc/hostname

Code: Select all

km123456789.keymachine.de
Example: /etc/hosts

Code: Select all

127.0.0.1       localhost.localdomain   localhost
123.123.123.123    km123456789.keymachine.de     km123456789

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters