• Resolved Vishal Lohar

    (@vlohar08)


    I am getting these PHP Notices in my debug.log file. Please tell me what it means and How to fix it?

    Note – I have replaced my domain with example.com

    [04-Jun-2022 03:59:04 UTC] PHP Notice:  Trying to get property 'post_title' of non-object in /home/example.com/public_html/wp-content/plugins/woocommerce-abandoned-cart/includes/classes/class-wcal-product-report-table.php on line 181
    [04-Jun-2022 03:59:04 UTC] PHP Notice:  Trying to get property 'post_title' of non-object in /home/example.com/public_html/wp-content/plugins/woocommerce-abandoned-cart/includes/classes/class-wcal-product-report-table.php on line 181
    [04-Jun-2022 03:59:04 UTC] PHP Notice:  Trying to get property 'post_title' of non-object in /home/example.com/public_html/wp-content/plugins/woocommerce-abandoned-cart/includes/classes/class-wcal-product-report-table.php on line 181
    [04-Jun-2022 03:59:04 UTC] PHP Notice:  Trying to get property 'post_title' of non-object in /home/example.com/public_html/wp-content/plugins/woocommerce-abandoned-cart/includes/classes/class-wcal-product-report-table.php on line 181
    
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support priyankajagtap

    (@priyankajagtap)

    Hi @vlohar08,

    Apologize for your inconvenience.

    We have checked on this error notice. It seems that some products have been deleted from your end and our plugin is trying to access them hence this error is coming.

    I tried to replicate this error at our end and I am able to replicate the same. I have reported this error to our development team and they have fixed it on priority. Below is the link to download the fixed file of our plugin that contains the patch to this issue.
    https://www.dropbox.com/s/wkx3ov5l786djrv/class-wcal-product-report-table.php?dl=0

    Kindly download the file and replace the existing file “class-wcal-product-report-table.php” with this provided file via FTP on the below mentioned path:
    wp-content/plugins/woocommerce-abandoned-cart/includes/classes/<HERE>

    Once you have replaced this file, please check and let me know if it is working fine or not.

    Regards,
    Priyanka

    Thread Starter Vishal Lohar

    (@vlohar08)

    Updated the file and the error is resolved. But Now I am getting a new error.

    [17-Jun-2022 05:27:56 UTC] PHP Warning:  get_object_vars() expects parameter 1 to be object, array given in /home/example.com/public_html/wp-content/plugins/woocommerce-abandoned-cart/includes/wcal-functions.php on line 73
    [17-Jun-2022 05:27:56 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /home/example.com/public_html/wp-content/plugins/woocommerce-abandoned-cart/includes/wcal-functions.php on line 73
    [17-Jun-2022 05:27:56 UTC] PHP Warning:  get_object_vars() expects parameter 1 to be object, array given in /home/example.com/public_html/wp-content/plugins/woocommerce-abandoned-cart/includes/wcal-functions.php on line 73
    [17-Jun-2022 05:27:56 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /home/example.com/public_html/wp-content/plugins/woocommerce-abandoned-cart/includes/wcal-functions.php on line 73
    Plugin Support priyankajagtap

    (@priyankajagtap)

    Hi @vlohar08,

    We have again tested this patch at our end but we did not get any new errors after replacing the provided file. Can you please drop us an email at support at tychesoftwares dot freshdesk dot com? We can discuss more about this issue there and we will try to fix the problem as early as we can.

    Regards,
    Priyanka

    Plugin Support priyankajagtap

    (@priyankajagtap)

    Hi @vlohar08,

    I am marking this topic as resolved as we haven’t heard back from you after our last response.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Notice: Trying to get property ‘post_title’’ is closed to new replies.