Title: PHP error in my debug.log
Last modified: January 21, 2021

---

# PHP error in my debug.log

 *  Resolved [makobaby01](https://wordpress.org/support/users/makobaby01/)
 * (@makobaby01)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/php-error-in-my-debug-log/)
 * 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](https://wordpress.org/support/users/stuartduff/)
 * (@stuartduff)
 * Automattic Happiness Engineer
 * [5 years, 4 months ago](https://wordpress.org/support/topic/php-error-in-my-debug-log/#post-13938550)
 * Hi [@makobaby01](https://wordpress.org/support/users/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](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](https://wordpress.org/support/users/makobaby01/)
 * (@makobaby01)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/php-error-in-my-debug-log/#post-13939362)
 * 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](https://wordpress.org/support/users/dougaitken/)
 * (@dougaitken)
 * Automattic Happiness Engineer
 * [5 years, 4 months ago](https://wordpress.org/support/topic/php-error-in-my-debug-log/#post-13942370)
 * Hey [@makobaby01](https://wordpress.org/support/users/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](https://wordpress.org/support/users/makobaby01/)
 * (@makobaby01)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/php-error-in-my-debug-log/#post-13942801)
 * 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](https://wordpress.org/support/users/stuartduff/)
 * (@stuartduff)
 * Automattic Happiness Engineer
 * [5 years, 4 months ago](https://wordpress.org/support/topic/php-error-in-my-debug-log/#post-13954670)
 * Hey [@makobaby01](https://wordpress.org/support/users/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](https://wordpress.org/themes/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](https://wordpress.org/support/users/makobaby01/)
 * (@makobaby01)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/php-error-in-my-debug-log/#post-13965511)
 * I will create a test site and try to reproduce the error, return later.
 *  [Damianne P (a11n)](https://wordpress.org/support/users/drwpcom/)
 * (@drwpcom)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/php-error-in-my-debug-log/#post-14126383)
 * Hi [@makobaby01](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/facebook-for-woocommerce/assets/icon.svg?rev=3469606)
 * [Meta for WooCommerce](https://wordpress.org/plugins/facebook-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/facebook-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/facebook-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/facebook-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/facebook-for-woocommerce/reviews/)

## Tags

 * [notice](https://wordpress.org/support/topic-tag/notice/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 7 replies
 * 4 participants
 * Last reply from: [Damianne P (a11n)](https://wordpress.org/support/users/drwpcom/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/php-error-in-my-debug-log/#post-14126383)
 * Status: resolved