• i noticed in our debug log these errors that keep appearing over and over. I believe that these appear when the cache is cleared. What is this exactly?

    [14-May-2019 04:10:10 UTC] PHP Notice: Undefined index: HTTP_HOST in /home/home_site/public_html/wp-content/plugins/wp-fastest-cache/inc/cdn.php on line 137
    [14-May-2019 04:10:10 UTC] PHP Notice: Undefined variable: res in /home/home_site/public_html/wp-content/plugins/wp-fastest-cache/inc/cdn.php on line 169

    thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Emre Vona

    (@emrevona)

    how do you clear cache? via wp-admin panel?

    Thread Starter carlcs

    (@carlcs)

    hi

    yes through the wp-admin panel

    thanks

    Plugin Author Emre Vona

    (@emrevona)

    it means that $_SERVER[“HTTP_HOST”] is not set. this is a big problem in your site.

    Thread Starter carlcs

    (@carlcs)

    we checked our phpinfo plugin and it is set in the information on the site. is it possible that this is affected by cloudflare? we have cloudflare set up on our site qs well

    thanks

    Plugin Author Emre Vona

    (@emrevona)

    can you remove the Cloudflare integration and add again please?

    Thread Starter carlcs

    (@carlcs)

    i did not check anymore with disabling cloudflare. i checked the plugins we’re using for displaying phpinfo() details and they are returning the contents of $_SERVER[“HTTP_HOST”] correctly even with cloudflare enabled. Aside from that, one of the plugins has an email functionality which sets up the headers like so

    $headers = array(
    ‘Content-Type: text/html; charset=UTF-8’,
    ‘From: ‘ . get_bloginfo( ‘name’, ‘display’ ) . ‘<no-reply@’ . $_SERVER[‘HTTP_HOST’] . ‘>’
    );

    the ‘From’ in the received email displays the content of $_SERVER[‘HTTP_HOST’] correctly. Since this is in the cdn integration section of wp fastest cache, i just removed the cloudflare integration and changed the cloudflare settings manually in our cloudflare setup based on the options changed by wp fastest cache

    thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘undefined “HTTP_HOST” and “res” variables found in inc/cdn.php’ is closed to new replies.