• In error logs: Undefined array key “HTTP_REFERER” in /public_html/wp-content/plugins/modern-events-calendar-lite/app/libraries/main.php on line 6950

Viewing 3 replies - 1 through 3 (of 3 total)
  • Can confirm, same here.

    angel1975

    (@angel1975)

    The same for me. For every shortcode I tried. But on mobile it’s perfect. Only problem on PC.

    angel1975

    (@angel1975)

    Guys…

    Waiting for the fix of mistake from the developers I solved in this way:

    I downloaded the file main.php from the path:
    /wp-content/plugins/modern-events-calendar-lite/app/libraries/main.php

    at line 6950 I had:
    if(str_contains($_SERVER[‘HTTP_REFERER’],’external=1′)){

    I changed into:
    if(isset($_SERVER[‘HTTP_REFERER’]) && str_contains($_SERVER[‘HTTP_REFERER’], ‘external=1’)){

    isset($_SERVER['HTTP_REFERER']) checks if the key exists before passing it to str_contains(), avoiding the warning.

    Bye!
    A.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Undefined array key “HTTP_REFERER”’ is closed to new replies.