• Resolved silvia29

    (@silvia29)


    Hello Dear Support,

    First of all, let me say that your plugin is fantastic — I truly love it and appreciate the work behind it. I also really enjoy contributing to making it even more perfect. I just wanted to share a small issue I noticed on my site:

    I’m experiencing a recurring JavaScript error site related to the toggleInviteCodeField function in the Paid Member Subscriptions plugin.

    The error occurs when the #pms_invite_code field is missing or empty, and it disrupts page behavior. Here’s the full error trace from Chrome:

    jQuery.Deferred exception: Cannot read properties of undefined (reading ‘length’)
    TypeError: Cannot read properties of undefined (reading ‘length’)
    at toggleInviteCodeField (front-end.js?ver=2.16.3:1442:24)
    at HTMLDocument. (front-end.js?ver=2.16.3:1452:5)

    It seems the function attempts to access .length without verifying that field.value is defined.

    It could be related with your last plugin update? cause before this update the error never occurred.

    Could you please review this and consider adding a safeguard to prevent the error when the field is not present or empty?

    Thank you for your support.

    Best regards

    • This topic was modified 7 months, 4 weeks ago by silvia29.
Viewing 1 replies (of 1 total)
  • Plugin Support alexandrubodea

    (@alexandrubodea)

    Hi @silvia29,

    We’re truly happy to hear that you’re enjoying our plugin! We hope it continues to meet your needs and expectations moving forward.

    Regarding the issue, thank you for reporting this. I’ve created a task and forwarded it to our development team so that it can be fixed in our next plugin updates.

Viewing 1 replies (of 1 total)

The topic ‘Grateful for your last plugin updated: Just a quick note about a JavaScript err’ is closed to new replies.