• Resolved Sel?uk G?ktekin

    (@sgoktekin)


    Dear [Plugin Developer Team/Support Person],

    I hope this message finds you well. I am encountering deprecation warnings related to the strtolower() function in your Woo Discount Rules plugin. Specifically, the issues occur in the DBTable.php file:

    • File: wp-content/plugins/woo-discount-rules/v2/App/Models/DBTable.php
    • Lines: 185 and 230

    The warnings are as follows:

    PHP Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated

    These warnings are related to PHP 8.0 and later versions, where strtolower() does not accept null values.

    Could you please update the code to handle these null values appropriately, ensuring compatibility with the latest PHP versions?

    Thank you for your assistance.

    Best regards,

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

    (@haripradeepa)

    Hi,

    Thank you for reaching out. I am Hari Pradeepa from Customer Support Team of Flycart.

    To better assist you with your issue, could you please submit a support ticket on our website at Flycart Support? When submitting the ticket, kindly include the following details:

    1. Screenshot of the warning occurred.
    2. Video screenshot to reproduce the error message.

    This information will help us investigate further and provide you with possible solutions.

    Best regards,

    Flycart support team.

    Thread Starter Sel?uk G?ktekin

    (@sgoktekin)

    I would like to report a compatibility issue with your plugin. Starting from PHP 8.1, the creation of dynamic properties has been deprecated. Consequently, the dynamic addition of the awdr_product_original_price property to the WC_Product_Simple class is triggering the following deprecation warning:

    csharp

    Kodu kopyala

    PHP Deprecated: Creation of dynamic property WC_Product_Simple::$awdr_product_original_price is deprecated in C:\xampp\htdocs\w\wp-content\plugins\woo-discount-rules\v2\App\Controllers\ManageDiscount.php on line 1427

    To resolve this issue, I recommend adding the awdr_product_original_price property to the WC_Product_Simple class, thus avoiding the use of dynamic properties.

    Addressing this issue will help improve the plugin’s compatibility and prevent similar issues in the future. I kindly request that you consider this adjustment.

    I am writing the log records instead of screenshots. I do not believe that the screenshot will contribute to the solution of the problem.

    Plugin Support haripradeepa

    (@haripradeepa)

    Hi there,

    Thank you for bringing this matter to our attention.

    We have forwarded the information to our development team, and we assure you that the deprecation notice will be addressed in the upcoming release.

    We appreciate you reporting this issue to us. Please do not hesitate to reach out if you have any further questions or concerns.

    Incase of any other issues, could you please submit a support ticket on our website with the required details at?https://www.flycart.org/support?

    Thanks
    Team Flycart

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