Domain name is not set. Please check your server configuration. If this error happens only in cronjobs, please make sure that cronjobs are running via php-cli (NOT via php-cgi or php-fpm) or use HTTP cron setup.