Title: PHP Warning: Undefined array key &#8220;source&#8221;
Last modified: March 12, 2024

---

# PHP Warning: Undefined array key “source”

 *  Resolved [davidaitch](https://wordpress.org/support/users/davidaitch/)
 * (@davidaitch)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-source/)
 * We are getting a regular and consistent error message in the website error_logs
   which reads [12-Mar-2024 14:44:58 UTC] PHP Warning: Undefined array key “source”
   in /home/xxxx/xxxxx/wp-content/plugins/jetpack/modules/woocommerce-analytics/
   classes/class-jetpack-woocommerce-analytics-universal.php on line 470
 * Can anyone help me to unpick what I need to do to resolve the error?
 * David
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-warning-undefined-array-key-source%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [thunderfrog](https://wordpress.org/support/users/thunderfrog/)
 * (@thunderfrog)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-source/#post-17511826)
 * Seeing this same error since March 17.
 *  Plugin Support [Paulina H. (a11n)](https://wordpress.org/support/users/pehaa/)
 * (@pehaa)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-source/#post-17524940)
 * Hi there,
 * It seems like you are encountering a PHP warning related to the WooCommerce Analytics
   feature in Jetpack. To help resolve this, I would suggest updating Jetpack and
   WooCommerce to their latest versions as a first step, as this might be an issue
   that has been fixed in a recent update.
 * If you are already using the latest versions, it may be a conflict with another
   plugin or with your theme. You can try the following steps:
    1. Disable all other plugins except Jetpack and WooCommerce and switch to a default
       theme like Twenty Twenty-One to check if the issue persists.
    2. If the warning goes away, enable each plugin one by one and switch back to your
       theme to identify the conflict.
 * If the error continues, please reply to this thread with your site URL so we 
   can have a look. If you want it to remain private, you can also contact us via
   [contact form](https://jetpack.com/contact-support/?rel=support&hpi=1). If you
   choose to reach out directly, please include a link to this thread.
 * Could you please also let us know the versions of Jetpack and WooCommerce you
   are currently running?
 * Thank you!

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

The topic ‘PHP Warning: Undefined array key “source”’ is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

## Tags

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

 * 2 replies
 * 3 participants
 * Last reply from: [Paulina H. (a11n)](https://wordpress.org/support/users/pehaa/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-source/#post-17524940)
 * Status: resolved