• Resolved keramikoch

    (@keramikoch)


    Hi dear Dokan support,

    I somethimes get the following errors when adding a product to the cart:

    [27-Nov-2024 17:26:37 UTC] PHP Warning: Attempt to read property “ID” on bool in …/public_html/wp-content/plugins/dokan-lite/includes/wc-template.php on line 59
    [27-Nov-2024 17:26:37 UTC] …/public_html/wp-content/plugins/dokan-lite/templates/global/product-tab.php on line 43

    This seems to happen when the product retrieval fails, resulting in a bool instead of a product object.

    Could you please ask the developers to add a validation check to ensure the product is correctly retrieved before accessing its properties (e.g., if ($product && is_a($product, ‘WP_Post’)))? This would prevent these warnings and improve reliability.

    Thanks for your help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Md Fayeakuzzaman

    (@fayeakuzzaman)

    Hello @keramikoch,

    Thank you for your patience. We’ve already notified our development team about this issue, and they are currently working on adding a check to ensure the product is retrieved correctly. As soon as we have an update, we’ll be sure to keep you informed.

    Thanks!

    Thread Starter keramikoch

    (@keramikoch)

    Hi @fayeakuzzaman , thanks very much ??

    Plugin Support Md Fayeakuzzaman

    (@fayeakuzzaman)

    Hello @keramikoch,

    We assigned this issue to our developer. However, we are not getting any update till now. So, we’ll consider this topic resolved for now. Once I get an update, I will get back to you. If you encounter any further issues in the meantime, please don’t hesitate to open a new topic.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.