• The plugin still works, but I’ve got some warnings in PHP 8.0.

    `2021/09/19 03:26:46 [error] 51355#51355: *115 FastCGI sent in stderr: “PHP message: PHP Warning: Undefined array key “HTTP_USER_AGENT” in /xxx/wp-content/plugins/urvanov-syntax-highlighter/util/class-urvanov-syntax-highlighter-util.php on line 763′

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author urvanov

    (@urvanov)

    Ok, I will try to fix it. Thank you.

    Thread Starter cnxsoft

    (@cnxsoft)

    Now I’m just using the following code to prevent the warnings:

           $user = '';
            if (isset($_SERVER["HTTP_USER_AGENT"])) {
                $user = $_SERVER['HTTP_USER_AGENT'];
            }
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP 8.0 warning about HTTP_USER_AGENT’ is closed to new replies.