Title: Error when plugin is active
Last modified: February 11, 2026

---

# Error when plugin is active

 *  Resolved [Evgeny](https://wordpress.org/support/users/hat99/)
 * (@hat99)
 * [3 months, 4 weeks ago](https://wordpress.org/support/topic/error-when-plugin-is-active-2/)
 * Hello. I had to disable the plugin due to an error. It appears at the top of 
   the site.
   Here’s the error: Warning: Undefined property: stdClass::$post_name
   in /var/www/…………../data/www/……………./wp-content/plugins/woo-wallet/includes/class-
   woo-wallet-frontend.php on line 127Please tell me what the problem is.

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

 *  Plugin Author [Subrata Mal](https://wordpress.org/support/users/subratamal/)
 * (@subratamal)
 * [3 months, 3 weeks ago](https://wordpress.org/support/topic/error-when-plugin-is-active-2/#post-18818911)
 * [@hat99](https://wordpress.org/support/users/hat99/) We fixed this issue in plugin
   version 1.5.16 please check and let us know.
 *  Thread Starter [Evgeny](https://wordpress.org/support/users/hat99/)
 * (@hat99)
 * [3 months, 3 weeks ago](https://wordpress.org/support/topic/error-when-plugin-is-active-2/#post-18819000)
 * [@subratamal](https://wordpress.org/support/users/subratamal/) The problem remains.
   Nothing has changed.
 *  Thread Starter [Evgeny](https://wordpress.org/support/users/hat99/)
 * (@hat99)
 * [3 months ago](https://wordpress.org/support/topic/error-when-plugin-is-active-2/#post-18843789)
 * [@subratamal](https://wordpress.org/support/users/subratamal/) , I couldn’t handle
   this problem alone. I need your help, please.
 *  Thread Starter [Evgeny](https://wordpress.org/support/users/hat99/)
 * (@hat99)
 * [2 months, 4 weeks ago](https://wordpress.org/support/topic/error-when-plugin-is-active-2/#post-18849301)
 * The update was released, but my problem was ignored.
 *  Thread Starter [Evgeny](https://wordpress.org/support/users/hat99/)
 * (@hat99)
 * [2 months, 3 weeks ago](https://wordpress.org/support/topic/error-when-plugin-is-active-2/#post-18852257)
 * Dear developers,
   To resolve this error, simply add an additional check for the
   existence of the “$post_name” property within the “$item” object. The correct
   line with this additional check is shown below:if (is_object( $item )&& isset(
   $item->post_name ) // Add the property existence check here&& ‘my-wallet’ ===
   $item->post_name&& get_post_meta( $item->ID, ‘_show_wallet_icon_amount’, true))
   This will prevent the error that occurs due to accessing a non-existent object
   property.I’ve fixed this in my content, but I’m sure that after any update, the
   source code will revert to its previous state, and line 127 will need to be changed
   again.If possible, please check and implement it at your level.Thank you.

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-when-plugin-is-active-2%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/woo-wallet/assets/icon-256x256.png?rev=3360666)
 * [Wallet for WooCommerce](https://wordpress.org/plugins/woo-wallet/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-wallet/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-wallet/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-wallet/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-wallet/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-wallet/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Evgeny](https://wordpress.org/support/users/hat99/)
 * Last activity: [2 months, 3 weeks ago](https://wordpress.org/support/topic/error-when-plugin-is-active-2/#post-18852257)
 * Status: resolved