• Resolved goudev

    (@goudev)


    Hello, the Store and products page are showing this error, how can I fix it?

    Error: Notice: Trying to get property ‘slug’ of non-object in ***/woocustomizer/includes/inc/woocommerce.php on line 1428
    Line 1428
    if ( $args->menu == $wcz_logmenu || $args->menu->slug == $wcz_logmenu || $args->theme_location == $wcz_logmenu ) {

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Kaira

    (@kaira)

    Hi @goudev

    I’m looking into this now and will post an update soon with a fix for that issue.

    Thanks

    Plugin Author Kaira

    (@kaira)

    Hi @goudev

    Can you please contact me at zack@ kairaweb .com so I can help to fix this, I need to know how to re-create this issue or view it on your site so I can fix it.

    Thanks

    Thread Starter goudev

    (@goudev)

    Hi.

    I’m using on localhost, but it is possible to find some sites with the same error in a google search. For example:

    https://www.andersonscraft.com/en/product-category/segukast-en/
    https://hipnosisconmari.com/tienda/
    https://www.sheraton-mebel.com/product-category/desks/

    Thanks

    Plugin Author Kaira

    (@kaira)

    Ok thanks… I’m looking into it. I just need some help on re-creating the issue if you can.

    Which theme are you using?
    Have you set up a menu in Appearance -> Menus area?
    And is this an issue when using the Login/Logout setting?

    Thanks

    Thread Starter goudev

    (@goudev)

    Hi
    Which theme are you using?
    UpStore – Responsive Multi-Purpose WordPress Theme

    Have you set up a menu in Appearance -> Menus area?
    Yes

    And is this an issue when using the Login/Logout setting?
    I’m not using this function

    * Temporarily changed line 1428 to “if ( $args->menu == $wcz_logmenu || $args->theme_location == $wcz_logmenu ) { ” and everything is working normally, without the error message.

    Thanks

    Plugin Author Kaira

    (@kaira)

    Ok thanks… It needs that extra argument to be able to work with other themes.

    I’ve added a fix for this which I will post the update in a few minutes… Please update and let me know if it’s fixed.

    Thanks

    Plugin Author Kaira

    (@kaira)

    Marking as resolved as this seems to be fixed now on all sites.
    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Trying to get property ‘slug’’ is closed to new replies.