Title: MInor PHP bug &#8211; undeclared variable
Last modified: May 27, 2026

---

# MInor PHP bug – undeclared variable

 *  [Paul](https://wordpress.org/support/users/headwall/)
 * (@headwall)
 * [1 week, 2 days ago](https://wordpress.org/support/topic/minor-php-bug-undeclared-variable/)
 * Hi
 * The file `woocommerce-services/classes/class-wc-connect-functions.php` is missing
   a declaration for `$helper_auth_data` so we’re seeing the following error come
   through on our cron reports:
 *     ```wp-block-code
       Undefined variable $helper_auth_data in /web/wp-content/plugins/woocommerce-services/classes/class-wc-connect-functions.php on line 36
       ```
   
 * Can you initialise the variable before trying to reference it please?
 * Paul

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

 *  Plugin Support [Frank Remmy (woo-hc)](https://wordpress.org/support/users/frankremmy/)
 * (@frankremmy)
 * [1 week, 2 days ago](https://wordpress.org/support/topic/minor-php-bug-undeclared-variable/#post-18921082)
 * Hi Paul,
 * Thanks for flagging this and for taking the time to report it.
 * I was able to reproduce and confirm the behavior across both versions 3.6.3 and
   3.6.2. It looks like `$helper_auth_data` should be initialized before it’s referenced
   on line 36 of class-wc-connect-functions.php, which explains the PHP warning.
 * I’m going to share this internally with the developers so they can check whether
   this is already tracked in Linear or needs logging. I’ll circle back here once
   I have an update. Hang in there
 *  Plugin Support [Frank Remmy (woo-hc)](https://wordpress.org/support/users/frankremmy/)
 * (@frankremmy)
 * [3 days, 20 hours ago](https://wordpress.org/support/topic/minor-php-bug-undeclared-variable/#post-18926034)
 * Hi again [@headwall](https://wordpress.org/support/users/headwall/),
 * Just giving you an update on how things are going. We’re yet to receive one but
   once we do, we’ll notify you.
 * Hang in there.

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fminor-php-bug-undeclared-variable%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/woocommerce-services/assets/icon-256x256.png?rev=3234419)
 * [WooCommerce Tax (formerly WooCommerce Shipping & Tax)](https://wordpress.org/plugins/woocommerce-services/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-services/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-services/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-services/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-services/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-services/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Frank Remmy (woo-hc)](https://wordpress.org/support/users/frankremmy/)
 * Last activity: [3 days, 20 hours ago](https://wordpress.org/support/topic/minor-php-bug-undeclared-variable/#post-18926034)
 * Status: not resolved