Let's Encrypt: Call to undefined function get_domain()
short description
When trying to add a Let's Encrypt certificate for a sub-sub domain (e.g. www.test.example.com) I get the error below running /usr/local/ispconfig/server/server.sh
.
The error does not occur using a domain containing less or equal 2 dots (because of not using the get_domain function in this case).
environment
Server OS: Ubuntu Server OS version: 20.04 ISPConfig version: 3.2 Beta 1
PHP Fatal error: Uncaught Error: Call to undefined function get_domain() in /usr/local/ispconfig/server/lib/classes/letsencrypt.inc.php:386
Stack trace:
#0 /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php(1275): letsencrypt->request_certificates()
#1 /usr/local/ispconfig/server/lib/classes/plugins.inc.php(120): apache2_plugin->update()
#2 /usr/local/ispconfig/server/mods-available/web_module.inc.php(139): plugins->raiseEvent()
#3 /usr/local/ispconfig/server/lib/classes/modules.inc.php(302): web_module->process()
#4 /usr/local/ispconfig/server/lib/classes/modules.inc.php(235): modules->raiseTableHook()
#5 /usr/local/ispconfig/server/server.php(180): modules->processDatalog()
#6 {main}
thrown in /usr/local/ispconfig/server/lib/classes/letsencrypt.inc.php on line 386