Grateful for your last plugin updated: Just a quick note about a JavaScript err
-
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
toggleInviteCodeFieldfunction in the Paid Member Subscriptions plugin.The error occurs when the
#pms_invite_codefield 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
.lengthwithout verifying thatfield.valueis 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
The topic ‘Grateful for your last plugin updated: Just a quick note about a JavaScript err’ is closed to new replies.