• Resolved Evgeny

    (@hat99)


    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 127
    Please tell me what the problem is.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Subrata Mal

    (@subratamal)

    @hat99 We fixed this issue in plugin version 1.5.16 please check and let us know.

    Thread Starter Evgeny

    (@hat99)

    @subratamal The problem remains. Nothing has changed.

    Thread Starter Evgeny

    (@hat99)

    @subratamal , I couldn’t handle this problem alone. I need your help, please.

    Thread Starter Evgeny

    (@hat99)

    The update was released, but my problem was ignored.

    Thread Starter Evgeny

    (@hat99)

    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 to reply to this topic.