• Resolved droixstore

    (@droixstore)


    After installing Weglot I have started getting error message while running cron:

    I get following error message when runnin cron PHP Warning: Undefined array key “SERVER_PROTOCOL” in /var/www/vhosts/droix.net/httpdocs/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Util/Server.php on line 122 PHP Warning: Undefined array key “SERVER_PROTOCOL” in /var/www/vhosts/droix.net/httpdocs/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Util/Server.php on line 122 PHP Warning: Undefined array key “SERVER_PROTOCOL” in /var/www/vhosts/droix.net/httpdocs/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Util/Se…

    after providing a default value for SERVER_PROTOCOL issue seems to be gone, however I would like your support to look into it and include that fix in future releases

    public static function getProtocol(array $server)
    {
    $protocol = isset($server[‘SERVER_PROTOCOL’]) ? strtolower($server[‘SERVER_PROTOCOL’]) : ‘http’;
    return substr($protocol, 0, strpos($protocol, ‘/’)) . (self::isSsl($server) ? ‘s’ : ”);
    }

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Undefined array key “SERVER_PROTOCOL” when running Cron’ is closed to new replies.