New Landing How can we help? Themeforest Theme Support Uplift PHP Notice: Trying to get property of non-object in …/core/sf-header.php

Viewing 11 posts - 1 through 11 (of 11 total)
  • Posted in: Uplift
  • #316234
    DominicPilon
    Member
    Post count: 5

    Hi guys,

    Just upgraded from WordPress 4.7.2 to 4.7.3 and Uplift theme from 1.3.20 to 1.3.30 (no other upgrades at the time).

    When I activate the debug mode on my dev site, I see a PHP Notice that was not there before the updgrades.

    PHP Notice: Trying to get property of non-object in /home/viosimo/…/wp-content/themes/uplift/swift-framework/core/sf-header.php on line 1235

    It only appears when a logged in user goes on the woocommerce part of the site.

    Refers to these lines of code:


    $product_obj_id = method_exists( $product_obj, 'get_id' ) ?
    $product_obj->get_id() : $product_obj->id;

    I’ve got Woocommerce 2.6.14

    Any thoughts on the matter on how to respond to this notice ?

    #316252
    David Martin – Support
    Moderator
    Post count: 20834

    What page/URL does that error occur on?

    Thanks.

    #316257
    DominicPilon
    Member
    Post count: 5

    On our Woocommerce Storefront (https://www.viosimo.com/boutique)

    #316261
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Thanks for the heads up, will forward to our development team.

    -Rui

    #316314
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi @DominicPilon

    Can you please try disabling YITH WooCommerce Wishlist – and seeing if the error goes away? I think this may be due to that plugin.

    Let us know.

    – Ed

    #316404
    DominicPilon
    Member
    Post count: 5

    Hello all!

    Yep, When I disable the YITH WooCommerce Wishlist no more PHP Notice.

    You found the culprit.

    Who has to make the fix to be able to use this Wishlist at the end of the day ? You or YITH ?

    #316405
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    It would be YITH that need to make the fix. They are usually pretty decent, they’ll just need add WooCommerce 2.7 support – the code that is producing the error is recommended by WooCommerce themselves in regards to providing support for 2.6 and 2.7 simultaneously.

    Thanks,

    – Ed

    #316411
    DominicPilon
    Member
    Post count: 5

    Can you point me in what I should tell them please.

    At the moment, I only have the references to the sf-header.php file (and they will probably tell me to talk to you guys if I ask the same question).

    Thanks

    #316476
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    They are probably aware of the situation, but tell them that they need to ensure the compatibility of Woocommerce 2.6 and 2.7
    Also tell them that our development team already analysed the situation and they can reach us if necessary.

    -Rui

    #316482
    DominicPilon
    Member
    Post count: 5

    Thanks,

    I will close this ticket once I get the response from YITH and will paste it here if needed.

    Just want to make sure that if someone else has the problem, that the answer will be complete here.

    #316564
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Of course. Thanks for that.

    -Rui

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register