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

Discussions about the installation of KeyHelp.
Post Reply
bestman
Posts: 2
Joined: Fri 7. Nov 2025, 14:00

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

Post 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?
User avatar
Alexander
Keyweb AG
Posts: 4620
Joined: Wed 20. Jan 2016, 02:23

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

Post 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.
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
bestman
Posts: 2
Joined: Fri 7. Nov 2025, 14:00

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

Post by bestman »

What are correctly hosts and hostnames?
User avatar
Alexander
Keyweb AG
Posts: 4620
Joined: Wed 20. Jan 2016, 02:23

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

Post 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
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Post Reply