Okay
  Public Ticket #2836391
Trying to get property 'cart_contents_count' of non-object
Closed

Comments

  •  8
    benoitfouc33 started the conversation

    Hi there, i was seeing my debug.log file and in see this error happen many times :

    PHP Notice:  Trying to get property 'cart_contents_count' of non-object in /wp-content/themes/salient/nectar/helpers/woocommerce.php on line 1148


    PHP Notice:  Trying to get property 'cart_contents_count' of non-object in /wp-content/themes/salient/includes/partials/header/header-menu.php on line 132


    I'm using PHP 7.4

    Regards

  •  8,938
    Tahir replied

    Hey Again,

    Which Theme Version are you using ?. Try to downgrade to PHP 7.3 to remove the Notices.

    Thanks 


    ThemeNectar Support Team 

  •  8
    benoitfouc33 replied

    Hi Tahir, i'm using Salient Version : 13.0.5

    I will upgrade to PHP 8.0 as soon, that's why i'm checking the debug now.

    Regards

  •  8,938
    Tahir replied

    Thanks for the Information, let us know if you run into any issues upgrading to PHP 8.

    Best


    ThemeNectar Support Team