• Resolved makobaby01

    (@makobaby01)


    When I enable debugging on my website, I come across these warnings when browsing the product page, why does this happen?

    “PHP Notice: Undefined index: HTTP_REFERER in /*/wp-content/plugins/facebook-for-woocommerce/includes/Events/Event.php on line 211”

Viewing 7 replies - 1 through 7 (of 7 total)
  • Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hi @makobaby01,

    Looking at the code of the FaceBook for WooCommerce plugin below the HTTP_REFERER is part of the get_current_url() function. It seems that your site is possibly having an issue retrieving the HTTP_REFERER URL from your web browser.

    https://github.com/facebookincubator/facebook-for-woocommerce/blob/1bde61409078a9da73ebc072479b3e3fa01644a8/includes/Events/Event.php#L207

    The plugin however should default to the home URL of your site and function as expected.

    What web browser are you using to load your site and do you see the same error message when testing in different web browsers?

    Thread Starter makobaby01

    (@makobaby01)

    It happens to me using chrome and the edge, it used to vary and I always got these messages, but now I want to solve

    dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hey @makobaby01

    Do you feel this is causing an error at all?

    When you mention debugging, can you clarify what exactly this is? I’d like to see if I can replicate this.

    Thanks,

    Thread Starter makobaby01

    (@makobaby01)

    I believe it is, it happens whenever I browse product pages, I don’t know exactly that, but when I add the product to the cart with it enabled, it takes slightly longer, but I always leave it enabled anyway, to synchronize my products.

    I enabled debug.log and leave it hidden on the page, then it stores everything in debug.log in wp-content, only there is it shown, on the site itself, this message does not return when I enable it to be shown on the sites.

    Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hey @makobaby01,

    I’ve performed some cross-testing for us today on several of my sites which have the latest versions of WordPress, WooCommerce, FaceBook for WooCommerce and our free Storefront theme as the only enabled software. When doing so I’ve not been able to replicate the behaviour which you describe with regards to the error message you’re receiving on products.

    I also could not find any instances of the error message in my test installations debug logs either.

    Thread Starter makobaby01

    (@makobaby01)

    I will create a test site and try to reproduce the error, return later.

    Hi @makobaby01, we never heard from you here and I see you have newer issues so I’m going to go ahead and close this thread.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘PHP error in my debug.log’ is closed to new replies.