Title: Undefined variable $current_user
Last modified: March 4, 2023

---

# Undefined variable $current_user

 *  Resolved [jppinto](https://wordpress.org/support/users/jppinto/)
 * (@jppinto)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/undefined-variable-current_user/)
 * I know its just a warning but this is filling up my logs:
 * [02-Mar-2023 18:08:44 UTC] PHP Warning: Undefined variable $current_user in C:\
   inetpub\sites\site.com\wp-content\plugins\wc-cashapp\includes\class-wc_cash_app_pay_gateway.
   php on line 48

Viewing 1 replies (of 1 total)

 *  Plugin Author [The African Boss](https://wordpress.org/support/users/theafricanboss/)
 * (@theafricanboss)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/undefined-variable-current_user/#post-16528299)
 * Hey can you add the following line in includes/class-wc_cash_app_pay_gateway.
   php on line 47
 * global $current_user;
 * or delete that plugin and redownload again.
 * We are publishing a new version soon with tons of features but the latest version
   also has that fixed but we couldn’t just launch a new version just for that line.
   But if you delete and redownload, it should be fixed. Or you can add the line.

Viewing 1 replies (of 1 total)

The topic ‘Undefined variable $current_user’ is closed to new replies.

 * ![](https://ps.w.org/wc-cashapp/assets/icon-256x256.png?rev=2769971)
 * [Checkout with Cash App on WooCommerce](https://wordpress.org/plugins/wc-cashapp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wc-cashapp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wc-cashapp/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-cashapp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-cashapp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-cashapp/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [The African Boss](https://wordpress.org/support/users/theafricanboss/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/undefined-variable-current_user/#post-16528299)
 * Status: resolved