S2member-beta + shortcodes-ultimate --> broken js order?

Trying to track down if this is a problem only for me - or for everyone?
I think the newest s2member beta version is somehow incompatible with shortcodes-ultimate. Old s2member versions were fine.

Duplicate:
plain website - no plugins, except s2member, s2member-pro, shortcodes-ultimate

Strange-Fact - enabling autoptimize with try catch solves this: https://wordpress.org/support/topic/disabling-ao-js-minification-breaks-my-page-shortcodes-ultimate/

I’m pretty sure something here is wrong with s2member-beta js scripts. Downgrading to the current 1908 standard version also solves the bug. Without any s2if codes on the page - shortcodes ultimate work fine.

Also not reproducible but happening - If I input several s2if codes from api/scripting - without autoptimize enabled they will not always work (existing pages seem fine).

Create website with (with older s2member-versions this page is working fine):

[s2If current_user_is(subscriber)]

some text

[/s2If]

[s2If current_user_is(s2member_level1)]
    Some premium content for Level 1 Members.
[/s2If]

[s2If current_user_is(s2member_level0)]
    Some content for Free Subscribers.
[/s2If]


[su_tabs style="default" active="1" vertical="no" mobile="stack" class=""] [su_tab title="Tab name" disabled="no" anchor="" url="" target="blank" class=""]Tab content[/su_tab] [su_tab title="Tab name" disabled="no" anchor="" url="" target="blank" class=""]Tab content[/su_tab] [su_tab title="Tab name" disabled="no" anchor="" url="" target="blank" class=""]Tab content[/su_tab] [/su_tabs] 

Either going back to the current production s2member or disabling the s2if commands - will make the shortcodes ultimate tabs working.

Also I have the following error in chrome console - only with the newest s2member beta active - and only if s2if commands are used:

JQMIGRATE: Migrate is installed, version 1.4.1
(index):1 Uncaught IntegrationError: The selector you specified (#s2member-pro-stripe-form-card-element) applies to no DOM elements that are currently on the page.
Make sure the element exists on the page before calling mount().
at new t (https://js.stripe.com/v3/:1:10518)
at t. (https://js.stripe.com/v3/:1:96211)
at t.mount (https://js.stripe.com/v3/:1:26014)
at HTMLDocument. (https://www.velomap.org/wp-content/plugins/s2member/s2member-o.php?ws_plugin__s2member_js_w_globals=773f4c9b4d0fd1f40826345ed606a2ae&qcABC=1&ver=191011-beta-191011-beta-3023391377:812:15)
at i (https://www.velomap.org/wp-includes/js/jquery/jquery.js:2:27362)
at Object.fireWith [as resolveWith] (https://www.velomap.org/wp-includes/js/jquery/jquery.js:2:28121)
at Function.ready (https://www.velomap.org/wp-includes/js/jquery/jquery.js:2:29914)
at HTMLDocument.J (https://www.velomap.org/wp-includes/js/jquery/jquery.js:2:30276)

Interesting. What page was this on? Do you have a pro-form in it? Do you use a custom template for it?

See above code - no custom template - just the code above, s2-member, shortcodes ultimate - no other plugins activated (except autoptimize for testing to get the shortcodes ultimate to work, but error is there also without autoptimize and shortcodes ultimate).

NO pro-form on the page itself. With pro-from the error sometimes disappears! The error is there as soon as you insert some s2if shortcodes - no other plugins needed, default theme. Downgrade of s2member to release version and errors are gone. Check in chrome/firefox console.

Theme is Twenty Nineteen.

You can look at it here: https://openmtbmap.org/test3/test-s2-member/

I went back to the release version for now on my production websites. Somehow also autoptimize cannot solve the js bugs of the last beta (I depend too much on shortcodes ultimate to disabled them).

The test3 website as linked above still runs the beta release.

(index):1 Uncaught IntegrationError: The selector you specified (#s2member-pro-stripe-form-card-element) applies to no DOM elements that are currently on the page.

Try the new beta 191015, I think I got rid of that problem.

1 Like