• Resolved jstaerk

    (@jstaerk)


    After the last update, when I have a valid license key e.g. ID-03y8XR5KKlwum5g and send the usual authenticated post to https://127.0.0.1/shop/wp-json/lmfwc/v2/licenses/validate/ID-03y8XR5KKlwum5g

    I now get a http 500 response code with

    <!--
    ErrorException: Undefined variable $activation_data in file C:\projekte\homepages\shop\wp-content\plugins\license-manager-for-woocommerce\includes\Api\V2\Licenses.php on line 885
    

    in it’s body. If in \includes\Api\V2\Licenses.php in l. 877 I add

    $activation_data =[];

    it works again.

    • This topic was modified 6 months ago by jstaerk.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support kidwai

    (@kidwai)

    Hi @jstaerk

    We appreciate your detailed report and the suggested fix. I’ll forward this information to our development team to ensure it is addressed in the next update. In the meantime, you can apply the temporary fix you mentioned to keep your system running smoothly.

    Thank you for your patience and understanding. If you have any further questions or need additional assistance, please open a ticket on our official website.

    Regards,

    WPExperts Support Team

    Thread Starter jstaerk

    (@jstaerk)

    Thank you very much.

    Please note that independently from that, I get a 500 server error when I validate invalid licenses

    [2024-06-03 06:18:17] production.ERROR: Call to a member function getId() on bool {"exception":"[object] (Error(code: 0): Call to a member function getId() on bool at /home/customer/www/foundandscan.com/public_html/dev2210/wp-content/plugins/license-manager-for-woocommerce/includes/Api/V2/Licenses.php:855)

    instead of the expected

    { “code”: “lmfwc_rest_data_error”, “message”: “License Key: ID-0xyepxVUrjF5tki could not be found.”, “data”: { “status”: 404 } }

    -> I additionally suggest to add a if ($license!==false) { block in l. 854

    diff Licenses.php Licenses.old.php
    854d853
    <             if ($license!==false) {
    860d858
    <                 }
    

    to make it work again as the if (!$license) catching block is some lines below in the code.

    thank you very much and kind regards

    Jochen

    Plugin Support Ibaad Ahmed Khan

    (@ibaad06)

    Dear @jstaerk

    Thank you for bringing this issue to our attention, Our development team has already implemented a fix. This resolution will be included in the next update.

    Regards,

    WPExperts Support Team

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