The gdlrā¦ is the issue I thinkā¦ but I removed them and the issue is still there.
But I dont have any javascript plugins on or anything.
The Cache plugin is deactivatedā¦
Stripe Credit Card Field not taking any entries
Oh no, I think its the theme itself, this badā¦
And I think it has something to do with cookies?
Reject insecure SameSite=None cookies
And it turns out it is a .js issueā¦ in my case. The theme just issued an update. I will run update it and see if that helps.
Fingers crossed
Thanks James, well you sorted out the error and cause of the problem for sure, but it appears the themes javascript is the problem. Even with the update its still thereā¦ and with a default theme it is not thereā¦ so solved, BUTā¦
Does anyone here know how I can correct the error? Am I doomed to redo the theme?
gdlr-script.js?ver=1.0:493 Uncaught TypeError: $(ā¦).live is not a function
at HTMLInputElement. (gdlr-script.js?ver=1.0:493)
at Function.each (jquery.js?ver=1.12.4-wp:2)
at n.fn.init.each (jquery.js?ver=1.12.4-wp:2)
at HTMLDocument. (gdlr-script.js?ver=1.0:490)
at i (jquery.js?ver=1.12.4-wp:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
at Function.ready (jquery.js?ver=1.12.4-wp:2)
at HTMLDocument.J (jquery.js?ver=1.12.4-wp:2)
(anonymous) @ gdlr-script.js?ver=1.0:493
each @ jquery.js?ver=1.12.4-wp:2
each @ jquery.js?ver=1.12.4-wp:2
(anonymous) @ gdlr-script.js?ver=1.0:490
i @ jquery.js?ver=1.12.4-wp:2
fireWith @ jquery.js?ver=1.12.4-wp:2
ready @ jquery.js?ver=1.12.4-wp:2
J @ jquery.js?ver=1.12.4-wp:2
[Violation] Forced reflow while executing JavaScript took 120ms
gdlr-script.js?ver=1.0:689 Uncaught TypeError: Cannot read property āmsieā of undefined
at gdlr-script.js?ver=1.0:689
at dispatch (jquery.js?ver=1.12.4-wp:3)
at r.handle (jquery.js?ver=1.12.4-wp:3)
(anonymous) @ gdlr-script.js?ver=1.0:689
dispatch @ jquery.js?ver=1.12.4-wp:3
r.handle @ jquery.js?ver=1.12.4-wp:3
load (async)
add @ jquery.js?ver=1.12.4-wp:3
(anonymous) @ jquery.js?ver=1.12.4-wp:3
each @ jquery.js?ver=1.12.4-wp:2
each @ jquery.js?ver=1.12.4-wp:2
ra @ jquery.js?ver=1.12.4-wp:3
on @ jquery.js?ver=1.12.4-wp:3
488 @ give.js?ver=2.7.5:35
n @ give.js?ver=2.7.5:1
846 @ give.js?ver=2.7.5:35
n @ give.js?ver=2.7.5:1
482 @ give.js?ver=2.7.5:22
n @ give.js?ver=2.7.5:1
(anonymous) @ give.js?ver=2.7.5:1
(anonymous) @ give.js?ver=2.7.5:1
Are you using wp version 5.5? I would roll back to 5.4 and see if the issue is with the changes to jquery
Ah that could be! Thanks James!
I am using 5.5.
Quickest easiest way to roll back?
Found a plugin for thatā¦ rollbacksā¦ etcā¦ thanks, you are on the right track xo!
So far no go to 5.4
I will check more versions later. I also contacted the developers of the theme to see if they can do anything. But James you could be right, I have another site running that theme (its version is: 5.4.2) and the fields are working . Plugins are all very similar if not identical, both sites on cloudflareā¦
I appreciate you following the thread and trouble shooting.
S
@SarahG - Have another check that your 5.5 rollback to 5.4 actually worked. One of my legacy theme users did a 5.5ā>5.4 rollback via GoDaddy but when I checked the site it was still on 5.5. He finally got it sorted after clearing the cache which for GoDaddy cPanel shared hosting is buried under the security Firewall.
Regarding moving forwardā¦reloading the legacy jQuery-migrate libary via plug-in or functions.php code is a very short-term fix that wonāt survive when WP5.6 is released (possibly WP5.7 but likely not later).
I am the reluctant custodian of the legacy MySiteMyWay themes (the authors just walked away from me and the other users) and am just updating those themes to deal with this issue. It requires code changes. The reason re-coding is necessary is that WP5.6 is planning on adding jquery-migrate back into the loadā¦but it will be the latest version of jquery-migrate which is incompatible with the old version of jquery-migrate. A large number of legacy themes will need to be re-coded to deal with this issue.
So your previous question about ādoes the theme need to be updatedā the answer isā¦yes.
More Info: https://make.wordpress.org/core/2020/06/29/updating-jquery-version-shipped-with-wordpress/
I hope you get it sorted.
Thanks Tim and James,
The theme developers are saying this now:
I see itās a part of s2member plugin and seem itās a conflict case, could you ask them more about it and we will see if we can help or not. Usually, the conflict may we have our own stripe code and when you use stripe from plugin, it canāt work well.
What can I tell them to fix or improve?
So annoying to be caught in this.
Thanks for your advice!
S
Ps? It is working on firefox but not on Chrome or Safari nowā¦ its back to 5.5.
Tim - thanks for the note on 5.6 I will prepare now for it all to go south in the future with a new theme.
Based on your traceback the offending call is:
gdlr-script.js?ver=1.0:493 Uncaught TypeError: $(ā¦).live is not a function
There are no calls to gdlr-script or .live in S2member codeā¦so this is a theme issue or an issue with a non-s2member plugin.
The technical problem is that the .live jQuery function was deprecated in jQuery1.7 and dropped in jQuery1.9 but kept alive via jquery-migrate library which was included by WP-core up to and including WP5.4. To fix this issue in WP5.5+, all references to $().live need to be converted to $().on (see https://api.jquery.com/live/ )
Awesome, thanks!
You are most welcome
NOTE: As code changes go, this one is pretty easy to do and is a low risk change.
Hi
This happened to me when I installed a plugin for cookie consent.
If it blocks the Stripe cookies, the fields are not fillable.
I hope this helps.
Regards,
Carlos
Just letting you all know Stripe forms donāt work properly if you donāt have Cloudflareās Rocket Loader turned OFF. I just disabled it on my entire website, since I donāt have page rules to spare.
Hi again. A couple of people are complaining the credit card field wonāt work for them. I tested here and it looks normal unless if I use a VPN.
Theyāre not using a VPN though, and Stripe does not seem aware of the problem and asked me to make a recording of the problem, instead. I always had the form working and it still work for some users but not to all users. They tried other browsers and not using ad blockers, still not working properly but only for a few people.
Do you have any guess @clavaque?
Check your file permissions for the folder where the plugin is and if s2member java is running.
I got an error report when trying ahrefs (not for this purpose but it gave me a warning).
I just tested my site with and without VPN and Stripeās Card field seems to be working here.
Itās working with third party cookies blocked @carlosmelero
It works with ublock origin enabled too.
Interesting. Anybody else having issues? I canāt ābreakā it again, now
Maybe this helps?