• Resolved Blamedutchie

    (@blamedutchie)


    PHP Notice: Undefined index: HTTP_REFERER in /../wp-content/plugins/updraftplus/class-updraftplus.php on line 4629

    The way I understand it, the user-agent either sends this or not… In your code there is no check, so when user-agent doesn’t send it throws an error. Maybe build in a check?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor bcrodua

    (@bcrodua)

    Hi,

    Can you please provide us more details as to when does the message comes up?

    Regards,
    Bryle

    Thread Starter Blamedutchie

    (@blamedutchie)

    @bcrodua

    Hi,
    Sorry it took a while. In order to figure that out, I created an empty debug.log and logged in as an administrator. Started clicking on everything and the logfile grew and grew.

    Suddenly I thought of firewall and .htaccess:

    I have a line Header set Referrer-Policy "no-referrer"
    Changing the policy to “strict-origin” obviously solves the issue.

    Right now, I feel a bit stupid for not seeing this earlier and wasting your time. On the other hand, you can put this in your knowledge base and others may learn from it.

    Have a great weekend and as always thanks for your support!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Undefined index: HTTP_REFERER’ is closed to new replies.