Hello Stephen, next part with questions. 😉
I install stripe as an additional gateway in addition to offline payment. Everything works properly until I activate Stripe.
The total amount and any discount code as well as the payment no longer work.
Keys for test and sandbox mode are active. Am I doing something wrong?
Evert
Edit: It seems like there is a conflict. When I activate Stripe the venue map disappears.
When I turn off Stripe, everything works properly again.
Evert
Hi Evert,
Can you provide a link to the site with this issue? I’ve tested Stripe with discount codes, and I’ve never encountered an issue with the venue map.
It could possible be a javascript error on the page, so seeing the page itself with stripe activated might indicate an issue.
Stephen Harris
Hello Stephen,
I don’t think it will be in discount codes, but probably something like java. It seems that the buttons stop functioning.
Stripe is active in sandboxmode
Test event
Evert
Hello Stephen,
As you will understand it is necessary that I can continue working on the website.
Now 48 hours later I do not know whether you are working on this or not.
So I have to turn Stripe off every now and then to continue.
If stripe is not activated, just respond to the message here and I will activate it immediately
Evert
Hi Evert,
In the browser console I can see this error:
autoptimize_116f23c669690b55a274b47dc04b21df.js:292 Uncaught TypeError: Cannot read property ‘is_recurring’ of undefined
It appears you have a plug-in which minifies Javascript files, and the output from that is causing errors. I’d recommend you disable that plug-in to see if the plug-in functions correctly.
The plug-in minifies its own javascript files, and I have seen before issues when another plug-in tries to minify those files again.
Stephen Harris
Hello Stephen, with autoptimize and cache plugin disabled the problem remains.
These are the only two that minimize anything.
I have no errors as soon as I turn Stripe off. I keep finding it strange that every element of EO and website work well until Strip comes on. Turning off extra plugins does not help either.
I have deactivated autoptimize, I no longer encounter the mentioned error.
Same result. Do you have a suggestion where I could look?
Evert
I’m still seeing those errors.
Could you try adding
define('SCRIPT_DEBUG', true);
to wp-config.php
this will tell WordPress to use the de-minified versions of the javascript file, so it may help debug the issue.
Stephen Harris
Actually, I think I can see what is happening here.
I think you’ve got a plug-in that replaces <img src='...'>
<img data-src="..." class="lazyload" src="data:image/gif;base64,..."><noscript><img src='...'></noscript>
However, it’s doing that within /* <![CDATA[ */ ... /* ]]> */
tags which is breaking the js variable definitions and thus causing the console errors. Those <img>
s are only present in the Stripe plug-in (i.e. the credit card icons that appear when selecting the stripe payment gateway – hence its only a problem when stripe is enabled.
If you’re aware of any such plug-in/theme that does that, it might be worth deactivating to see if that fixes the issue.
Stephen Harris
Obviously if its an issue with the theme or a critical plug-in we can look into fixing it – but this is just to identify what the issue is.
Stephen Harris
Stephen, will you marry me? 😉
Deactivating Smush-it does the trick. Lazy load was active there.
But autoptimize also gives a problem.
At least I can move forward with this.
Is this still interesting for you to find out why?
Perhaps that contributes to the EO plug-in.
Evert